Skip to content

Instantly share code, notes, and snippets.

import glob
import sys
import os
import hashlib
root_dir = sys.argv[1]
hash_map = {}
for dirpath, dirs, files in os.walk(root_dir):

Keybase proof

I hereby claim:

  • I am kevcooper on github.
  • I am kcooper (https://keybase.io/kcooper) on keybase.
  • I have a public key ASCx6vXkoqwCOCD_XVktsSbWo-a2M3Qx5_rAN8ca1IyAOgo

To claim this, I am signing this object:

@kevcooper
kevcooper / org.bitcoin.bitcoind.plist
Last active September 2, 2015 02:46
An OS X LaunchAgent to run bitcoind on login
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>org.bitcoin.bitcoind</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/bin/bitcoind</string>
@kevcooper
kevcooper / CodeTools.sh
Last active August 29, 2015 14:10
Basic programming tool setup for beginners
#!/bin/bash
#This script sets up some basic tools to start programming in Java on OS X
#install homebrew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
#install cask
brew install brew-cask
@kevcooper
kevcooper / ABMultiredditGenerator.py
Last active December 8, 2015 01:27
A python script to transform a list of subreddits in the clipboard into a paste-able format to be used in an Alien Blue group. Copy the list from your multireddit, run the script in Pythonista, then create a new group in Alien Blue and paste. Thats it!
import console
import clipboard
import webbrowser
def main():
text = clipboard.get()
noNewlines = text.replace('\n',' ')
array = noNewlines.split(' ')
ABString = finalStringFromArray(array)
clipboard.set(ABString)