Skip to content

Instantly share code, notes, and snippets.

@lutnos
lutnos / bash-timestamp.md
Last active October 24, 2019 08:43
Adding a timestamp to bash script output lines

Adding a timestamp to bash script output lines

It is useful when running lengthy bash scripts to be able to see when output occurred, either for record keeping, for speed analysis - or just to help quell impatience.

This can be done with a bit of bash script & for convenience it can be packaged in a bash function

Script

@lutnos
lutnos / arpanet-rubik
Created January 15, 2015 14:19
My earliest Arpanet e-mail, to the Rubik cube lovers list, from MIT-AI
DENG at MIT-AI (Dave English, University of Newcastle, UK)@MIT-AI (Sent by DENG@MIT-AI) 06/25/81 05:34:38 Re: Royal Wedding
To: cube-lovers at MIT-MC
CC: DENG at MIT-AI
Someone here in Newcastle upon Tyne, England is selling
cubes to celebrate the forthcoming marriage of His Royal
Highness, Charles Mountbatten, Prince of Wales to Lady
Diana Spencer. Said cubes have a portrait of Prince
Charles on one face & Lady Di on the opposite. The
@lutnos
lutnos / gimp-batch-scale-level-sharpen-cmd.md
Created January 15, 2015 14:13
batch-scale-level-sharpen from command line in Windows and MacOS

I have always been a big fan of the batch-scale-level-sharpen plugin, [url=http://registry.gimp.org/node/25350]. Apart from anything else, I use it to scale and recode by raw camera images for more general consumption.

Just today, I went through the labour of making this work from the command line, first in MacOSx, then in Windows.

First install the plugin, by downloading and copying the file to one of the library directories listed in File -> Preference -> Files

I am using 2.8.14 on both. On MacOSx I had to work around some library load path bug, in Windows to struggle with character escaping with CMD.EXE . Never the less, I now have both working & would like to share this.

The error I saw in MacOSx was:

@lutnos
lutnos / pgp7-xp-sp1
Created January 15, 2015 13:56
Installing PGP7 on Windows XP SP1
Installing PGP7 on Windows XP SP1
Microsoft Windows has long had an Application Compatibility system, to
allow software intended for earlier versions of Windows to be used on
later versions. When making the software work is beyond the
capabilities of the system, then it can prevent the software being
installed at all.
PGP7 is an example of something that cannot be made to fully work on
Windows XP. We will all have to wait for PGP8 to do that. But in the
@lutnos
lutnos / gist:a766e86887afcd126056
Last active August 29, 2015 14:12
keybase.md
### Keybase proof
I hereby claim:
* I am lutnos on github.
* I am sandersw (https://keybase.io/sandersw) on keybase.
* I have a public key whose fingerprint is 7087 3F20 3E86 FD41 C8A9 4E55 F5EB 562B 9769 C0D7
To claim this, I am signing this object: