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:
| -- In Safari, this copies the Title and URL of the current tab to the clipboard. | |
| -- Save the script in ~/Library/Scripts/Applications/Safari | |
| -- Using QuickSilver, I assign a trigger to this script using the hotkey ⌥-C (option c), with the scope of the trigger limited to Safari. | |
| -- Inspired by CopyURL + (http://copyurlplus.mozdev.org/) | |
| -- Christopher R. Murphy | |
| tell application "Safari" | |
| set theURL to URL of front document | |
| set theTitle to name of front document | |
| set the clipboard to theTitle & return & theURL as string |
| #!/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 |
pytest and pytest-fixtures for test setup, execution, and teardown.datetime for date/time, requests for HTTP requests, and logging) and external libraries, including BeautifulSoup4 for HTML parsing, to avoid reinventing the wheel. Favor well-maintained and widely-used libraries.| #!/bin/bash | |
| set -euo pipefail | |
| trap 'echo "at line $LINENO, exit code $? from $BASH_COMMAND" >&2; exit 1' ERR | |
| # This is a Claude Code hook to stop it saying "you are right". | |
| # | |
| # Installation: | |
| # 1. Save this script and chmod +x it to make it executable. | |
| # 2. Within Claude Code, /hooks / UserPromptSubmit > Add a new hook (this file) | |
| # |
It turns out that MacOS Tahoe can generate and use secure-enclave backed SSH keys! This replaces projects like https://github.com/maxgoedjen/secretive
There is a shared library /usr/lib/ssh-keychain.dylib that traditionally has been used to add smartcard support
to ssh by implementing PKCS11Provider interface. However since recently it also implements SecurityKeyProivder
which supports loading keys directly from the secure enclave! SecurityKeyProvider is what is normally used to talk to FIDO2 devices (e.g. libfido2 can be used to talk to your Yubikey). However you can now use it to talk to your Secure Enclave instead!