Skip to content

Instantly share code, notes, and snippets.

Mark markstreich

View GitHub Profile
View gist:3be128c2a2a823326bca
source 'https://github.com/CocoaPods/Specs.git'
link_with ['socketiotest', 'socketiotestTests']
pod 'SIOSocket', '~> 0.2.0'
@markstreich
markstreich / gist:4502902
Created Jan 10, 2013
AHK Clipboard Quote Escape
View gist:4502902
F12::
X:=""""
Y:=""""""
Z=%Clipboard%
StringReplace,Z,Z,%X%,%Y%,All
StringReplace,Z,Z,`n,,All
StringReplace,Z,Z,`r,,All
Clipboard=%Z%
return
@markstreich
markstreich / gist:3667944
Created Sep 7, 2012
PhantomJS: Ajax response capture through console.log
View gist:3667944
var page = require('webpage').create();
page.open('http://www.website.com/', function (status) {
if (status === 'success') {
captureAjaxResponsesToConsole();
}
});
function captureAjaxResponsesToConsole() {
// logs ajax response contents to console so sublime's onConsoleMessage can use the contents
@markstreich
markstreich / innobackupex-runner.sh
Created Nov 23, 2011 — forked from dalecaru/innobackupex-restore.sh
Script to run innobackupex script (for all databases on server), check for success, and apply logs to backups.
View innobackupex-runner.sh
#!/bin/sh
#
# Script to run innobackupex script (for all databases on server), check for success, and apply logs to backups.
#
# (C)2010 Owen Carter @ Mirabeau BV
# This script is provided as-is; no liability can be accepted for use.
# You are free to modify and reproduce so long as this attribution is preserved.
#
INNOBACKUPEX=innobackupex-1.5.1
You can’t perform that action at this time.