commands

A flowchart on how to undo changes in Git alvin December 31, 2014 - 8:34am

A flowchart on how to undo changes in Git, from this tweet.

Mac OS X performance tuning tools and commands alvin March 23, 2014 - 9:24pm

Mac OS X performance tuning tools and commands. From this tweet by Brendan Gregg.

Getting help on Play Framework console commands alvin October 15, 2012 - 9:58am

It took me a few minutes to figure out that when you want help on Play Framework console commands (i.e., the Play command line tool), you may get more useful help by typing help play instead of just help. Using the first command shows information on commands like clean, compile, console, etc., which is what I'm more interested in.

To take a quick look at this, here's what you get when you type help play:

A tmux cheat sheet alvin August 25, 2012 - 11:08am

I just started using tmux last week, and created a cheat sheet to help me remember the basic tmux commands, and I thought I'd share that here.

The cheat sheet has a few things that are specific to my configuration file, so to begin with, here is my ~/.tmux.conf file:

Scala SBT tool history commands alvin June 8, 2012 - 2:13pm

When you're using the SBT tool with your Scala projects, it can be helpful to list your "sbt history", the history of your SBT commands. Courtesy of the SBT tool itself, here are the history commands you can use from the sbt command line:

How to execute (exec) external system commands in Scala alvin May 19, 2012 - 10:36am

Scala exec FAQ: How do I execute external system commands in Scala?

When it comes to executing external system commands, Scala is a dramatic improvement over Java. The operators Scala makes available are much more like Perl or Ruby, and the operators themselves are consistent with traditional shell commands, and are therefore easy to remember. Let's take a look at a few examples.

My Siri-like Mac speech recognition and computer interaction software alvin November 20, 2011 - 4:24pm

Git shortcuts/aliases - How to create

Git shortcuts FAQ: Can I create Git shortcuts (aliases) so I don't have to type out full Git commands like "git commit..."?

I've been reading the Pro Git book a lot lately, and the short answer is yes, you can create Git shortcuts so you don't have to type out the long Git commands. Here are several Git shortcut commands (referred to as "git aliases") from the Pro Git book:

Free Unix/Linux and vi/vim cheat sheets alvin October 27, 2009 - 7:01pm

I created some "cheat sheets" (reference pages) for a recent Unix and Linux training class. One is a "Unix and Linux commands cheat sheet", and the other is a "vi/vim editor cheat sheet". I'll be sharing the entire "Introduction to Unix" training PDF here shortly, but in the meantime, here are the links to the Unix/Linux and vi/vim cheats: