Problem: You get access denied when running a script from your user crontab but not when running it interactively Cause: Your user is in the correct group when logged in but not for cron Resolution: Add the user to the correct group This is on Ubuntu 20.04 LTS How to...
James McDonald
Cheap and Cheerful Email Alerting from Your VPS
Quick and dirty email sending from a virtual server. (On Azure port 25 outbound is blocked so this works nicely sending to port 587) You will have to tweak your gmail account to use less secure auth and allow app passwords. Install the SSMTP package apt-get install...
Brays Roofing Site Live
So I just put up another website for a client. I originally did a website for them around ~2013 Check out Brays Roofing A Tile Roof Specialist who does Roof Restorations and Repairs
Check if VARIABLES are set with Bash
I have a script that needs to check if it is called with an environment that contains two variables OPERATOR_ADDRESSDELEGATOR_ADDRESS if it does not find them it will call a script ./getNodeAddressBech32.sh to set them and continue. How do you (properly) check for a...
Clear the DNS Cache in Firefox
If you have edited your C:\Windows\System32\Drivers\etc\hosts file to add a custom DNS entry and run ipconfig /flushdns and Firefox is still returning the old address enter the following in the browser location bar and then click the Clear DNS Cache button...
Timezone aware cron on Ubuntu 20.04 LTS
Problem: System is running in UTC time zone and I would like to set user cron entries in local time (Australia/Melbourne). It is annoying modifying your cron jobs every 6 months due to daylight savings changes. Resolution: Install fcron and get time zone aware...
The Certification Journey
After 10 years working in the Fitting & Machining trade, moving into the IT industry and re-training as a Microsoft Certified Systems Engineer led to other vendor certifications: Sept 28, 2019 Microsoft Certified: Azure Solutions Architect Expert June 13, 2017...
Converting a Validator Operator Address to a Delegator Address
Many of the slcli commands use either the OPERATOR_ADDRESS (starts with shareledgervaloper) or the DELEGATOR_ADDRESS (starts with shareledger) as arguments. For some reason I couldn't find a command to output the DELEGATOR_ADDRESS (Self-Delegate Address) using the...
Ubuntu crontab does NOT support per-user Time Zones using CRON_TZ
Yeah, Nah! man 5 crontab
Enlarging a Windows 10 installation on an SSD which has a Linux Partition before it on the Drive
Can you delete a Linux partition, shift the Windows partition after it back toward the beginning of the disk and then grow the windows partition to get more space? Yes! Warning: I had to recover my system because I accidentally cancelled a GParted partition move...
