Use browser forward / back keys to switch emacs buffers and frames

Put the below in your ~/.emacs: ;; make thinkpad browser keys navigate buffers (setq w32-pass-multimedia-buttons-to-system nil) (global-set-key (kbd “”) ‘next-buffer) (global-set-key (kbd “”) ‘previous-buffer) (global-set-key [C-XF86Forward] ‘next-multiframe-window) (global-set-key [C-XF86Back] ‘previous-multiframe-window) On my x220 this allows the browser forward & back keys (above right & left cursor keys) to be used to switch buffer and combined …

Continue reading ‘Use browser forward / back keys to switch emacs buffers and frames’ »

Rex – a systems orchestration tool written in Perl

Now, in 2014 Perl is considered rather embarrassing – but it is still widely used. I’ve wandered off the Perl path towards the seductive embrace of Python myself. However, in some environments you cannot choose your toolset. I’m a big fan of Ansible and it has gone on from strength to strength with VC and …

Continue reading ‘Rex – a systems orchestration tool written in Perl’ »

change email address in mysql

A tiny piece of SQL to update email addresses in a table where the domain is changing: update aliases set emailaddr = concat(SUBSTRING_INDEX(emailaddr, ‘@’, 1), ‘@newdomain.com’) where emailaddr like ‘%@olddomain.com’; Very simple, but this has been hanging around in draft for ages and it may help someone.

Nimrod Programming Language

Nimrod is a statically typed, imperative programming language that tries to give the programmer ultimate power without compromises on runtime efficiency. This means it focuses on compile-time mechanisms in all their various forms. via Nimrod Programming Language. I like the look of this – the syntax is python-esque and it outputs fairly small binaries.