This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function git_current { | |
BRANCH_NAME=`git branch -v 2>/dev/null |grep '^*'|awk '{print substr($2,0,6)}'` | |
BRANCH_HASH=`git branch --abbrev=4 -v 2>/dev/null |grep '^*'|grep -o ' [0-9a-f][0-9a-f][0-9a-f][0-9a-f] '` | |
echo -n $BRANCH_NAME $BRANCH_HASH | |
} | |
RIGHT_PROMPT='\[\033[s\]\[\033[$((COLUMNS-16))C\]' | |
END_RIGHT_PROMPT='\[\033[u\]' | |
DEB_PREFIX='${debian_chroot:+($debian_chroot)}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function git_current { | |
git branch -v 2>/dev/null |grep '*'|awk '{print substr($2,0,6) " " substr($3,0,3)}' | |
} | |
RIGHT_PROMPT='\[\033[s\]\[\033[$((COLUMNS-16))C\]' | |
END_RIGHT_PROMPT='\[\033[u\]' | |
DEB_PREFIX='${debian_chroot:+($debian_chroot)}' | |
COL_FG='\[\033[00m\]' | |
USER_HOSTNAME_TRUNCATED='${USER:0:1}@${HOSTNAME:0:4}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
project = 'hi' | |
commit = None | |
with lcd("%s" % (project)): | |
commit = local("git log -g --pretty=%B -n 1") | |
print commit #This prints the right message | |
print commit # This doesn't |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Notation, from _Exercises in Style_ by Raymond Queneau | |
----------------------------------------------------------- | |
On the S bus, in the rush hour, A chap of about twenty-six, | |
soft hat with a cord instead of a ribbon, neck too long, | |
as if someone's been tugging at it. People getting off. | |
The chap in question gets annoyed with one of the men | |
standing next to him. He accuses him of jostling him every | |
time anyone goes, past. A snivelling tone which is meant | |
to be aggressive. When he sees a vacant seat he throws |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am schuyler1d on github. | |
* I am schuyler1d (https://keybase.io/schuyler1d) on keybase. | |
* I have a public key whose fingerprint is F73C B9BB B9B7 FBEF B9DE EFB1 7481 5C93 57E2 FAC4 | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:14.04 | |
#FROM centos:6 | |
WORKDIR /devboot | |
#RUN yum install -y salt-minion | |
#ADD ./master.conf /etc/salt/minion.d/master.conf | |
#ADD ./master.conf /etc/salt/minion.d/master.conf | |
#salt ports | |
EXPOSE 4505 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
crontab -l |egrep '^[0-9]+ [0-9]+' |egrep -o '\-n [a-z_/.]+ [a-z_/.]+' |while read -a line; do if [ -n "$(ps -ef|grep ${line[2]}|grep -v grep)" ] ;then echo "process ${line[2]} running"; else rm ${line[1]}; fi ;done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Follow the instructions here to install: | |
https://davidwalsh.name/firefox-user-stylesheet | |
Then restart Firefox | |
*/ | |
/* | |
Follow the instructions here to install: | |
https://davidwalsh.name/firefox-user-stylesheet | |
Then restart Firefox |