SSH tunneling is so useful that I find myself revisiting it again. This post helped me to get started. I would add the -f option to run the command in the background. 5126 is the port I use on my own machine once the tunnel is established. ssh -f -N -L 5126:TARGET_SERVER:22 USER@GATEWAY_SERVER Once the […]Read more "Revisiting SSH Tunneling Tricks"
I need to list all files in a directory tree excluding files with certain text in its names. This thread helped me to create something similar: find . -type f |grep -v ‘/[.svn-base]’ –Read more "Listing files excluding certain names"
I need to forward a call to a different number when the cell phone is unattended or has no signal. This inquiry led me to the following instructions. It worked beautifully! :)Read more "Call Forwarding"
Today I tried to use Parted Magic to clone a disk. At first, I used Clonezillathat came with Parted Magic. It failed on the last partition, which was a lvm2 pv partition. Next, I tried dd command with basic options, i.e. dd if=/dev/sda of=/dev/sdb That returned with an IO error. Then I used ddrescue, also bundled […]Read more "Cloning a disk"
I needed to migrate a folder from one Subversion server to another. So, I attempted to follow this page to use dump with svndumpfilter. This combo led me to a lot of issues. The dump command exports all the commits for a repository while svndumpfilter attempts to filter the folder I am interested to keep. Unfortunately, […]Read more "Migrate a folder from one Subversion server to another"
I needed to start svnserve at boot time as a particular user on Red Hat Enterprise Linux. After looking at this and this posts, I came up with the following: /etc/rc.d/rc.local su svn -c “svnserve -d” This effectively runs svnserve in daemon mode as svn user after all other init scripts ran at boot time.Read more "Start a server software at system boot time"
Enable print: I was able to add print feature to a GWT app by using gwt-print-it library. I used last example in the documentation to get the printing to work (see included code fragment below). Print.it(“<!DOCTYPE HTML PUBLIC ‘-//W3C//DTD HTML 4.01//EN’ ‘http://www.w3.org/TR/html4/strict.dtd’>”, “<link rel=StyleSheet type=text/css media=paper href=/paperStyle.css>”, RootPanel.get(“myId”)); I had to use absolute URLs instead of […]Read more "Adding print feature to a GWT app"