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:
| #!/usr/bin/env sh | |
| # | |
| # Works best with blinking text: the last heart will blink when you have less | |
| # than 25% of your battery life remaining. | |
| # | |
| # Add the following to your `~/.tmux.conf`; | |
| # | |
| # set -g status-right "#[fg=red]#(path/to/zelda-battery-tmux.sh) " | |
| battery="$(pmset -g ps | awk 'NR==2' | perl -pe 's/.*?(\d+)%.*/\1/')" |
| (defun package-update-all () | |
| "Update all packages" | |
| (interactive) | |
| (dolist (elt package-alist) | |
| (let* ((name (car elt)) | |
| (file-name (symbol-name name)) | |
| (available-pkg (assq name package-archive-contents)) | |
| (available-version (and available-pkg | |
| (package-desc-vers (cdr available-pkg)))) | |
| (current-version (package-desc-vers (cdr elt))) |