Skip to content

Instantly share code, notes, and snippets.

View beaugunderson's full-sized avatar
type type type

Beau Gunderson beaugunderson

type type type
View GitHub Profile
@beaugunderson
beaugunderson / wrap.js
Last active December 10, 2015 14:28 — forked from anonymous/gist:4447348
var original = cb;
cb = function wrapper() {
var args = arguments;
process.nextTick(function () {
original.apply(wrapper, args);
});
};
@beaugunderson
beaugunderson / loadenv.sh
Created October 15, 2012 23:18 — forked from kristjan/loadenv.sh
Load a .env file into your current shell. Handy when you need to skirt Foreman.
function loadenv_inner() {
cat .env | while read line; do
echo export $line
done
}
function loadenv() {
if [ -f .env ]; then
eval `loadenv_inner`
else