Skip to content

Instantly share code, notes, and snippets.

Avatar

Bob Saska r35krag0th

View GitHub Profile
View wgrib2_macos_build.sh
#!/usr/bin/env bash
# NOTE: This requires you to have Homebrew installed
# --> https://brew.sh/
# NOTE: You need to have Homebrew's GCC installed
# --> brew install gcc
wget ftp://ftp.cpc.ncep.noaa.gov/wd51we/wgrib2/wgrib2.tgz
tar xvzf wgrib2.tgz
@r35krag0th
r35krag0th / gloomhaven_session_notes.md
Last active Sep 12, 2020
Gloomhaven - Group 2 (Electric Boogaloo)
@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 / bookmarklet
Last active Sep 27, 2018 — forked from simeonlg/bookmarklet
Pokemongomap.info scraper for pidgey bot
View bookmarklet
javascript:var markerList = markerList || {}; for (marker in markers) { if (!markerList.hasOwnProperty(markers[marker].options.locmarkerid)) { console.log("Marker added"); markerList[marker] = '"' + markers[marker].options.title.split(': ')[1] + '","' + markers[marker].options.title.split(': ', 2)[0] + '",' + markers[marker]._latlng.lat.toFixed(6) + ',' + markers[marker]._latlng.lng.toFixed(6); } } var markerString = ""; for (marker in markerList) { markerString += "[" + markerList[marker] + "],"; } (function (text) { var node = document.createElement('textarea'); var selection = document.getSelection(); node.textContent = "[" + text + "]"; document.body.appendChild(node); selection.removeAllRanges(); node.select(); document.execCommand('copy'); selection.removeAllRanges(); document.body.removeChild(node); })(markerString);
@r35krag0th
r35krag0th / install_steps.sh
Created May 14, 2018
GDAL 2.1.0 on AWS Linux 2017.09
View install_steps.sh
#!/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
View setup_aws_enhanced_networking.sh
#!/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 Mar 21, 2017
PyEnv Wrapper (Docker)
View py27-wrapper.sh
#!/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"
View Testing.php
<?php
echo "Syntax on your beard.";
?>
@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)