View commit_dates.sh
# Setting date at commit time:
GIT_COMMITTER_DATE="Tue Feb 7 22:47:34 2012 -0800" git commit -m "Ignore stuff" --date "Tue Feb 7 22:47:34 2012 -0800"
# Changing date for historical commit:
git filter-branch --env-filter 'if [ $GIT_COMMIT = <commit-id> ]
then
export GIT_AUTHOR_DATE="Tue Feb 7 22:47:34 2012 -0800"
export GIT_COMMITTER_DATE="Tue Feb 7 22:47:34 2012 -0800"
View gist:e50b7862e9ee8f86dccd

Ubuntu, Drupal, Drush & SQLite

Install

sudo apt update
sudo apt install sqlite3 libsqlite3-dev

For PHP add:

sudo apt install php5-sqlite
View gist:98b7471cf0640512ce9f
<?php
//Prints human-readable information about a variable.
drupal_set_message('<pre>' . print_r($variable, TRUE) . '</pre>');
View Contract Killer 3.md

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

View gist:8afda0c6d7de39cbf1a0
//The Conditionless For
for (;;) {
console.log("\u0049 \u2665 \u0055");
}
//The Unchanging Condition
while (1 < 2) {
console.log("\u0049 \u2665 \u0055");
}
View gist:cc28cbf97081f05db517

The Setup

  • Linux Ubuntu 14.04
  • Apache 2.4.7 + userdir_module
  • MySQL 5.5.37
  • PHP 5.5.9
  • Drupal 7x

The Directories

  • ~/public_html/foo
  • ~/public_html/bar
View gist:edadf9f0749413eae6b0
<html>
<head>
<script>document.documentElement.className += "loading";</script>
</head>
<body>
<script>
(function () {
'use strict';
function removeTheClass() {