Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000This gist shows how to create a GIF screencast using only free OS X tools: QuickTime and ffmpeg.
Forked from https://gist.github.com/dergachev/4627207. Updated to use a palette to improve quality and skip gifsicle.
To capture the video (filesize: 19MB), using the free "QuickTime Player" application:
There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies and the other way is to make it so complicated that there are no obvious deficiencies.
— C.A.R. Hoare, The 1980 ACM Turing Award Lecture
For Chrome Canary:
alias hydra='/Applications/Google\ Chrome\ Canary.app/Contents/MacOS/Google\ Chrome\ Canary --no-sandbox --js-flags="--user-data-dir=/tmp/profile --trace-hydrogen --trace-phase=Z --trace-deopt --code-comments --hydrogen-track-positions --redirect-code-traces"'For regular ol' Chrome:
| /*! | |
| * Copyright 2015 Google Inc. All rights reserved. | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
| #!/usr/bin/env bash | |
| # vim: set filetype=ruby: | |
| # b - browse Chrome bookmarks with fzf | |
| [ $(uname) = Darwin ] || exit 1 | |
| which fzf > /dev/null 2>&1 || brew reinstall --HEAD fzf || exit 1 | |
| /usr/bin/ruby -x "$0" | | |
| fzf-tmux -u 30% --ansi --multi --no-hscroll --tiebreak=begin | | |
| awk 'BEGIN { FS = "\t" } { print $2 }' | |
| update_current_git_vars |
| # Credit http://stackoverflow.com/a/2514279 | |
| for branch in `git branch -r | grep -v HEAD`;do echo -e `git show --format="%ci %cr" $branch | head -n 1` \\t$branch; done | sort -r |
| git checkout \ | |
| $(git show -s --pretty='%T' \ | |
| $(git show-ref -d \ | |
| $(git describe --abbrev=0) |\ # grab the most recent tag | |
| tail -n1 |\ | |
| awk '{print $1}'\ # dereference the commit hash it refers to | |
| )\ # ... show the tree-hash it points at | |
| ) -- test # check that version's "test/" directory out into cwd | |
| make test # if this fails, you should bump major, | |
| # otherwise bump minor or patch. |