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:
| # Knife Configuration File. | |
| # | |
| # This is a Ruby DSL to set configuration parameters for Knife's | |
| # general options. The default location for this file is | |
| # ~/.chef/knife.rb. If multiple Chef repositories are used, | |
| # per-repository configuration files can be created. A per repository | |
| # configuration file must be .chef/knife.rb in the base directory of | |
| # the Chef repository. For example, | |
| # | |
| # ~/Development/chef-repo/.chef/knife.rb |
| #!/bin/sh | |
| # This script takes a photo if the computer has not been idle for longer than a period of time | |
| # it uses isightcapture from https://www.macupdate.com/app/mac/18598/isightcapture | |
| [ -z "$USER" ] && echo "missing variable \$USER " && exit 1 | |
| if [ ! -d /Users/$USER/daily_photo ]; then | |
| mkdir -p $/Users/$USER/daily_photo | |
| fi | |
| IDLE=$((`/usr/sbin/ioreg -c IOHIDSystem | sed -e '/HIDIdleTime/!{ d' -e 't' -e '}' -e 's/.* = //g' -e 'q'` / 1000000000 )) | |
| export SUDO_ASKPASS=/Users/$USER/bin/get_pass.sh |
| #!/bin/sh | |
| # computer activity data collection for http://jehiah.cz/one-two/ | |
| # by Jehiah Czebotar | |
| FILE="activity_log/`date +%Y%m%d`.log" | |
| function log_activity() | |
| { | |
| local UTC=`date "+%s,%Z"` | |
| local IDLE=$((`/usr/sbin/ioreg -c IOHIDSystem | sed -e '/HIDIdleTime/!{ d' -e 't' -e '}' -e 's/.* = //g' -e 'q'` / 1000000000 )) |
| #!/bin/zsh | |
| # computer activity data collection for http://jehiah.cz/one-two/ | |
| # Originally by Jehiah Czebotar. This verison by Luca Spiller. | |
| FILE="$HOME/Dropbox/activity_log/`hostname`-`date +%Y%m%d`.log" | |
| function log_activity() | |
| { | |
| local TIME=`date "+%Y-%m-%dT%H:%M:%S%z"` | |
| local IDLE=$((`/usr/sbin/ioreg -c IOHIDSystem | sed -e '/HIDIdleTime/!{ d' -e 't' -e '}' -e 's/.* = //g' -e 'q'` / 1000000000 )) |
Do your part to resist Government surveillance and take back your privacy:
SSH debug returns "cipher_init: EVP_CipherInit: set key failed for aes128-cbc (when running in -VV) -- it will also fail to negotiate other cipher suites like 3des-cbc
installp -u security.pkcs11. The one suggested by IBM does not work: http://www-01.ibm.com/support/docview.wss?uid=isg3T1019142security.pkcs11 is safe to remove as it has to do with hardware encryption devices (a rare use case). Customers can contact IBM if they have a hardware crypto device and need this package| # Recurse into all subdirectories of the working directory. | |
| # Converts all flac into mp3 using ffmpeg | |
| find . -type f -name "*.flac" -print0 | while read -d $'\0' a; do < /dev/null ffmpeg -i "$a" -qscale:a 0 "${a[@]/%flac/mp3}" | |
| done |