This file contains hidden or 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
parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/' | |
} | |
PS1="\[\033[1;33m\]\u@\h:\w $(parse_git_branch)>\[\033[0m\] " |
This file contains hidden or 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
window; | |
columnLayout; | |
textField "nodeTF"; | |
showWindow; | |
textField -e -cc "showMatches(\"nodeTF\")" "nodeTF"; |
This file contains hidden or 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
path=https://github.com/api/v2/yaml/issues/open/duxlabs/giraffe | |
user=your_user | |
pass=your_password | |
title="Maya Integration" | |
body="Integrate Autodesk Maya" | |
curl --user ${user}:${pass} -F "login=${user}" -F "title=${title}" -F "body=${body}" ${path} | |
title="Get 3rd party Licenses" | |
body="Adobe CS, Fusion, Houdini" |
This file contains hidden or 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
# in tcsh you can do stuff like this: | |
# set f = /foo/bar/myfile.0076.jpg | |
# echo $f:r:e | |
# --> 0076 | |
# echo $f:h:t | |
# --> bar | |
# In bash its a mess so I wrote some functions to make it possible. | |
e() # the extension |
This file contains hidden or 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
for r in `cat repoList.txt` | |
do | |
dt=`curl -u "my_username:my_password" https://github.com/api/v2/json/repos/delete/hoolymama/$r | cut -d"\"" -f4` | |
curl -X POST -u "my_username:my_password" -F "delete_token=$dt" https://github.com/api/v2/json/repos/delete/hoolymama/$r | |
done |
This file contains hidden or 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
alias sequin='cd $DEV/sequin;rvm use 1.9.2-p290@sequin' |
This file contains hidden or 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
module Flak | |
class CLI < Thor | |
register(Generate, 'generate', 'generate <something>', 'Generate a new something.') | |
end | |
end |
This file contains hidden or 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
for f in `find ./ -name "*.cpp"`; do c=`tail -c 1 $f`; if [ "$c" != "" ]; then echo >> $f ; fi; done |
This file contains hidden or 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
for f in `grep -rl darwin64 *` | |
do | |
sed 's/darwin64/linux64/g' $f > $f.new | |
mv $f.new $f | |
done |
This file contains hidden or 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
require 'date' | |
d = Date.new(2012,6,1) | |
(0..52).each {|n| puts (d + (n*7)).strftime("%d/%m/%Y") + " "+ (d + ((n+3)*7)).strftime("%d/%m/%Y") } |
OlderNewer