Skip to content

Instantly share code, notes, and snippets.

View bcreasy's full-sized avatar

Brian Creasy bcreasy

View GitHub Profile
@evilchili
evilchili / git-hook-functions.sh
Created October 4, 2011 20:17
function library for git hooks & a post-receive hook for automatic branch building
#!/bin/bash
GIT_DIR=$(git rev-parse --git-dir 2>/dev/null)
if [ -z "$GIT_DIR" ]; then
echo >&2 "fatal: hooks/functions: GIT_DIR not set"
exit 1
fi
read oldrev newrev refname
@dergachev
dergachev / README.md
Created October 10, 2012 16:49
Vagrant tutorial

Vagrant Setup

This tutorial guides you through creating your first Vagrant project.

We start with a generic Ubuntu VM, and use the Chef provisioning tool to:

  • install packages for vim, git
  • create user accounts, as specified in included JSON config files
  • install specified user dotfiles (.bashrc, .vimrc, etc) from a git repository

Afterwards, we'll see how easy it is to package our newly provisioned VM

@bcreasy
bcreasy / setjdk.sh
Last active December 16, 2015 10:49
bash script to switch the symlink that PATH and JAVA_HOME use for the JDK currently in use
if [[ -d /opt/build/resources/jdk ]]; then
servertype="build"
else
servertype="code"
fi
jdkpath=/opt/$servertype/resources/jdk/jdk
export PATH=$jdkpath/bin:$PATH
export JAVA_HOME=$jdkpath
@bcreasy
bcreasy / gist:6465456
Last active December 22, 2015 11:28
fix mac dns lookup
sudo sed -i .orig 's/\(<string>\/usr\/sbin\/mDNSResponder<\/string>\)/\1\
<string>-AlwaysAppendSearchDomains<\/string>/
' /System/Library/LaunchDaemons/com.apple.mDNSResponder.plist
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.mDNSResponder.plist
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.mDNSResponder.plist
@bcreasy
bcreasy / gist:6558682
Last active December 23, 2015 01:09
Tenderloin: Vegan Style

Vegan "Tenderloin" Using Seitan

Originally, this recipe was referred to as Vegan Brisket, but it's definitely closer to tenderloin in style.

Step 0: Invent the Universe

Step 1: Make Seitan

Ingredients

@bcreasy
bcreasy / queso.md
Last active August 29, 2015 14:01
Vegan Queso
@bcreasy
bcreasy / tofuscramble.md
Created September 19, 2014 00:24
Tofu Scramble!

Tofu Scramble

Ingredients

  • 1 block of firm tofu, pressed and drained
  • 0.25 cup nutritional yeast flakes
  • Black pepper to taste

Spice Blend

  • 2 tsp. ground cumin

Traditional chili sin carne

First introduced at Starmount Chili Cook-Off 2015. Won third place prize, defeating animal-based chili!

  • 2015: 3rd place
  • 2016: 9th place

Ingredients

  • 30 fl. oz Organic Tomato Sauce
@ulhas
ulhas / fastfile
Created March 20, 2016 02:58
Fastfile for HyperTrack iOS SDKs
fastlane_version "1.57.0"
require 'fileutils'
default_platform :ios
platform :ios do
desc "Increment framework version"
private_lane :increment_framework_version do |lane|