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)...
by keith | Aug 26, 2019 | Tech, Tutorials
While working on another project, (Callcenter suite) – i built a relatively lightweight Asterisk 16 image which was being used as the base image for a series of ARI tests. I decided to release this to the open-source community, to try and motivate more people to...
by keith | Aug 5, 2019 | Tutorials
Introduction Experimenting with Puppet & Chocolatey on Windows. Little snippet to install Google Drive Stream. class windows::google_drive_stream { Package { provider => ‘chocolatey’ } package {...
by keith | Jul 9, 2019 | Tutorials
Recently, I had need of setting up a postfix “smtp router” to distribute mail from various users among a cluster of outbound relays (on unique exit IP’s, with difference QoS policies applied) Part of the functionality that was desired was the ability to route...
by keith | Jul 9, 2019 | Tutorials
The following Perl script gets the size of the Postfix Active queue and outputs it.(Used for queue monitoring on our NMS via SSH sensors, but might be useful in your environment) #!/usr/bin/env perluse strict;use warnings;use Symbol;sub count {my ($dir) = @_;my $dh =...
by keith | Jul 9, 2019 | Uncategorized
If you’re observing errors on your Zimbra servers’ mail-log similar to the one below, and your users are reporting password prompts on ‘sending’ e-mails. Nov 24 17:12:07 areto postfix/smtpd[5528]: warning: SASL authentication failure: cannot connect to saslauthd...