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:
| git clone git://github.com/sstephenson/rbenv.git /usr/local/rbenv | |
| echo '# rbenv setup' > /etc/profile.d/rbenv.sh | |
| echo 'export RBENV_ROOT=/usr/local/rbenv' >> /etc/profile.d/rbenv.sh | |
| echo 'export PATH="$RBENV_ROOT/bin:$PATH"' >> /etc/profile.d/rbenv.sh | |
| echo 'eval "$(rbenv init -)"' >> /etc/profile.d/rbenv.sh | |
| chmod +x /etc/profile.d/rbenv.sh | |
| source /etc/profile.d/rbenv.sh | |
| git clone https://github.com/sstephenson/ruby-build.git /usr/local/rbenv/plugins/ruby-build | |
| rbenv install 1.9.3-p392 |
| // String utils | |
| // | |
| // resources: | |
| // -- mout, https://github.com/mout/mout/tree/master/src/string | |
| /** | |
| * "Safer" String.toLowerCase() | |
| */ | |
| function lowerCase(str) { | |
| return str.toLowerCase(); |
| # install dependencies | |
| sudo apt-get install libcurl4-openssl-dev libncurses5-dev pkg-config automake yasm | |
| # clone cpuminer | |
| git clone https://github.com/pooler/cpuminer.git | |
| # compile | |
| cd cpuminer | |
| ./autogen.sh | |
| ./configure CFLAGS="-O3" |
| if [[ $BUILD_STATUS == "success" ]] | |
| then | |
| export STATUS="success" | |
| else | |
| export STATUS="failure" | |
| fi | |
| curl "https://api.github.com/repos/justincampbell/my_repo/statuses/$GIT_COMMIT?access_token=abc123" \ | |
| -H "Content-Type: application/json" \ | |
| -X POST \ |
| require 'active_record' | |
| class Color < ActiveRecord::Base | |
| end |
| source 'https://rubygems.org' |
An ongoing project to catalogue all of these sneaky, hidden, bleeding edge selectors as I prepare my JSConf EU 2012 talk.
Everything is broken up by tag, but within each the selectors aren't particularly ordered.
I have not tested/verified all of these. Have I missed some or got it wrong? Let me know. - A
A friendly reminder that you may need to set this property on your target/selected element to get the styling results you want:
-webkit-appearance:none;
| -- show running queries (pre 9.2) | |
| SELECT procpid, age(clock_timestamp(), query_start), usename, current_query | |
| FROM pg_stat_activity | |
| WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%' | |
| ORDER BY query_start desc; | |
| -- show running queries (9.2) | |
| SELECT pid, age(clock_timestamp(), query_start), usename, query | |
| FROM pg_stat_activity | |
| WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%' |
| #!/bin/sh | |
| git filter-branch --env-filter ' | |
| an="$GIT_AUTHOR_NAME" | |
| am="$GIT_AUTHOR_EMAIL" | |
| cn="$GIT_COMMITTER_NAME" | |
| cm="$GIT_COMMITTER_EMAIL" | |
| if [ "$GIT_COMMITTER_EMAIL" = "[email protected]" ] |