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:
| #!/bin/bash | |
| if [ "$1" = "-h" -o "$1" = "--help" -o -z "$1" ]; then cat <<EOF | |
| appify v3.0.1 for Mac OS X - http://mths.be/appify | |
| Creates the simplest possible Mac app from a shell script. | |
| Appify takes a shell script as its first argument: | |
| `basename "$0"` my-script.sh |
| # Adding CSS loading to dot.js Safari Extension | |
| ################################# | |
| # /usr/local/bin/djsd line 33-42 | |
| # just need to add "css" to the detect origin function | |
| def detect_origin(req) | |
| path = req.path | |
| origin = req.header['origin'] | |
| search = path.gsub('/','').gsub(/\.(js|css)$/,'') + '$' |
| from boto.route53.connection import Route53Connection | |
| import urllib2 | |
| from syslog import syslog | |
| # ======= CONFIG ======== | |
| AWS_ACCESS_KEY_ID = 'XXXXXXXXXXXXXXXXXX' | |
| AWS_SECRET_ACCESS_KEY = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXX' | |
| DDNSNAME = "foo.example.com." # Should end in period | |
| ZONEID = "XXXXXXXXX" | |
| # ===== END CONFIG ====== |
| var parser = document.createElement('a'); | |
| parser.href = "http://example.com:3000/pathname/?search=test#hash"; | |
| parser.protocol; // => "http:" | |
| parser.hostname; // => "example.com" | |
| parser.port; // => "3000" | |
| parser.pathname; // => "/pathname/" | |
| parser.search; // => "?search=test" | |
| parser.hash; // => "#hash" | |
| parser.host; // => "example.com:3000" |
| #!/bin/bash | |
| # +----------------------------------------------------------------------+ | |
| # | | | |
| # | Set up Mac OS X to store temporary files in RAM rather than on disk.| | |
| # | | | |
| # | By Philipp Klaus <http://blog.philippklaus.de> | | |
| # | | | |
| # | Originally by Ricardo Gameiro <http://blogs.nullvision.com/?p=357> | | |
| # | Changes by Daniel Jenkins | |
| // Replace the following values with your own: | |
| // auth_token | |
| // room_id | |
| // from | |
| javascript: | |
| var auth_token = "Your auth_token"; | |
| var room_id = "Room to send message"; | |
| var from = "Sender's name"; | |
| var hipchat = 'https://api.hipchat.com/v1/rooms/message?auth_token=' + auth_token + |
| import os | |
| import subprocess | |
| import boto.ec2 | |
| import itertools | |
| AWS_KEY = os.getenv('AWS_ACCESS_KEY') | |
| AWS_SECRET = os.getenv('AWS_SECRET_KEY') | |
| # Tweak as necessary for your infrastructure | |
| regions = ['us-east-1', 'us-west-1', 'eu-west-1'] |
| <?php | |
| /** | |
| * A helper file for Laravel 5, to provide autocomplete information to your IDE | |
| * Generated for Laravel 5.5.13 on 2017-09-28. | |
| * | |
| * @author Barry vd. Heuvel <[email protected]> | |
| * @see https://github.com/barryvdh/laravel-ide-helper | |
| */ | |
| namespace { | |
| exit("This file should not be included, only analyzed by your IDE"); |
| ———————————————————————————————————————————————————————————————————————————————————————————————————— | |
| BBEdit / BBEdit-Lite / TextWrangler Regular Expression Guide Modified: 2018/08/10 01:19 | |
| ———————————————————————————————————————————————————————————————————————————————————————————————————— | |
| NOTES: | |
| The PCRE engine (Perl Compatible Regular Expressions) is what BBEdit and TextWrangler use. | |
| Items I'm unsure of are marked '# PCRE?'. The list while fairly comprehensive is not complete. |