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 bash | |
git config -l | grep -q -i nicholas | |
if [ $? -ne 0 ] | |
then | |
echo "Setting Git Configs (username, email, color.ui)" | |
git config --global user.name "Nicholas Fine" | |
git config --global user.email [email protected] | |
git config --global color.ui true | |
fi |
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 bash | |
# This is my setup for Vim. This will install the janus set of plugins | |
# as well as create my specific vim customizations | |
# Ensure required packages are installed. | |
REQUIRED_PACKAGES="bash vim git curl" | |
for package in $REQUIRED_PACKAGES | |
do | |
command -v $package >/dev/null && continue || { echo "Package: $package is required, please install it"; exit 1; } |
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 | |
# From http://stackoverflow.com/questions/10909685/run-parallel-multiple-commands-at-once-in-the-same-terminal | |
# Usage: parallel_commands "cmd arg0 arg1 arg2" "other_cmd arg0 arg2 arg3" | |
for cmd in "$@"; do { | |
echo "Process \"$cmd\" started"; | |
$cmd & pid=$! | |
PID_LIST+=" $pid"; | |
} done |
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 bash | |
git config -l | grep -q -i nicholas | |
if [ $? -ne 0 ] | |
then | |
echo "Setting Git Configs (username, email, color.ui)" | |
git config --global user.name "Nicholas Fine" | |
git config --global user.email [email protected] | |
git config --global color.ui true |
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
// Original from: http://labs.tannr.com/projects/herpderp/herp.js | |
// Replace all comments on al.com with various permutations on "herp" and "derp" | |
function randomDerp() { | |
this.derpOriginal = $(this).html(); | |
$(this).click(function() { | |
$(this).html(this.derpOriginal); | |
}); |
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 bash | |
# This is my setup for Vim. This will install the janus set of plugins | |
# as well as create my specific vim customizations | |
# Ensure required packages are installed. | |
REQUIRED_PACKAGES="bash vim git curl" | |
for package in $REQUIRED_PACKAGES | |
do | |
command -v $package >/dev/null && continue || { echo "Package: $package is required, please install it"; exit 1; } |
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 bash | |
function aliasestext() | |
{ | |
cat<<EOF | |
alias gplom="git pull origin master" | |
alias gpsom="git push origin master" | |
alias gcow='git checkout work' | |
alias gcom='git checkout master' | |
alias gmw='git merge work' |
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 bash | |
# This is my setup for Vim. It assumes you're using a unixy system that has | |
# vim already installed as well as bash, git and curl. This will install the janus | |
# set of plugins as well as create my specific vim customizations | |
# Cat the text of my .vimrc.after file | |
function vimrcafter() | |
{ | |
cat<<EOF |
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
PACKAGES = %w( build-essential | |
wget | |
vim | |
git-core | |
curl | |
bison | |
openssl | |
libreadline6 | |
libreadline6-dev | |
zlib1g |
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 ruby | |
require 'benchmark' | |
REGEXPS = [ | |
/^no such file to load -- (.+)$/i, | |
/^Missing \w+ (?:file\s*)?([^\s]+.rb)$/i, | |
/^Missing API definition file in (.+)$/i, | |
/^cannot load such file -- (.+)$/i, | |
] |