Skip to content

Instantly share code, notes, and snippets.

Avatar
type type type

Beau Gunderson beaugunderson

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