Skip to content

Instantly share code, notes, and snippets.


Sean Hamlin seanhamlin

View GitHub Profile
cntlscrut / aclcreate.php
Created Jun 15, 2018
Quick CSV to ACL declaration function
View aclcreate.php
* Read in a CSV file as taken from the command line arg
* CSV file needs to be in the same directory as this
* script for the time being
* Output is expected to be text representing an ACL
* declaration that can be copypasta'd into a VCL file.
bjornjohansen / sitemap-crawler.php
Last active Feb 21, 2022
Basic sitemap crawler to warm up a full page cache
View sitemap-crawler.php
* @license WTFPL
date_default_timezone_set( 'UTC' );
$sitemaps = array(
kostajh /
Last active Dec 31, 2015
Call with something like `python3 --username ACQUIA_CLOUD_USERNAME --password ACQUIA_CLOUD_PASSWORD --branch GIT_BRANCH`
#!/usr/bin/env python3
import subprocess
import json
import time
import sys
import argparse
baseurl = ''
parser = argparse.ArgumentParser(description='Get username and password.')
dergachev /
Last active Sep 24, 2022
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF


To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

CashWilliams / fix_prefix.php
Created Jun 29, 2012
Drupal 7 drush script to remove database prefix
View fix_prefix.php
// current table prefix to be removed
$prefix = "drup_";
// echo generated statments rather then run them
$pretend = FALSE;
$table_list = db_query("SHOW TABLES");