Archive for April, 2010

h1

Don’t get too excited over your code

April 23, 2010

An interesting article entitled 7 Reasons to Hate your Code:

http://coderoom.wordpress.com/2010/04/22/7-reasons-to-hate-your-code/

This is a good review of why software developers should be more excited by their end product, its usability and features than the quality of the code base – something I am sure a number of us are guilty of…

Advertisements
h1

Port forwarding with SSH

April 14, 2010

You can port forward with SSH with the following command:

ssh -L 1234:localhost:1234 user@example.com

This will map port 1234 on your local system with port 1234 on the remote system (example.com). If example.com has access to another system that you dont have on your local system, you can port map from your local system to that remote system through the example.com system:

ssh -L 1234:111.111.0.2:1234 user@example.com

Now port 1234 is mapped to 1234 on the system with ip address 111.111.0.2.

You can even tunnel twice (or more times) by port mapping port 22 onto the interim systems then mapping the final system to the local system.

ssh -L 22:111.111.0.2:22 user@example.com

You can now map port 1234 to 111.111.1.2 which is only visible to 111.111.0.2 using

ssh -L 1234:111.111.1.2:1234 user@localhost