Skip to content

Instantly share code, notes, and snippets.

View yrgoldteeth's full-sized avatar

Nicholas Fine yrgoldteeth

View GitHub Profile
#!/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
#!/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; }
#!/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
#!/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
// 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);
});
#!/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; }
#!/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'
#!/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
PACKAGES = %w( build-essential
wget
vim
git-core
curl
bison
openssl
libreadline6
libreadline6-dev
zlib1g
@yrgoldteeth
yrgoldteeth / benchmark.rb
Created October 25, 2012 21:19 — forked from panthomakos/benchmark.rb
Benchmark Your Bundle
#!/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,
]