The every day things from Thalamus' life.

Thalamus' Blog

12 October, 2015

bash expansion tip

Filed under: ComputerStuff_en — Thalamus @ 13:43

I stumbled upon this tip some days ago and implemented it as a one-liner for a guy at work. He needed to run md5sum manually on usb disks … and some of these where RO.

We descided that it would be sufficient to use the basename as the filename containing the md5 sums.

alias lagmd5='find . -exec md5sum {} \; > /mnt/writabledisk/${PWD##*/}.md5'

If i is in folder /xx/yy/zz the filename would become /mnt/writeabledisk/zz.md5

• • •

2 October, 2015

ssh via socks proxy

Filed under: ComputerStuff_en — Thalamus @ 05:52

A colleague of mine showed me another way of doing proxy via ssh – thought it might come in handy some day.

ssh -D 4567

Then in the only firefox – set the proxy up

Preferences->Advanced->Network->Connection Settings->Manual proxy settings
Port: 4567


• • •