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:
| <?php | |
| /** | |
| * A controller plugin for protecting forms from CSRF | |
| * | |
| * Works by looking at the response and adding a hidden element to every | |
| * form, which contains an automatically generated key that is checked | |
| * on the next request against a key stored in the session | |
| * | |
| * @author Jani Hartikainen <firstname at codeutopia net> | |
| */ |
| module Vagrant | |
| module Provisioners | |
| class ChefClient | |
| def cleanup | |
| env[:ui].info "Attempting to remove client #{env[:vm].config.vm.host_name}" | |
| `knife client show #{env[:vm].config.vm.host_name}` | |
| if $?.to_i == 0 | |
| env[:ui].info "Removing client #{env[:vm].config.vm.host_name}" | |
| `knife client delete #{env[:vm].config.vm.host_name} -y` | |
| end |
| 2013-09-28 15:54:13.369 iOSFontListTest[3753:60b] Font Family Names ( | |
| "Academy Engraved LET", | |
| "Al Nile", | |
| "American Typewriter", | |
| "Apple Color Emoji", | |
| "Apple SD Gothic Neo", | |
| Arial, | |
| "Arial Hebrew", | |
| "Arial Rounded MT Bold", | |
| Avenir, |
I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!
\
| # The blog post that started it all: https://neocities.org/blog/the-fcc-is-now-rate-limited | |
| # | |
| # Current known FCC address ranges: | |
| # https://news.ycombinator.com/item?id=7716915 | |
| # | |
| # Confirm/locate FCC IP ranges with this: http://whois.arin.net/rest/net/NET-165-135-0-0-1/pft | |
| # | |
| # In your nginx.conf: | |
| location / { |
This guide will get RethinkDB setup and running with a default configuration on OSX. There is also an option for setting RethinkDB to start at boot time on OSX, and a note on upgrading to a more recent RethinkDB version.
Install Homebrew if you don't already have it:
Magic words:
psql -U postgresSome interesting flags (to see all, use -h or --help depending on your psql version):
-E: will describe the underlaying queries of the \ commands (cool for learning!)-l: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)| --- | |
| - name: Group by Distribution | |
| hosts: all | |
| tasks: | |
| - group_by: key={{ansible_distribution}} | |
| - name: Set Time Zone | |
| hosts: Ubuntu | |
| gather_facts: False | |
| vars: |
| document.addEventListener( 'DOMContentLoaded', function() { | |
| var parentNode = document.querySelector('#paypalButon'); | |
| PAYPAL.apps.ButtonFactory.create( 'YOUR PAYPAL ID', { | |
| button: { value: 'buynow' }, | |
| name: { value: 'Some Product' }, | |
| quantity: { value: '1' }, | |
| amount: { value: '5.99' }, | |
| currency: { value: 'AUD' }, |