Skip to content

Instantly share code, notes, and snippets.


Wim Mostmans Sitebase

View GitHub Profile
dahnielson / UUID.php
Last active Jun 4, 2021
Pure PHP UUID generator
View UUID.php
* UUID class
* The following class generates VALID RFC 4122 COMPLIANT
* Universally Unique IDentifiers (UUID) version 3, 4 and 5.
* UUIDs generated validates using OSSP UUID Tool, and output
* for named-based UUIDs are exactly the same. This is a pure
* PHP implementation.
jordansissel / site.pp
Created Oct 15, 2010
Simplest example of a masterless puppet invocation using module paths
View site.pp
include foo
jakebellacera / ICS.php
Last active Jun 18, 2021
A convenient script to generate iCalendar (.ics) files on the fly in PHP.
View ICS.php
* This is free and unencumbered software released into the public domain.
* Anyone is free to copy, modify, publish, use, compile, sell, or
* distribute this software, either in source code form or as a compiled
* binary, for any purpose, commercial or non-commercial, and by any
* means.
cowboy /
Last active May 1, 2021
jQuery Tiny Pub/Sub: A really, really, REALLY tiny pub/sub implementation for jQuery.
mathiasbynens / appify
Created Nov 12, 2010 — forked from subtleGradient/appify
appify — create the simplest possible Mac app from a shell script
View appify
if [ "$1" = "-h" -o "$1" = "--help" -o -z "$1" ]; then cat <<EOF
appify v3.0.1 for Mac OS X -
Creates the simplest possible Mac app from a shell script.
Appify takes a shell script as its first argument:
`basename "$0"`
zefer / nginx_cors_s3_upload_proxy_full
Created Feb 18, 2011
My nginx config to allow CORS (cross-site) uploads to Amazon S3, with added config e.g. timeouts & security
View nginx_cors_s3_upload_proxy_full
server {
listen 80 default;
server_name _;
return 444;
server {
listen 80;
samkeen /
Created Aug 12, 2011
Article describing how to test Codeigniter apps

(Integration) Test Infecting Codeigniter


This is not an article on the theoretical proper way to implement a testing policy and/or infrastructure. This is much more real world than that. This is about finding yourself in a situation were you need to refactor or add features to an existing substantial code base. Before undertaking such an adventure you would like to lay down some tests for regression purposes. The hitch is that the code is in a framework that hasn't put testing support first.

Many PHP frameworks qualify for the statement above but the one we will talk about in this article is Codeigniter. I wont use this article to debate the quality of the Codeigniter code base. It is what it is and finds itself used for a very many (in production) websites. What this article is about is addressing the situation that there are many developers out there that may find themselves working on a product utilizing a framework such as Codeigniter

olivierlacan / launch_sublime_from_terminal.markdown
Created Sep 5, 2011
Launch Sublime Text 2 from the Mac OS X Terminal
View launch_sublime_from_terminal.markdown

Launch Sublime Text 2 from the Mac OS X Terminal

Sublime Text 2 ships with a CLI called subl (why not "sublime", go figure). This utility is hidden in the following folder (assuming you installed Sublime in /Applications like normal folk. If this following line opens Sublime Text for you, then bingo, you're ready.

open /Applications/Sublime\ Text\

You can find more (official) details about subl here:


lordkev / ec2_enc.rb
Created Oct 13, 2011
Puppet EC2 Security Group ENC
View ec2_enc.rb
# Classifies a puppet node based on its EC2 security group.
# Requires the AWS gem.
# Also requires a node_groups.yml file which specifies security groups
# and the classes/params that should be applied, in the following
# format (additionally keyed by security group name).
View Ruby.sublime-settings
// The number of spaces a tab is considered equal to
"tab_size": 2,
// Set to true to insert spaces when tab is pressed
"translate_tabs_to_spaces": true,
"font_face": "Droid Sans Mono",
"font_size": 15,