• Batch qr code generator in python

    I needed to generate a lot of sequential QR codes for work.

    After a little searching I found a Python module that generates QR codes so all I had to do was work out a small python script to generate each code and save the image.

    https://www.roots.uk/qr/001 as 001.png
    https://www.roots.uk/qr/002 as 002.png

    and so on. Having done this, I’ve shared the script on github

    I will be using the codes as signs around our showroom and redirecting the code to particular web pages which will change over time. I could also see the script being useful if you wanted to generate serial numbers as QR codes. I’m also sure someone else has already done this and shared it, but I didn’t have any luck finding those solutions so made my own.


  • FreePBX adding additional network card

    New FreePBX virtual machine with two virtual network cards.

    When installing, only 1 is configured automatically (eth0) and eth1 does not appear to FreePBX. It also didn’t get an IP address from the DHCP server.

    To enable the second network interface, in command line SSH as root user and change ‘onboot=no’ to ‘onboot=yes’ in /etc/sysconfig/network-scripts/ifcfg-eth1

    # cd /etc/sysconfig/network-scripts/
    # cat ifcfg-eth0
    TYPE="Ethernet"
    PROXY_METHOD="none"
    BROWSER_ONLY="no"
    BOOTPROTO="dhcp"
    DEFROUTE="yes"
    IPV4_FAILURE_FATAL="no"
    IPV6INIT="yes"
    IPV6_AUTOCONF="yes"
    IPV6_DEFROUTE="yes"
    IPV6_FAILURE_FATAL="no"
    IPV6_ADDR_GEN_MODE="stable-privacy"
    NAME="eth0"
    UUID="cce57258-c43d-4384-b3f0-951dec77586a"
    DEVICE="eth0"
    ONBOOT="yes"
    ZONE=external
    DESCRIPTION="unset"
    # cat ifcfg-eth1
    TYPE=Ethernet
    PROXY_METHOD=none
    BROWSER_ONLY=no
    BOOTPROTO=dhcp
    DEFROUTE=yes
    IPV4_FAILURE_FATAL=no
    IPV6INIT=yes
    IPV6_AUTOCONF=yes
    IPV6_DEFROUTE=yes
    IPV6_FAILURE_FATAL=no
    IPV6_ADDR_GEN_MODE=stable-privacy
    NAME=eth1
    UUID=7e554799-26cb-4760-961f-6a42d434b7f5
    DEVICE=eth1
    ONBOOT=no
    
    (change the ONBOOT=no to ONBOOT=yes, then save and reboot

    Then go and check firewall settings and more in the web interface


  • Google workspace – printing the collaborative inbox / printing google groups

    One of our new work processes is for my by brother to check invoices from a group of suppliers and if they’re OK to pay forward them to a private collaborative inbox/google group in our Google Workspace.

    It has been working really well so far but there’s been one issue. Some of those suppliers send their invoices as plain text and Google collaborative inbox has no print button. I need to print them as part of our accounting records.

    I found lots of people asking for a print button or trying to find a way around the limitation but no one had a solution. (this example) So I put my lateral thinking hat on and came up with a simple work around.

    Select with your mouse the text/images you want to print, right click, print.

    and it worked. One of my better ideas, so I’m sharing it here in the hope it helps others. As a bonus, I even did a screen recording to show the steps. The obvious gotcha is that if you select an image as part of the text and right click on the image instead of the text, then you won’t get the ‘print’ option. I hope it helps, say hello if it does 🙂

    https://youtu.be/XDtpMwgxFqI


Search this site


Free apps

  • birthday.sroot.eu – Your birthday or other celebration date based on [years on other planets] / [how many seconds/days] / [how far you’ve travelled around the sun]
  • stampulator.sroot.eu – Calculates the combination and how many 1st, 2nd, large 1st and large 2nd class Royal Mail stamps you need on large envelopes and packets

Recent posts


Archives


Categories