Skip to content

Instantly share code, notes, and snippets.

View thijzert's full-sized avatar

Thijs van Dijk thijzert

  • Den Haag, Nederland
View GitHub Profile
@thijzert
thijzert / .bash_aliases
Last active October 2, 2015 16:38
Useful bash aliases
alias IP="grep -oP '([0-9]+\.){3}[0-9]+' | grep -vP '192\.168\.[0-9]+\.[0-9]+'"
alias rdp="rdesktop -g 1600x1000 -a 16 -N -u Administrator -k en-us -r clipboard:PRIMARYCLIPBOARD"
alias bbc3='mplayer http://bbcmedia.ic.llnwd.net/stream/bbcmedia_radio3_mf_q'
alias klara='mplayer http://mp3.streampower.be/klara-high.mp3'
alias radio4='mplayer http://icecast.omroep.nl/radio4-bb-mp3'
alias svngrep='find . \
-path ".git" -prune -o -path "*.git" -prune \
-o -path ".svn" -prune -o -path "*/.svn" -prune \
@thijzert
thijzert / .vimrc
Created February 29, 2012 21:21
My vimrc
" This is my personal .vimrc file.
"
" This line should not be removed as it ensures that various options are
" properly set to work with the Vim-related packages available in Debian.
runtime! debian.vim
" Source a global configuration file if available
@thijzert
thijzert / fancy_mail.inc
Created October 22, 2011 18:12
Fancy Mailer - PHP SMTP wrapper capable of sending multipart plaintext/html messages
<?php
/**
*
* fancy_mail.inc - Sends e-mails in multipart/alternative à la Gmail
* Copyright (C) 2008 Thijs van Dijk
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or