Wednesday, December 19, 2012

Sometimes when you want to do something on the web, they insist you give an email address to sign up.

Many of them won't accept addresses from

https://www.guerrillamail.com/

But they MAY accept addresses from:

http://www.mailexpire.com/

easy... just point a mailexpire address at a guerrillamail account...

Job done! :-)

Friday, December 14, 2012

VBS script to launch multiple PuTTY sessions

This is to launch parallel PuTTY sessions to a list of hosts, as by the name of their saved PuTTY sessions.

Set objShell = CreateObject("WScript.Shell") dim hosts hosts = "host1 host2 host3 host4" dim host for each host in split(hosts) objShell.Exec "C:\Program Files\PuTTY\PUTTY.EXE -load " + host next

NB: you could use

objShell.Exec "C:\Program Files\PuTTY\PUTTY.EXE username@" + host

instead of

objShell.Exec "C:\Program Files\PuTTY\PUTTY.EXE -load " + host

If you want to log straight into the box without using a saved session

Monday, December 03, 2012

bash command history elements

While you can do

<command> !$

To reuse the last argument of the previous command, you can also use !:n to get the n'th word from the previous command line.

!:0 is the command, the arguments start at index 1.

!* gives ALL of the arguments without the command.

Thanks larsmans & Gilles