Bash argument unpacking
I’m not a bash expert but my .bash_profile is packed with shortcut goodness to do all kinds of things on the quick. Most recently, I wondered how to fix up some of my function shortcuts to take any...
View ArticleUsing make to concatenate JS files
In a previous project I used a bash script in conjunction with a git hook to concatenate all my js files and increment build numbers in html file references (cache-kill) after every commit. This was...
View ArticleConvert a file to utf8-encoding via command-line
I had an issue importing a large CSV to mongodb using mongoimport. I was getting the error: exception:Invalid UTF8 character detected Use iconv, a program that seems to be on both mac and most unix...
View ArticleGreat little bash snippet to summarize your daily git commits.
For general invoicing and hour tracking, I like to post the details of my git commits. Though, I had my own little version of this script, this one posted at stackoverflow was a lot better looking....
View Article