Color Output on Bash Scripts
Users who have been using Linux for awhile often learn that creating a basic script is a good way to run multiple, often-repeated commands. Adding a little color to scripts can additionally provide nice feedback. This can be done in a fairly straight-forward way by using the tput command.
A common way of doing this is to define the colors that…
SASSy
Although I don’t deal with a lot of frontend development (I don’t really like it), I really dig SASS lately.
Git-svn clone the last few revisions
Reblogged from write-only by Gregg Lind:
It can be awfully tempting to make some changes to an existing open-source project [1]. Some of that excitement diminishes when one realizes how long a git-svn clone will take on a large project repo, like Python. The gain git-svn gives you in terms of quick history lookup is taken as cost in the beginning.
Instead, we can do a "shallow-copy" to get the last few revisions.
git-to-svn: Update a svn repo with the contents of a git repo without a hassle
I love using git and wordpress.org repository uses svn. So I wrote this simple shell script that syncs 2 folders using rsync, excluding git specific files. This maintains my sanity whenever I need to release a new version of a plugin (which happens pretty often cause I’m a big fan of RERO
