Skip to content

Instantly share code, notes, and snippets.

View r35krag0th's full-sized avatar
🤖
Beep Boop.

Bob Saska r35krag0th

🤖
Beep Boop.
View GitHub Profile
@r35krag0th
r35krag0th / NomVenue.py
Created August 22, 2012 15:47
Lunch Magic
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)
@r35krag0th
r35krag0th / PianoControl.sh
Created November 13, 2012 02:54
A cleaner PianoBar Controller; incomplete
#!/bin/zsh
ControlFile="$HOME/.config/pianobar/ctl"
IssueCommand() {
CommandToIssue=$1
#echo "Sending '$CommandToIssue'..."
echo -n $CommandToIssue > $ControlFile
}
@r35krag0th
r35krag0th / Get-TLS-Fingerprint.sh
Created November 30, 2012 02:10
Get Pandora TLS Fingerprint
#!/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) <[email protected]>
openssl s_client -connect tuner.pandora.com:443 < /dev/null 2> /dev/null | \
openssl x509 -noout -fingerprint | tr -d ':' | cut -d'=' -f2
@r35krag0th
r35krag0th / Testing.php
Created February 1, 2013 00:27
Testing
<?php
echo "Syntax on your beard.";
?>
@r35krag0th
r35krag0th / Install_Requirements.sh
Created March 13, 2014 19:44
PIP Requirements Example
pip install -r Requirements.txt

Keybase proof

I hereby claim:

  • I am r35krag0th on github.
  • I am bobsaska (https://keybase.io/bobsaska) on keybase.
  • I have a public key whose fingerprint is 66E7 9900 BE3C B097 813A 2937 3ACF D041 DFBD D652

To claim this, I am signing this object:

<?php
$a = md5('240610708');
$b = md5('QNKCDZO');
echo "A\n";
var_dump($a);
echo "\nB\n";
var_dump($b);
#!/bin/bash
# One-Line-ify It: wget -O- https://goo.gl/jblmAa | sudo bash -
show_aws_post_setup_commands() {
InstanceId=$(wget -qO- http://169.254.169.254/latest/meta-data/instance-id)
RegionName=$(wget -qO- http://169.254.169.254/latest/meta-data/placement/availability-zone | sed 's/\(us-\(west\|east\)-[0-9]\)[a-z]/\1/g')
cat <<MOO
@r35krag0th
r35krag0th / py27-wrapper.sh
Created March 21, 2017 18:53
PyEnv Wrapper (Docker)
#!/bin/bash
shopt -s expand_aliases
wrapper_log() {
echo -e "\033[1;32m[py27-wrapper]\033[0m $*\033[0m"
}
export PATH="$HOME/.pyenv/bin:$PATH"
export PATH="/app/.pyenv/bin:$PATH"
@r35krag0th
r35krag0th / install_steps.sh
Created May 14, 2018 20:48
GDAL 2.1.0 on AWS Linux 2017.09
#!/usr/bin/env bash
# Upgrade everything
sudo yum -y update
# Enable EPEL Repo
sudo yum-config-manager --enable epel
# Install the required packages for compilation
sudo yum install make automake gcc gcc-c++ libcurl-devel proj-devel geos-devel python-devel