Skip to content

Instantly share code, notes, and snippets.


Tom Phethean tsphethean

View GitHub Profile
tsphethean /
Created April 17, 2019 20:05

Keybase proof

I hereby claim:

  • I am tsphethean on github.
  • I am tsphethean ( on keybase.
  • I have a public key ASAEhPKaL0re498a862EdL0uf94-U8YqAFJgGqTnmJnNDwo

To claim this, I am signing this object:

tsphethean / Drupal 8 rebuild
Created June 25, 2013 11:01
Rebuild a drupal 8 site after fresh pull from git.
View Drupal 8 rebuild
# Drop old DB
mysql -uroot -e "DROP DATABASE drupal8"
# Create new DB
mysqladmin -uroot create drupal8
# Add permissions
mysql -uroot -e "GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER ON drupal8.* TO 'drupal8'@'localhost' IDENTIFIED BY 'password'"
# Tidy up site files
tsphethean / hhvm.hdf
Created December 26, 2013 21:20
HHVM Drupal configuration
View hhvm.hdf
Server {
Port = 8000
SourceRoot = /vagrant/public/drupal.vbox.local/www/
Eval {
Jit = true
Log {
Level = Error
tsphethean / Setup VM
Last active January 1, 2016 11:29
Drupal and HHVM
View Setup VM
git clone --recursive --branch 7.x-1.x
cd vagrant
vagrant box add base
vagrant up
sudo nano /etc/hosts
# add
# drupal.vbox.local dev-site.vbox.local
vagrant ssh
# Update our packages
sudo apt-get update
tsphethean / M101js Video IDs
Created August 22, 2013 18:59
Create a list of video IDs for downloading, based on wiki pages on the M101JS 10gen course. Install as a Chrome extension or Greasemonkey script in Firefox, load the Wiki page with the video links on, and paste the list of IDs into a text file. Then use youtube-dl ( to download the files using: youtube-dl -f 18 -…
View M101js Video IDs
// ==UserScript==
// @name M101JS Downloader
// @namespace M101JS
// @include*
// @version 1
// @run-at document-end
// ==/UserScript==
(function() {
tsphethean /
Last active August 29, 2015 13:57
Proxy switchy script
if [[ -z "$1" ]]; then
echo "Usage: en dis"
exit 2;
if [[ "$1" == "en" ]]; then
export http_proxy=http://$2