This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.
To capture the video (filesize: 19MB), using the free "QuickTime Player" application:
; Map ctrl-backspace to delete (similar to MacOS) | |
^BS:: | |
Send {DEL} | |
return | |
; Map Caps lock to escape | |
Capslock::Esc | |
; Toggles default audio device in Control Panel (switches between headset and speakers). | |
!s:: |
var tags = $$('some selector'); | |
for( var i = 0, len = tags.length; i < len; i++){ | |
tags[i].parentNode.removeChild(tags[i]); | |
} |
I hereby claim:
To claim this, I am signing this object:
# Swap JDK versions | |
function setjdk() { | |
if [ $# -ne 0 ]; then | |
removeFromPath '/System/Library/Frameworks/JavaVM.framework/Home/bin' | |
if [ -n "${JAVA_HOME+x}" ]; then | |
removeFromPath $JAVA_HOME | |
fi | |
export JAVA_HOME=`/usr/libexec/java_home -v $@` | |
export PATH=$JAVA_HOME/bin:$PATH | |
fi |
'use strict'; | |
var gulp = require('gulp'); | |
var browserify = require('browserify'); | |
var watchify = require('watchify'); | |
var source = require('vinyl-source-stream'); | |
var notify = require('gulp-notify'); | |
// Helper functions | |
function handleErrors(){ | |
var args = Array.prototype.slice.call(arguments); |
var keys = []; | |
db.domains.find().forEach(function(doc) { | |
for( key in doc ){ | |
if( keys.indexOf(key) === -1 ){ | |
keys.push(key); | |
} | |
} | |
}); | |
print(keys); |
function count_redir { | |
curl -L -I -D - -o /dev/null $1 | awk 'BEGIN { redir = 0; status = 200; } tolower($1) ~ /http/ { redir=redir+1; status=$2 } tolower($1) ~ /location:/ { print redir, status, $2 } END { print "Completed, with ", redir-1, "redirects. Final result: ", status }' | |
} |
// npm install request | |
var request = require('request'), | |
redirectCount = 0; | |
function printRedirects(site) { | |
request(site, {followRedirect: false}, function (error, response, body) { | |
if (error){ | |
console.log(error); | |
return; | |
} |