Skip to content

Instantly share code, notes, and snippets.

Scott Stout skout23

Block or report user

Report or block skout23

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
skout23 / tzgeoip.rb
Created Mar 9, 2012
simple silly daemon to set the tz based on current geoip osx only atm, but easy enough to switch up for other os's
View tzgeoip.rb
#!/usr/bin/env ruby
require 'rubygems'
require 'geoip'
# install rubygems and geoip gem
# grab geoip db before
# wget -N -q
# gunzip GeoLiteCity.dat.gz in same folder as this script
skout23 / manage_snapshots.rb
Last active Oct 6, 2015
AWS ec2 EBS snapshot management
View manage_snapshots.rb
#!/usr/bin/env ruby
# cleaned up a bit, makes use of memoize to better handle queries to the EC2 backend, less calls == faster.
require 'rubygems'
require 'aws-sdk'
regions = [
View avg_student_count.rb
require 'json'
require 'rest-client'
"name"=>"Advanced Literature 1(B)",
View .tmux.conf
# act like GNU screen
unbind C-b
set -g prefix C-a
# look good
set -g default-terminal "screen-256color"
# Allows for faster key repetition
set -s escape-time 0

Keybase proof

I hereby claim:

  • I am skout23 on github.
  • I am skout23 ( on keybase.
  • I have a public key ASDw8P2ph2XFQLlCW0GtGhnuJZlOBN6nQMSmPzXH_VPlYAo

To claim this, I am signing this object:

skout23 / notsecret.rb
Created Jun 16, 2014
silly base64decode(rot13()) for when I post bday stuff on friends fb
View notsecret.rb
#!/usr/bin/env ruby
# silly base64decode(rot13())
require 'base64'
string = "VW5jY2wgT3ZlZ3VxbmwgTnkh"
plain = Base64.decode64(string) 'A-Za-z','N-ZA-Mn-za-m'
puts plain
skout23 / get_vm_list
Created Sep 2, 2014
silly wrapper for azure vm list to a hash.
View get_vm_list
~$ azure vm list
info: Executing command vm list
data: DNS Name VM Name Status
data: -------------------------------- ----------- ---------
data: my-vm0 ReadyRole
data: my-vm1 ReadyRole
data: my-vm2 ReadyRole
data: my-vm3 NotReady
data: my-vm4 ReadyRole
data: my-vm5 ReadyRole
skout23 / gimmetime.rb
Created Oct 7, 2014
stupid import thing
View gimmetime.rb
#!/usr/bin/env ruby
require 'time'
$output ="tstamp.csv",'w')
$input ="",'r')
def gimmetime(str)
d1 = Time.parse(str)
rm1 =
skout23 / codewatcher.rb
Created Oct 29, 2014
simple-ish rss atom feed watcher to alert when a code change has taken place
View codewatcher.rb
# script to watch production code commit log and send a diff of if any changes for PCI regulation needs
require 'rss'
require 'openssl'
DEBUG = false
# set the local store for marshalled data
$prod_code_last_reported_date = '/home/someuser/bin/watch_rss/data/last_reported.yml'
skout23 / mario.rb
Created Aug 7, 2015
quick poc to print out the mario half pyramid
View mario.rb
#!/usr/bin/env ruby
# quick poc to print out the mario half pyramid
def pymid(base)
1.upto(base) do |row|
str = "#" * row
You can’t perform that action at this time.