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:
| /* | |
| * Example how to preload HTML5 video on the iPad (iOS 3.2+) | |
| * @author Miller Medeiros | |
| * Released under WTFPL | |
| */ | |
| var vid = document.createElement('video'); | |
| vid.src = 'lol_catz.mp4'; | |
| document.getElementById('video-holder').appendChild(vid); |
| #!/bin/bash | |
| FILE=$1 | |
| BASE=${FILE%.*} | |
| EXT=${FILE##*.} | |
| cp "$FILE" "${BASE}@2x.${EXT}" | |
| WIDTH_RAW=`sips -g pixelWidth "$FILE" | sed -n 2p` | |
| WIDTH=${WIDTH_RAW##*:} | |
| HEIGHT_RAW=`sips -g pixelHeight "$FILE" | sed -n 2p` | |
| HEIGHT=${HEIGHT_RAW##*:} |
| AuthName "Realm" | |
| AuthUserFile /path/to/.htpasswd | |
| AuthType Basic | |
| Satisfy Any | |
| <Limit GET POST> | |
| Order Deny,Allow | |
| Deny from all | |
| #https://developers.facebook.com/docs/ApplicationSecurity/#facebook_scraper | |
| Allow from 31.13.24.0/21 |
| #!/usr/bin/env sh | |
| # Download lists, unpack and filter, write to stdout | |
| curl -s https://www.iblocklist.com/lists.php \ | |
| | sed -n "s/.*value='\(http:.*=bt_.*\)'.*/\1/p" \ | |
| | xargs wget -O - \ | |
| | gunzip \ | |
| | egrep -v '^#' |
| #!/bin/bash | |
| # Downloads and install a .dmg from a URL | |
| # | |
| # Usage | |
| # $ dmginstall [url] | |
| # | |
| # For example, for installing alfred.app | |
| # $ dmginstall http://cachefly.alfredapp.com/alfred_1.3.1_261.dmg | |
| # |
| <!-- | |
| 1. Download the Android Jelly Bean fonts and the Symbola font: | |
| https://www.dropbox.com/s/tvtzcnzkvbe0nrt/jelly-bean-fonts.zip | |
| http://users.teilar.gr/~g1951d/Symbola707.zip | |
| 2. unzip the files and put AndroidEmoji.ttf and Symbola.ttf (and any of the other fonts that strike your fancy) | |
| in your ~/.fonts/ directory | |
| 3. run `fc-cache -f`. You can check to make sure the new fonts | |
| were installed with `fc-list`. You'll probably want to grep the copious output for Symbola or Emoji |
| <?php | |
| class CWS_Jetpack_Modules { | |
| function __construct() { | |
| add_filter( 'option_jetpack_active_modules', array( $this, 'active_modules' ) ); | |
| } | |
| function active_modules( $modules ) { | |
| $allowed_modules = array( | |
| 'enhanced-distribution', |
| nohup.out | |
| *.png |