Skip to content

Instantly share code, notes, and snippets.

Avatar

Bob Saska r35krag0th

View GitHub Profile
@r35krag0th
r35krag0th / Get-TLS-Fingerprint.sh
Created Nov 30, 2012
Get Pandora TLS Fingerprint
View Get-TLS-Fingerprint.sh
#!/bin/bash
##
## A simple little shell script that will return the current
## fingerprint on the SSL certificate. It's crude but works :D
##
## Author: Bob Saska (r35krag0th) <git@r35.net>
openssl s_client -connect tuner.pandora.com:443 < /dev/null 2> /dev/null | \
openssl x509 -noout -fingerprint | tr -d ':' | cut -d'=' -f2
@r35krag0th
r35krag0th / PianoControl.sh
Created Nov 13, 2012
A cleaner PianoBar Controller; incomplete
View PianoControl.sh
#!/bin/zsh
ControlFile="$HOME/.config/pianobar/ctl"
IssueCommand() {
CommandToIssue=$1
#echo "Sending '$CommandToIssue'..."
echo -n $CommandToIssue > $ControlFile
}
View NomVenue.py
class NomVenue:
name = None
meatIndex = 0
boozeIndex = 0
patioEnabled = False
def __init__(self, someName="Unknown Venue", isPatioEnabled=False, theMeatIndex=0, theBoozeIndex=0):
self.name = someName
self.setMeatIndex(theMeatIndex)
self.setBoozeIndex(theBoozeIndex)