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 / Sleep.tasker.xml
Last active August 29, 2015 14:13
Tasker profile reminding me to get off Reddit and go to sleep
<TaskerData sr="" dvi="1" tv="4.6u2m">
<Profile sr="prof6" ve="2">
<id>6</id>
<mid0>9</mid0>
<!-- Execute daily at 23:45 - way past my bedtime! -->
<Time sr="con0">
<fh>23</fh>
<fm>45</fm>
<th>23</th>
<tm>45</tm>
@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
@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 / termcolours.inc
Created June 5, 2012 15:50
Terminal colours in PHP
<?php
// 'Normal' colours:
function black($s) { return _term_colour( '0;30', $s ); }
function blue($s) { return _term_colour( '0;34', $s ); }
function green($s) { return _term_colour( '0;32', $s ); }
function cyan($s) { return _term_colour( '0;36', $s ); }
function red($s) { return _term_colour( '0;31', $s ); }
function purple($s) { return _term_colour( '0;35', $s ); }
function yellow($s) { return _term_colour( '0;33', $s ); }
@thijzert
thijzert / stats.inc
Created June 11, 2012 12:53
Statistical simulations in PHP
<?php
class St
{
/**
* Generate a random number in the interval (0,1).
*
* Using the parameters $closed_left and/or $closed_right, the interval may
* be closed to [0,1), (0,1], or [0,1].
@thijzert
thijzert / progressbar.inc
Created June 11, 2012 13:58
A PHP progress bar
<?php
require_once( "termcolours.inc" );
class ProgressBar
{
protected $ticktime = false;
protected $exp;
protected $xsquare;

Graphing Widget

The graphing widget shows graphs using the Rickshaw graphing library. The names of data fields should be (vaguely) familiar if you've used Rickshaw before.

It's recommended that you replace the /assets/javascripts/rickshaw.min.js from your dashboard with the latest from here.

Supported HTML data fields

Keybase proof

I hereby claim:

  • I am thijzert on github.
  • I am thijzert (https://keybase.io/thijzert) on keybase.
  • I have a public key whose fingerprint is 6A94 F9A2 DFE5 40E3 067E C282 2AFE 9EFA 718B 6165

To claim this, I am signing this object:

@thijzert
thijzert / button.css
Last active October 14, 2016 11:12
Scriptless fork button
#fork-me a
{
background-color: #eee;
background-image: -webkit-linear-gradient(top,#fcfcfc,#eee);
background-image: -moz-linear-gradient(top,#fcfcfc,#eee);
background-image: linear-gradient(to bottom,#fcfcfc,#eee);
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr='#fcfcfc', endColorstr='#eeeeee')";
height: 26px;
display: inline-block;

Betreft: Geluidsoverlast Huisman / Seven Waves
Datum: 30 december 2016

Aan:

  • Huisman Equipment BV
  • Damen Shiprepair Schiedam
  • Gemeente Schiedam
  • DCMR Milieudienst Rijnmond