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:
| function dex-method-count() { | |
| cat $1 | head -c 92 | tail -c 4 | hexdump -e '1/4 "%d\n"' | |
| } | |
| function dex-method-count-by-package() { | |
| dir=$(mktemp -d -t dex) | |
| baksmali $1 -o $dir | |
| for pkg in `find $dir/* -type d`; do | |
| smali $pkg -o $pkg/classes.dex | |
| count=$(dex-method-count $pkg/classes.dex) | |
| name=$(echo ${pkg:(${#dir} + 1)} | tr '/' '.') |
| <# | |
| .SYNOPSIS | |
| Gets a PowerShell Credential (PSCredential) from the Windows Credential Manager | |
| .DESCRIPTION | |
| Adapted from: http://stackoverflow.com/questions/7162604/get-cached-credentials-in-powershell-from-windows-7-credential-manager | |
| .PARAMETER TargetName | |
| The name of the target login informations in the Windows Credential Manager |
| param( | |
| [string] $rootFolder = ".", | |
| [string] $filter = "*.*" | |
| ) | |
| $path = resolve-path $rootFolder -errorAction Stop | |
| write-host "Monitoring $path for changes" | |
| $fsw = new-object System.IO.FileSystemWatcher $path, $filter | |
| $fsw.IncludeSubdirectories = $true |
| #!/usr/bin/env bash | |
| screenshot="screnshot.png" | |
| screencapture='/usr/sbin/screencapture -xC' | |
| if [ `whoami` == 'root' ]; then | |
| loginpid=`ps -ax | grep [l]oginwindow.app | awk '{print $1}'` | |
| launchctl bsexec $loginpid $screencapture $screenshot | |
| else | |
| $screencapture $screenshot |