Skip to content

Instantly share code, notes, and snippets.

Ian Cook thinkspill

Block or report user

Report or block thinkspill

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
airways / 1 dist.config.php
Created Nov 1, 2011
Simple, single ExpressionEngine configuration file to override almost all paths and server settings. As used by @airways and @litzinger.
View 1 dist.config.php
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
// Simple, single configuration file to override almost all paths and server settings. As used by @airways
// and @litzinger.
// Only check in the default as dist.config.php, set your version control system to ignore config.php so that
// local users and each instance (staging, production) can have their own settings.
// These config files are mainly meant to be used on a shared development server used by all developers,
// although it works almost as well for local development as well.
ziadoz /
Last active Nov 5, 2019
Awesome PHP — A curated list of amazingly awesome PHP libraries, resources and shiny things.
Created Jun 3, 2012 — forked from beddari/
Allow Vagrant sudo-access without password for NFS-setup (for OS X)
# Script for placing sudoers.d files with syntax-checking
# Making a temporary file to contain the sudoers-changes to be pre-checked
TMP=$(mktemp -t vagrant_sudoers)
cat /etc/sudoers > $TMP
cat >> $TMP <<EOF
# Allow passwordless startup of Vagrant when using NFS.
Cmnd_Alias VAGRANT_EXPORTS_ADD = /usr/bin/su root -c echo '*' >> /etc/exports
havvg / ajax-form.js
Created Aug 1, 2012
jQuery AJAX form submit with Twitter Bootstrap modal
View ajax-form.js
jQuery(function($) {
$('form[data-async]').live('submit', function(event) {
var $form = $(this);
var $target = $($form.attr('data-target'));
type: $form.attr('method'),
url: $form.attr('action'),
data: $form.serialize(),
TSiege / The Technical Interview Cheat
Last active Nov 14, 2019
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.
View The Technical Interview Cheat


I have moved this over to the Tech Interview Cheat Sheet Repo since a gist is too difficult to maintain as an open source endevaor and there is no way to version it. I have updated below, but I will not be able to keep this one up to date so please checkout the repo instead. The below is just for some preservation for those who stumble across here.


fightbulc /
Last active Mar 19, 2019
Packaging VMWare Fusion Vagrant Box

On Mac

Go to vmware vm files:
cd /path/to/vagrant-vm/.vagrant/machines/default/vmware_fusion/some-random-string

Defragment vm disk:
/Applications/VMware\ -d Virtual\ Disk.vmdk

Shrink vm disk:
/Applications/VMware\ -k Virtual\ Disk.vmdk

Stubbs / main.yml
Created Mar 28, 2015
Ansible Playbook to install PHP7
View main.yml
- name: Install Packages Needed To Compile PHP 7
apt: pkg={{ item }} state=latest
- git
- autoconf
- bison
- libxml2-dev
- libbz2-dev
- libmcrypt-dev
- libcurl4-openssl-dev
SamuelChristie /
Created Nov 2, 2015
Explanation of how to detect TLS 1.0 connections and, by way of custom headers, warn the user about the coming change to more modern TLS versions.
You can’t perform that action at this time.