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 |
| // | |
| // Regular Expression for URL validation | |
| // | |
| // Author: Diego Perini | |
| // Created: 2010/12/05 | |
| // Updated: 2018/09/12 | |
| // License: MIT | |
| // | |
| // Copyright (c) 2010-2018 Diego Perini (http://www.iport.it) | |
| // |
| #!/usr/bin/env sh | |
| ## | |
| # This is script with usefull tips taken from: | |
| # https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # | |
| # install it: | |
| # curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
| # |
| # Encryption functions. Requires the GNUpg "gpg" commandline tool. On OS X, "brew install gnupg" | |
| # Explanation of options here: | |
| # --symmetric - Don't public-key encrypt, just symmetrically encrypt in-place with a passphrase. | |
| # -z 9 - Compression level | |
| # --require-secmem - Require use of secured memory for operations. Bails otherwise. | |
| # cipher-algo, s2k-cipher-algo - The algorithm used for the secret key | |
| # digest-algo - The algorithm used to mangle the secret key | |
| # s2k-mode 3 - Enables multiple rounds of mangling to thwart brute-force attacks | |
| # s2k-count 65000000 - Mangles the passphrase this number of times. Takes over a second on modern hardware. | |
| # compress-algo BZIP2- Uses a high quality compression algorithm before encryption. BZIP2 is good but not compatible with PGP proper, FYI. |
| # This script adds a "Webclip" shortcut to your homescreen. | |
| # The shortcut can be used to open a web page in full-screen mode, | |
| # or to launch a custom URL (e.g. a third-party app). | |
| # You'll be asked for a title, a URL, and an icon (from your camera roll) | |
| import plistlib | |
| import BaseHTTPServer | |
| import webbrowser | |
| import uuid | |
| from io import BytesIO |
| #!/bin/sh | |
| ### | |
| # SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer) | |
| # For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos | |
| ### | |
| # Alot of these configs have been taken from the various places | |
| # on the web, most from here | |
| # https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx |
| function subl() { | |
| if [[ ! -p /dev/stdin ]]; then | |
| command subl > /dev/null 2>&1 | |
| fi | |
| command subl "$@" | |
| } |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>name</key> | |
| <string>Refresh</string> | |
| <key>settings</key> | |
| <array> | |
| <dict> | |
| <key>settings</key> |
| -- AppleScript -- | |
| -- This example is meant as a simple starting point to show how to get the information in the simplest available way. | |
| -- Keep in mind that when asking for a `return` after another, only the first one will be output. | |
| -- This method is as good as its JXA counterpart. | |
| -- Webkit variants include "Safari", "Webkit", "Orion". | |
| -- Specific editions are valid, including "Safari Technology Preview". | |
| -- "Safari" Example: | |
| tell application "Safari" to return name of front document |