Categories
Programming Systems Administration

A Userscript to click the “Recover Permissions” button for every space in Atlassian Confluence Cloud

When administering a Confluence Cloud instance, we encountered the issue where I needed to use the API to check every space’s permissions. However, in Confluence’s REST API, you need to have “Read” permissions on a space to be able to read the permissions. To get this access, you can (as an admin) go to the […]

Categories
Linux Networking Systems Administration

Importing a LetsEncrypt Certificate Generated by acme.sh into a Fortigate Firewall Using CLI

These are some tips I’ve put together on how to create a certificate using acme.sh then import it into a FortiGate firewall for use on the SSL-VPN or similar. Getting the Certificate and Key file I won’t go into too much detail on this – just use the acme.sh documentation to get a key+certificate: https://acme.sh […]

Categories
Linux Programming Systems Administration

Tips for doing “shell” scripting in Python

I’ve been moving a bunch of my shell scripts to python recently, because of how much better it handles the concept of “a process didn’t run successfully”. Consider the bash script: What happens here if Command 2 fails? Note that we still get the success message at the end – bash silently ignored our error-ing […]

Categories
Linux Networking Systems Administration

A script to scan a network range and create Kea DHCP reservations for devices it finds

This script is very simple. It will scan a network range attached to the device it is run from, and will turn what it finds into a list of reservations for the Kea dhcp server – https://kea.readthedocs.io/ You run it something like this, giving it a network range to scan. Then network should be a […]

Categories
General Tech IoT Linux

Making a phone notification tool using Discord Webhooks

Reading Jlelse’s blog here (https://jlelse.blog/dev/telegram-go/) I realised there is another alternative to using an automation tool like IFTTT or Microsoft Power Automate, is to use a messaging app like Discord or Telegram. Previous post on the same topic:https://jaytuckey.name/2020/04/21/making-a-simple-phone-notification-tool-using-ifttt-available-on-a-free-account/ Creating the Discord Notification Webhook To make a personal notifier using discord you will need to make […]

Categories
General Tech Linux Powershell Systems Administration

Making a simple phone notification tool using IFTTT – Available on a Free Account

I previously made a guide on how to create a notifier using Microsoft Power Automate: https://jaytuckey.name/2020/04/21/making-a-simple-phone-notification-tool-using-microsoft-power-automate-previously-microsoft-flow/ However, the Request trigger used in that flow is only available on a premium account so many people won’t be able to use it without a work account. For those people, here’s how to make the same thing using […]

Categories
General Tech Linux Powershell Systems Administration

Making a simple phone notification tool using Microsoft Power Automate (previously Microsoft Flow)

Note – The “Request” trigger used in this post is only available on a Premium Power Automate account. If you want this for personal use, I suggest you look at using IFTTT instead, see my guide here: https://jaytuckey.name/2020/04/21/making-a-simple-phone-notification-tool-using-ifttt-available-on-a-free-account/ Many of us have access through our work to Microsoft Power Automate, previously called Microsoft Flow. With […]