Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
| #!/usr/bin/env ruby | |
| puts "[Cheese!]" | |
| # Get some info about current commit | |
| repository_name = `basename "$PWD"`.chop | |
| commit_hash, commit_date = `git log -1 --pretty="%H%n%ci"`.split(/\r?\n/) | |
| # Capture image and save it to ~/Pictures/gitshots/REPOSITORYNAME-TIMESTAMP-COMMITHASH.jpeg | |
| exec "streamer -c /dev/video0 -b 16 -o ~/Pictures/gitshots/#{repository_name}_#{commit_date.gsub!(' ', '_')}_#{commit_hash}.jpeg" | |
| exit 1 |
| <?php | |
| /** | |
| * Hide editor on specific pages. | |
| * | |
| */ | |
| add_action( 'admin_init', 'hide_editor' ); | |
| function hide_editor() { | |
| // Get the Post ID. |
Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)