Skip to content

Instantly share code, notes, and snippets.

View paulrichards19's full-sized avatar

Paul Richards paulrichards19

View GitHub Profile
@paulrichards19
paulrichards19 / subdomain.js
Created January 9, 2012 11:02 — forked from benvinegar/subdomain.js
Subdomain tunneling with jQuery and document.domain
/**
* Replace $.ajax on your subdomain with a copy taken
* from your base domain. All jQuery AJAX actions go
* through $.ajax (i.e. $.get, $.post), so it's all good.
*/
(function() {
var iframe,
onload,
queue = [];
#!/bin/bash
#
# Watch current directory (recursively) for file changes, and execute
# a command when a file or directory is created, modified or deleted.
#
# Written by: Senko Rasic <senko.rasic@dobarkod.hr>
#
# Requires Linux, bash and inotifywait (from inotify-tools package).
#
# To avoid executing the command multiple times when a sequence of