Skip to content

Instantly share code, notes, and snippets.

View sulrich's full-sized avatar
🙀
furble plotz

steve ulrich sulrich

🙀
furble plotz
View GitHub Profile
#!/bin/bash
# my personal setting up a windows 10 host on KVM notes.
#
# README
#
# the virtio-win-* file is a an ISO that's available from redhat. get
# the right version of this. (http://bit.ly/2Flex3)
#
# WIN10_DISK: the destination raw image that you want to work with.
#!/usr/bin/env python3
import pprint
import sys
import pyparsing as pp
def printSection(str, loc, toks):
print("got section!")
@sulrich
sulrich / ubiquiti-bonjour.yml
Last active August 28, 2021 17:40
ansible playbook for updating ubiquiti APs to provide airprint access for guest networks
---
# USE THIS AT YOUR OWN RISK!!!
# more info here: https://botwerks.org/post/ubiquity-airprint-for-reference/
#
# this should be run after an upgrade to restore bonjour mcast discovery
# between the guest network and the host network services (printing, etc.)
#
# note: the ubiquiti access points run busybox so we need to use the available
# shell commands in ansible raw mode. this is service impacting so you will
# be punted from the AP when the apply-config operation takes place.
@sulrich
sulrich / launchbar-prefs.txt
Last active April 19, 2017 23:22
custom search strings for launchbar
https://casemanager.juniper.net/casemanager/#/cmdetails/*
post-http://www-int.juniper.net/directory/Search.asp?SearchString=*
https://deepthought.juniper.net/app/do/showView?tableName=RLI&taskCode=all&record_number=*
post-http://www-int.juniper.net/directory/tester.asp?SearchString=*
post-http://www-int.juniper.net/directory/tester.asp?radio1=emp&SearchString=*
post-https://www-int.juniper.net/directory/Search.asp?SearchType=&SearchString=*
https://gnats.juniper.net/web/default/*
! No configuration change since last restart
upgrade fpd auto
version 15.1
service config
service timestamps debug datetime msec
service timestamps log datetime
service password-encryption
!
hostname sulrich-xtr
!
set cli config-output-format set
set cli pager off
set cli scripting-mode on
configure
set deviceconfig system ip-address 192.168.xx.xx
set deviceconfig system hostname xxx
set deviceconfig system default-gateway 192.168.xx.yy
set deviceconfig system netmask 255.255.255.0
set deviceconfig system dns-setting servers primary 8.8.8.8
set deviceconfig system dns-setting servers secondary 8.8.4.4
@sulrich
sulrich / flog-lync.sh
Last active December 4, 2015 20:46
wipe the lync cache so it stops whining about SSL errors. better still lose lync, but if that's not an option, get a little venting in as well.
flog-lync () {
local LYNC_CACHE="${HOME}/Library/Caches/com.microsoft.Lync"
LYNCSULTS=(
'lync sucks so much its nearing gravitational collapse'
'lync is so ugly the government moved halloween to its release date'
'lync is the mars of conferencing systems there are no signs of life'
'lync makes happy meals cry'
)
local rand=$[ $RANDOM % ${#LYNCSULTS[@]} ]
### Keybase proof
I hereby claim:
* I am sulrich on github.
* I am sulrich (https://keybase.io/sulrich) on keybase.
* I have a public key whose fingerprint is 8965 16F7 4A4B 972E 7D27 78E7 F924 0D54 75AC 80C0
To claim this, I am signing this object:
@sulrich
sulrich / set-ddns.sh
Created November 27, 2014 19:39
shell script to update a DNS zone using keys
#!/bin/zsh
i=$ARGV[0]
# path to the key file for this zone
KEY_FILE="${HOME}/bin/keys/Kt-MY-ZONE-HERE.key"
# file used to update the associated record
UPDATE_FILE="/tmp/host-t-MY-ZONE-HERE-update.txt"
#!/bin/zsh
# path to key file associated with the key for the zone
KEY_FILE="${HOME}/bin/keys/K-MY-KEY-HERE.key"
# path to file with the appropriate entries created by the setup process
DELETE_FILE="/tmp/delete-t-MY-ZONE-HERE-update.txt"
echo -n "sending zone deletion ... "
/usr/bin/nsupdate -k ${KEY_FILE} ${DELETE_FILE}