by keith | May 9, 2023 | Development
Sometimes need to get a quick bearer token to test an API in postman or python. Rather than going through the tedious process of setting up an App or fiddling with OAuth, the salesforce cli tool can be used to get a token to use in API queries.First step is...
by keith | Mar 20, 2023 | Development
This is a small code snippet demonstrating interacting with an Azure PAAS Redis Cache import redis import sys redis_fqdn = “” redis_key = “” r = redis.StrictRedis(host=redis_fqdn, port=6380, password=redis_key, ssl=True) # Test latency to redis...
by keith | Jun 3, 2021 | CTF Write-Ups, Cybersecurity
This is a copy of the short write-up of the capture the flag (CTF) challenge “Mr Robot” that i had posted to LinkedIn originally, and the steps I took in gaining all three flags. This is still one of the more popular CTF challenges – and was quite...
by keith | Sep 13, 2019 | Tech, Tutorials
I recently needed to make my routerboard generate an audible alarm based on voltage thresholds on the 12v battery wired directly to the RB2011. This script was a modification of something i found when perusing the Mikrotik forums.Change lowvoltage and highvoltage to...
by keith | Aug 26, 2019 | Tech
Recently saw an article in the herald about the new tiered tarrif structure for Kwh/units. Here is a calculator to help you estimate your monthly budget with the new structure. (Distributed under GPLv3 – feel free to do what you like with it)...