Tips and Tricks for development

 

SSH Tunneling

If you work in multiple locations that do not allow you to work outside their networks here are a couple of things you can do:

  1. Setup an SSH server listening on Port 443 somewhere on the internet. I know this might be hard, but if your business is IT, then you should be able to do this.
  2. Setup your ssh to forward certain ports through the firewall e.g. like this: 
    sudo ssh -XYC  -L993:yourmail:993 -L25:yourmail:25 -p 443 yourlogin@yourserver.com

    This will allow you to access e-mails locally.

  3. If you are behind an HTTP proxy, use proxytunnel to run a permanent tunnel to your ssh server, so you can connect to your ssh server locally: 
    proxytunnel -p proxy:8080 -d yourserver:443 -a 8443

    sudo ssh -XYC  -L993:yourmail:993 -L25:yourmail:25 -p 8443 localhost

    This will ask you for the password on the REMOTE server and then you can work as you can in step 2 

Replace strings in multiple files with SED

 

find acs-workflow/ -name "*.tcl" -exec sed -i -e 's/ad_acs_admin_id/ad_acs_kernel_id/g' {} \;