Skip to content

Instantly share code, notes, and snippets.

View claudinec's full-sized avatar

Claudine Chionh claudinec

View GitHub Profile

Contract Killer

The popular open-source contract for web designers and developers by Stuff & Nonsense

  • Originally published: 23/12/2008
  • Revised date: 15/12/2013
  • Original post

@claudinec
claudinec / drupal-dev.md
Last active December 8, 2015 23:40
Drupal development notes

Drupal development notes

Managing code

Use Git and git-flow to manage code.

If we're working across multiple major Drupal versions, prefix the branch with d7-, d8- etc.

Two options:

@claudinec
claudinec / bmi.py
Created January 4, 2016 01:51
bmi.py
#!/usr/bin/env python
"""
Calculate Body Mass Index.
BMI = mass (kg) / height (m) ^ 2
Mass and height must be numbers.
"""
@claudinec
claudinec / usd2aud.pl
Created January 4, 2016 02:00
usd2aud.pl
#!/usr/bin/env perl
# Convert from USD to AUD.
# Time-stamp: <2009-03-15 19:55:57 claudine>
use strict;
use warnings;
use Carp;
use Finance::Quote;
use Getopt::Long;
@claudinec
claudinec / apache.sh
Last active March 29, 2016 08:02
vagrant-scripts
#!/bin/bash
# Originally copied from https://linode.com/docs/applications/configuration-management/vagrant-linode-environments
apt-get install apache2 -y
mv /etc/apache2/ports.conf /etc/apache2/ports.conf.backup
mv /etc/apache2/ports1.conf /etc/apache2/ports.conf
a2dissite 000-default.conf
a2ensite vhost.conf
service apache2 reload
@claudinec
claudinec / songbook_refs.js
Created March 29, 2016 07:32
jquery filter
.filter(function() {
return this.id.match(/[A-Z]*\-/)
})
@claudinec
claudinec / xkpasswd.json
Last active June 26, 2018 09:06
xkpasswd config
{
"comment": "This works on https://xkpasswd.net/ but not with the Perl hsxkpasswd CLI tool.",
"num_words": 2,
"word_length_min": 4,
"word_length_max": 8,
"case_transform": "LOWER",
"separator_character": "NONE",
"padding_digits_before": 0,
"padding_digits_after": 2,
"padding_type": "NONE",
@claudinec
claudinec / Domain.md
Created September 27, 2016 02:49
Domain documentation template

Domain documentation template

Registrar

Renewal date.

DNS

Mail

@claudinec
claudinec / taxonomy-term-autocomplete.txt
Created November 28, 2016 05:56
Drupal UI documentation snippets
Start typing to select existing keywords or add new ones. Separate keywords with commas.
@claudinec
claudinec / github-pandoc.css
Created January 28, 2017 00:59 — forked from dashed/github-pandoc.css
GitHub-like CSS for pandoc standalone HTML files (perfect for HTML5 output). Based on Marked.app's GitHub CSS. Added normalize.css (v2.1.3) in the prior to GitHub css.
/*! normalize.css v2.1.3 | MIT License | git.io/normalize */
/* ==========================================================================
HTML5 display definitions
========================================================================== */
/**
* Correct `block` display not defined in IE 8/9.
*/