Skip to content

Instantly share code, notes, and snippets.

@hendrikb
hendrikb / jsonify
Created April 9, 2015 13:39
jsonify turns command line arguments into full featured JSON documents
#!/bin/bash
# This tool turns command line arguments into full featured JSON documents
# author: Hendrik Bergunde <hbergunde@gmx.de> https://gist.github.com/hendrikb/
# Call jsonify --help for help
# Put this script somewhere into your $PATH variable to access it from anywhere
# Thanks for using this script - I love you all.
@hendrikb
hendrikb / .Xmodmap
Created November 18, 2014 08:53
Xmodmap mapping: Make Macintosh Apple US Keyboards behave like a PC keyboard on Ubuntu
! Xmodmap mapping for Macintosh Apple US Keyboards
! Very useful if You want to use an Apple keyboard on your Ubuntu PC.
! It turns (Mac's) CMD to (PC's) ALT and (Mac's) ALT to (PC's/Ubuntu's) SUPER key
! -- so it kind of behaves like a regular PC keyboard --
! and enable German Umlauts when pressing right CMD + u/a/o/s
! Put these lines into your ~/.Xmodmap and call xmodmap ~/.Xmodmap to change your keyboard layout
! clean most of the modifiers
@hendrikb
hendrikb / Email Address Validity
Created February 19, 2014 08:43
Tests for correct first parts ('local part') of email addresses (domains are currently not cared about)
egrep --color '[a-z0-9!#$%&*+-/=?^_`{|}~\._+-]+@' list_of_email_addresses