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:
| server { | |
| index index.php; | |
| set $basepath "/var/www"; | |
| set $domain $host; | |
| # check one name domain for simple application | |
| if ($domain ~ "^(.[^.]*)\.dev$") { | |
| set $domain $1; | |
| set $rootpath "${domain}"; |
| Array | |
| ( | |
| [hook_menu] => 6744 | |
| [hook_uninstall] => 4742 | |
| [hook_perm(ission)] => 4012 | |
| [hook_install] => 3751 | |
| [hook_theme] => 3525 | |
| [hook_schema] => 3003 | |
| [hook_help] => 2465 | |
| [hook_form_alter] => 2273 |
JavaScript Code
var str = "hi";Memory allocation:
| Address | Value | Description |
|---|---|---|
...... |
... |
First of all you need to be able to run MAMP in port 80. This is a "heat check" if you don't have any process jamming http ports. You can check it like this:
sudo lsof | grep LISTEN
If you do happen to have any process with something like this *:http (LISTEN), you are in trouble. Before with adventure check if it isn't MAMP itself (yeah, you should close that beforehand)
ps <pid of that process>
If you don't see MAMP, you are in good hands, I have just the thing for you:
| #!/usr/bin/env zsh | |
| git show-branch -a \ | |
| | grep '\*' \ | |
| | grep -v `git rev-parse --abbrev-ref HEAD` \ | |
| | head -n1 \ | |
| | sed 's/.*\[\(.*\)\].*/\1/' \ | |
| | sed 's/[\^~].*//' | |
| # How it works: |
Press minus + shift + s and return to chop/fold long lines!
| # Complete words from tmux pane(s) {{{1 | |
| # Source: http://blog.plenz.com/2012-01/zsh-complete-words-from-tmux-pane.html | |
| # Gist: https://gist.github.com/blueyed/6856354 | |
| _tmux_pane_words() { | |
| local expl | |
| local -a w | |
| if [[ -z "$TMUX_PANE" ]]; then | |
| _message "not running inside tmux!" | |
| return 1 | |
| fi |
| class CsvFileIterator implements \Iterator{ | |
| protected $in; | |
| protected $fp; | |
| protected $index; | |
| protected $current; | |
| public function __construct($in, $options = array()) { | |
| $this->in = $in; | |
| $this->options = array_merge(array( | |
| 'column_separator' => ',' | |
| ), $options); |