This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# This script installs and configures couchdb on a fresh Amazon Linux AMI instance. | |
# | |
# Must be run with root privileges | |
# Tested with Amazon Linux AMI release 2011.02.1.1 (ami-8c1fece5) | |
# | |
sudo mkdir -p /usr/local/var/run/couchdb |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function($) { | |
// Used by dateinput | |
$.expr = {':': {}}; | |
// Used by bootstrap | |
$.support = {}; | |
// Used by dateinput | |
$.fn.clone = function(){ | |
var ret = $(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
var word = process.argv.slice(2)[0] | |
if(!word) return console.error("Please call this script with a word, e.g.: \n node pal.js someword") | |
// split the word into letters | |
var letters = word.split('') | |
var i=0 | |
var len = letters.length |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import os | |
# make sure we were called with the proper args | |
if len(sys.argv) < 2 : | |
print "Error: please call this script with a filename, e.g." | |
print "jetstreams.py <somefilename.txt>" | |
exit(1) | |
# make sure the file name called with exists |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.DS_Store | |
node_modules |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
BINEXISTS=`echo $PATH | grep /usr/local/bin` | |
if [ -z $BINEXISTS ] | |
then | |
echo "This script installs slow and unslow to /usr/local/bin, but it is not in your path." | |
echo "Please add /usr/local/bin to your path and run this script again." | |
exit 1 | |
fi | |
if [[ $1 = "uninstall" ]] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
// Copyright 2011, Tim Branyen @tbranyen <[email protected]> | |
// Dual licensed under the MIT and GPL licenses. | |
// Script to detect cursewords in commit messages and provide the | |
// offending commit sha's. | |
// vim: ft=javascript | |
var git = require('nodegit'); | |
var curses = [ 'fuck', 'shit', 'piss', 'cunt', 'cocksucker', 'motherfucker', 'tits', 'bastard' ], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Pod::Spec.new do |s| | |
s.name = "UIImage+animatedGif" | |
s.version = "0.1.0" | |
s.summary = "Adds animatedGifWithAnimatedGifData methods to UIImage." | |
s.description = <<-DESC | |
This project defines a category `animatedGIF` on `UIImage`. The category defines two methods. This method creates an animated `UIImage` using the frames of the GIF in `data`: | |
+[UIImage animatedImageWithAnimatedGIFData:(NSData *)data] | |
This method creates an animated `UIImage` using the frames of the GIF loaded from `url`: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
node-inspector --web-port 8080 & | |
sleep 1 | |
URL="http://127.0.0.1:8080/debug?port=5858" | |
echo " | |
tell application \"Google Chrome\" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
function stopTunnels { | |
echo "stopping db tunnnels:" | |
if [ -n "$PID" ]; then | |
echo "stopping $PID..." | |
kill $PID | |
sleep 1 | |
fi |
OlderNewer