Skip to content

Instantly share code, notes, and snippets.

Thomas Schoffelen tschoffelen

Block or report user

Report or block tschoffelen

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View reset.css
v2.0-modified | 20110126
License: none (public domain)
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
paulallies / gist:0052fab554b14bbfa3ef
Last active Feb 14, 2020
Remove node_modules from git repo
View gist:0052fab554b14bbfa3ef
#add 'node_modules' to .gitignore file
git rm -r --cached node_modules
git commit -m 'Remove the now ignored directory node_modules'
git push origin master
SleeplessByte / rfc4122-uuid.js
Created Apr 29, 2014
RFC4122 compliant UUID in Javascript (by broofa)
View rfc4122-uuid.js
'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) {
var r = Math.random()*16|0, v = c == 'x' ? r : (r&0x3|0x8);
return v.toString(16);
View static-templates.php
* Plugin Name: Static Templates
* If most of your site content is in .php template files, and you're tired of
* creating new pages, assigning them page templates, creating page templates
* then doing it all over again on production, this plugin is for you.
* Examples:
oobrien /
Last active Jan 22, 2019
TfL lines and stations. Includes, Tube, DLR, Overground, Tramlink, Emirates Air Line and Crossrail. All as currently running/aligned, except Crossrail. Original data source: OpenStreetMap, which is Copyright OpenStreetMap contributors and available under the Open Database Licence.
jed /
Last active Jan 9, 2020
How to set up stress-free SSL on an OS X development machine

How to set up stress-free SSL on an OS X development machine

One of the best ways to reduce complexity (read: stress) in web development is to minimize the differences between your development and production environments. After being frustrated by attempts to unify the approach to SSL on my local machine and in production, I searched for a workflow that would make the protocol invisible to me between all environments.

Most workflows make the following compromises:

  • Use HTTPS in production but HTTP locally. This is annoying because it makes the environments inconsistent, and the protocol choices leak up into the stack. For example, your web application needs to understand the underlying protocol when using the secure flag for cookies. If you don't get this right, your HTTP development server won't be able to read the cookies it writes, or worse, your HTTPS production server could pass sensitive cookies over an insecure connection.

  • Use production SSL certificates locally. This is annoying

mike3k / gist:6125852
Created Jul 31, 2013
Use this as a custom action in SourceTree to view the selected commit on Github. In the custom action editor, specify the parameters $REPO $SHA
View gist:6125852
cd $1
URL=`git remote -v |grep "fetch)" |awk '{print $2;}'|sed -e''|sed -e's|\.git||'`
open ${URL}/commit/$2
mdornseif /
Last active Dec 22, 2018
Convert SWIFT MT940 data to OFX.
#!/usr/bin/env python
# encoding: utf-8
""" - Dieses Progrtamm liesst MT940 SWIFT Kontostände und konvertiert sie in OFX.
OFX wurde mit getestet.
Created by Maximillian Dornseif on 2010-06-05.
Copyright (c) 2010, 2013, 2014 HUDORA. All rights reserved.
Turin86 / WSSoapClient.php
Last active Oct 8, 2019 — forked from johnkary/WSSoapClient.php
WS-Security for PHP SoapClient
View WSSoapClient.php
* This class can add WSSecurity authentication support to SOAP clients
* implemented with the PHP 5 SOAP extension.
* It extends the PHP 5 SOAP client support to add the necessary XML tags to
* the SOAP client requests in order to authenticate on behalf of a given
* user with a given password.
keighl /
Last active Oct 11, 2018
Rename a font to have the same Family/Fullname/Postscript name. This prevents IE from choking in @font-face
# FontForge command
fontforge -script ProprietaryFontCondensedBold.otf
# FontForge Script
# * Opens the font file
# * Sets the family/fullname/postscript name be the same as the filename (without ext)
You can’t perform that action at this time.