Color Output on Bash Scripts

Reblogged from Linux Tidbits:

Click to visit the original post
  • Click to visit the original post

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…

Read more… 294 more words

SASSy

Although I don’t deal with a lot of frontend development (I don’t really like it), I really dig SASS lately.

And if you got 5k lines commit,
I feel bad for you, son,
I got 99 problems,
But a code review ain’t one

(goes out to WordPress VIP team, that has to review the above mentioned commit by me)

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.

Read more… 76 more words

Totally saves the day on svn repos with big revision number

Leaving for two week vacation starting Tuesday. It’s a perfect way to meet the End of the World if Mayans were right. In that case, see y’all on some other plane of existence.

Or, if Mayans were wrong, it’s a good way to get well rested and kick some serious ass in 2013.

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

Follow

Get every new post delivered to your Inbox.

Join 540 other followers