Skip to content

Instantly share code, notes, and snippets.

View ofiesh's full-sized avatar

Nathanial Ofiesh ofiesh

View GitHub Profile
@ofiesh
ofiesh / lein
Last active September 22, 2015 00:02
lein-root
#!/usr/bin/env bash
# Ensure this file is executable via `chmod a+x lein`, then place it
# somewhere on your $PATH, like ~/bin. The rest of Leiningen will be
# installed upon first run into the ~/.lein/self-installs directory.
export LEIN_VERSION="2.5.3"
case $LEIN_VERSION in
*SNAPSHOT) SNAPSHOT="YES" ;;
@ofiesh
ofiesh / gist:9558a30a3376ab535be5
Created August 7, 2014 16:57
python smtp server (on 26)
sudo python -m smtpd -n -c DebuggingServer localhost:26
var $stockCount,
$leadTimeText,
$stockZero,
$availabilityVaries,
$freeShipping,
pageMessaging = {
'hideUnavailableByLocation': function(){},
'showUnavailableByLocation': function(){}
};
git config --global alias.lg "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative"
@ofiesh
ofiesh / git-loglive
Last active December 11, 2015 16:09 — forked from tlberglund/git-loglive
#!/bin/bash
while :
do
clear
git --no-pager log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%ci) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative --all -${1-20}
sleep ${2-10}
done