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
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(),
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
ziadoz /
Last active Oct 9, 2019
Awesome PHP — A curated list of amazingly awesome PHP libraries, resources and shiny things.
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.
You can’t perform that action at this time.