Skip to content

Instantly share code, notes, and snippets.

View ITJamie's full-sized avatar

Jamie (Bear) Murphy ITJamie

View GitHub Profile
@ITJamie
ITJamie / README.md
Created November 6, 2026 16:07
Salt 3008.5: standalone DeltaProxy TCP child targeting reproduction

DeltaProxy TCP targeting reproduction

This standalone script starts one Salt master and one DeltaProxy controller with one built-in dummy child. It compares delivery of test.ping using ordinary glob, list, regex, and compound targeting. No extensions or devices are required.

Run

Use a disposable Linux environment with Python 3.11. The script can run as an ordinary user: it binds loopback high ports and preaccepts its own temporary keys.

@ITJamie
ITJamie / README.md
Created November 6, 2026 13:15
Salt 3008.4 DeltaProxy: unaccepted child blocks controller readiness and accepted sibling startup

Salt DeltaProxy startup blocked by an unaccepted child

Standalone reproduction using actual master/proxy daemons and Salt's built-in dummy proxies. No appliance connections or Cisco extension APIs are used.

Run using a complete Salt 3008.4 Python environment:

/path/to/salt-environment/bin/python reproduce.py --artifacts ./results
# Powershell refuses to connect to the Netbox API on our setup without this.
add-type @"
using System.Net;
using System.Security.Cryptography.X509Certificates;
public class TrustAllCertsPolicy : ICertificatePolicy {
public bool CheckValidationResult(
ServicePoint srvPoint, X509Certificate certificate,
WebRequest request, int certificateProblem) {
return true;
}
@ITJamie
ITJamie / vagrant.rb
Created May 2, 2019 23:06
How to kill netplan in ubuntu 17.10+ 18.04 +++ in kitchen vagrant.rb and revert to ifupdown
Vagrant.configure(2) do |config|
config.vm.provision 'shell', inline: <<-SHELL
sudo apt -y install ifupdown
sudo apt -y purge netplan.io
sudo rm -vfr /usr/share/netplan /etc/netplan
echo -e "auto eth0\niface eth0 inet dhcp\npre-up sleep 2" >> /etc/network/interfaces.d/eth0
echo -e "auto lo\niface lo inet loopback \n\nsource /etc/network/interfaces.d/*" >> /etc/network/interfaces
sudo service networking restart
echo "IM GOING TO REBOOT NOW TO KILL NETPLAN FROM MEMORY"
sudo reboot now
@ITJamie
ITJamie / LogicMonitorRubySigning.rb
Last active October 10, 2023 14:42
Ruby - Logicmonitor Rest API - auth / signing
require 'rest-client' #rubygem
require 'date'
require 'openssl'
#warning. the code from below has come from a class. Ive cleaned it up but there may be some errors. This is a GIST after all
# Instance variables
@LM_accountname = 'lM_accountname'