By resources
sessions
list-sessions        ls         -- List sessions managed by server
new-session          new        -- Create a new session
| skinparam DefaultFontName "Neucha" | |
| skinparam BackgroundColor transparent | |
| skinparam Shadowing false | |
| skinparam Handwritten true | |
| skinparam Note { | |
| BorderColor #303030 | |
| BackgroundColor #CEEEFE | |
| FontSize 12 | |
| } | 
brew install gnupg, pinentry-mac  (this includes gpg-agent and pinentry)
Generate a key: $ gpg --gen-key
Take the defaults. Whatevs
Tell gpg-agent to use pinentry-mac:
$ vim ~/.gnupg/gpg-agent.conf 
| #!/bin/sh | |
| # reload-browser - A cross-platform wrapper for reloading the current | |
| # browser tab | |
| # Eric Radman, 2014 | |
| # http://entrproject.org/ | |
| # The original script is at http://entrproject.org/scripts/reload-browser | |
| usage() { | |
| case `uname` in | 
| Backup: | |
| docker exec -t -u postgres your-db-container pg_dumpall -c > dump_`date +%d-%m-%Y"_"%H_%M_%S`.sql | |
| Restore: | |
| cat your_dump.sql | docker exec -i your-db-container psql -Upostgres | 
| /*! by @WebReflection & @daw985 */ | |
| // full module, compatible with node 0.8+ & browser | |
| // https://github.com/WebReflection/tressa | |
| // for sync tests | |
| function test(condition, message) { | |
| try { | |
| console.assert.apply(console, arguments); | |
| if (typeof message === 'string' && condition) { | 
Short link to this page: caseywatts.com/quicktime
Other gists & tricks: http://caseywatts.com/gists-and-tricks
Unrelated update: my book is out! Debugging Your Brain is an applied psychology / self-help book
Scenario: You want to talk with someone over google hangouts (like for a user study), and you want to record BOTH:
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>ANSIBlackColor</key> | |
| <data> | |
| YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS | |
| AAGGoKMHCA9VJG51bGzTCQoLDA0OVU5TUkdCXE5TQ29sb3JTcGFjZVYkY2xhc3NPECcw | |
| LjExNzY0NzA1ODggMC4xMjk0MTE3NjQ3IDAuMTUyOTQxMTc2NQAQAYAC0hAREhNaJGNs | |
| YXNzbmFtZVgkY2xhc3Nlc1dOU0NvbG9yohIUWE5TT2JqZWN0XxAPTlNLZXllZEFyY2hp | 
| package main | |
| import ( | |
| "context" | |
| "flag" | |
| "fmt" | |
| "log" | |
| "net/http" | |
| "os" | |
| "os/signal" |