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
openssl s_client -connect %%IMAP_SERVER%%:%%PORT%% -showcerts | openssl x509 -fingerprint -noout -md5

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 8D0B 0EE9 E700 A6CF ABA7 AE5F 4FD4 07C9 133B FAFC

To claim this, I am signing this object:

# the behavior of the createDataPartition() operation is a little
# counter-intuitive - you're actually manipulating the the following command
# will select the index according to seaflow$pop, and store them in the vector
# trIndex
trIndex <- createDataPartition(foo$pop, p = 0.5, list = FALSE)
# then use the vector trIndex to split the data into training data frame and
# testing data frame.
trainDF <- foo[ trIndex,]
#!/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}
@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"
### 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 / 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[@]} ]
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
! 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
!
@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/*