Mac Screen Capture

Posted: October 12th, 2010 | Author: | Tags: , | 1 Comment »

My screen capture needs are generally well served with SmithTech’s Jing, however, sometimes I just want to do a quick screen grab without pushing it out to the cloud. Here’s the shortcuts in mac to capture images…

Full screenshot

CMD+SHIFT+3

Select screenshot region

CMD+SHIFT+4

Modifying System PATH on Mac OSX

Posted: September 24th, 2010 | Author: | Tags: , , | No Comments »

To add a directory to your global terminal path in OSX you simply need to add the desired directory to the /etc/paths file and you’re all set. To do this from the terminal type the following command:

sudo vim /etc/paths

Thank you Apple for making this so simple.


Essential SVN Command Line Examples

Posted: April 1st, 2010 | Author: | Tags: , , | No Comments »

Checking out a Repo

svn co --username USER --password PASS http://svn.yourrepo.com/svn/someproject/trunk mydir

This command will checkout the remote path to a folder named “mydir” under the directory in which the command is issued.

Committing changes

svn ci

Recursively checks in all added or modified files under the current working directory.  By default this command will open a text editor where you can confirm the items being checked in and type a message.

What has changed?

svn status

Shows modified, conflicted, and unknown files recursively starting from the current working directory.

svn diff --revision 87 filename.rb

This command will display a unified diff comparing the current working version to revision 87.

svn update

Updates working copy to latest revision.

Ignoring Files

svn propedit svn:ignore /path/to/directory/holding/your/file

This  command will bring up a nano edit screen where you can add line delimited ignore properties. If you want to ignore all files within a directory, you would simply enter “*” in this editor window. Save the file, return to the command line, and do a quick “svn status” to make sure your settings took.