Undo a Commit in TortoiseSVN

Filed under Apple on Wednesday, 28 July, 2010 4:19 pm

Go to Show Log Screen, select the revision that you want to undo, right click it and select Revert changes from this revision, this will do a reverse-merge.

Source: http://stackoverflow.com/questions/248821/undoing-a-commit-in-tortoisesvn

Copy Mac Clipboard to iPad/iPhone (Using Automator + Dropbox)

Filed under Automator + iPad on Friday, 18 June, 2010 12:51 am

I came  up with a super useful way to copy the clipboard from OS X straight to your iPad or iPhone!
Everything you need is free. Only pre-reqs are Dropbox and Automator. I've only tried this on Snow Leopard and I'm not sure if it works on Leopard. I use this to get URLs onto the iPad, notes and it even works pretty well if you need to copy a Wifi password without syncing to iTunes. Best thing about it is that the copy process is near instantaneous!

It's pretty simple and works like this:

  1. Select text
  2. Right click -> Copy to iPad (Dropbox)

See it in action:

Wooo! Now first, make sure you have Dropbox installed on both your Mac and iPad (Free)
Then we need to make a simple to make Automator service:

  1. Open Automator.
  2. Choose "Service".
  3. Search for "Run Shell Script".
  4. You want the /bin/bash shell (should be default option).
  5. Type in the following:
  6. cat > ~/Dropbox/Mac-Clipboard.txt

  7. Save the Service.
  8. Make sure it looks like this:
  9. You're done!

Now all you ever need to do is right click on some text, pretty much anywhere, choose it from the menu we created. Since the clipboard's contents are normally very small (say less than 500kb) your upload to Dropbox should be pretty much instantaneous! When you open DropBox on your iPad, the copied text will be waiting. 8) 8) 8)

After some more thinking about making this better I thought it would be good to do something like this for images using an RTF file format and a Python script. I abandoned the idea since Python doesn't have an RTF writer built-in so you would have to download it separately, make it, blah... blah... it was just getting too complicated. It's best to keep it simple and if you really want images, just copy them to  your Dropbox :wink:

If you liked this tip or think you can improve it in someway, be sure to leave a comment!

Shell Scripts for QNAP TS-410

Filed under ARM + QNAP + Shell Scripting on Friday, 4 June, 2010 4:34 am

This post follows setting up a QNAP TS-410.

Scripts

  1. Transmission: Transmission-NotifyCompletedTorrents (37)

Copying Files with SCP

Filed under CLI + Linux + Mac OS X + Unix on Tuesday, 25 May, 2010 10:39 pm

When you want to copy files from one server to another, or remote to local copying.
SCP is your tool.

A typical scenario is I'm SSH'ed into a remote server and I want to copy a file on my Mac, to the Remote machine I'm sshed into.

You can copy the "remote" file with this command:

scp -r brock@192.168.1.6:/remoteDirectory /localDirectory

Rsync for Local Directory Mirroring

Filed under CLI + Linux + Mac OS X + Unix on Tuesday, 25 May, 2010 5:56 am

Just a quick post on using the amazing rsync.

Copy a local directory's contents /Volumes/src/ note the trailing slash, then place those contains inside /Volumes/des.

rsync -Pva /Volumes/src/ /Volumes/des

Key rsync Options
Option Description
-P shows progress during the transfer
-v Turn on verbose mode
-a This turns on archive mode. Bascially this causes rsync to recurse the directory copying all the files and directories and perserving things like case, permissions, and ownership on the target. (Note: Ownership may not be preserved if you are not logged in as the root user.)
-z Turns on compression during the transfer. This option compresses the data as it is copied over the network.

Building a QNAP TS-410 Raid NAS

Filed under ARM + QNAP + RAID + Storage on Saturday, 22 May, 2010 2:41 pm

Update: Shell Scripts for QNAP BusyBox Linux

I recently acquired a QNAP TS-410 and thus far has been time consuming to setup. These things are great, but you can't just buy them, plug your drives in and have it working in 5 mins like an external drive...

The problem is not with the NAS itself, which with it's little low powered Marvell 800mhz Arm (FTW) processor, has been working great. Rather the unreliable nature of spinning mechanical hard drives *cough* *western digital* *cough* :)

(Click here for the full article...)

No Interfaces Available in Wireshark on Mac OSX

Filed under Apple + Mac OS X + Networking on Wednesday, 12 May, 2010 7:04 pm

Wireshark in Quicksilver

Easy fix. You need to give Wireshark permission to access the network devices.

sudo chown {your account name} /dev/bpf*

Next Page »