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:
require 'prawn/layout' | |
require 'prawn/format' | |
bill_address = @order.bill_address | |
ship_address = @order.ship_address | |
image "#{RAILS_ROOT}/public/images/site/client_logo.jpg", :at => [0,720], :scale => 0.65 | |
image "#{RAILS_ROOT}/public/images/site/invoice_label.png", :at => [300,720], :scale => 0.65 | |
move_down 75 |
# | |
# Wide-open CORS config for nginx | |
# | |
location / { | |
if ($request_method = 'OPTIONS') { | |
add_header 'Access-Control-Allow-Origin' '*'; | |
# |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>name</key> | |
<string>Monokai FannonEd</string> | |
<key>settings</key> | |
<array> | |
<dict> | |
<?php | |
class User | |
{ | |
public $admin; | |
public $roles = array(); | |
function roles() | |
{ | |
if (isset($this)) |
This playbook has been removed as it is now very outdated. |
username: vagrant | |
password: vagrant | |
sudo apt-get update | |
sudo apt-get install build-essential zlib1g-dev git-core sqlite3 libsqlite3-dev | |
sudo aptitude install mysql-server mysql-client | |
sudo nano /etc/mysql/my.cnf |
http://www.dizzy.co.uk/cheatsheets | |
This work is licensed under the Creative Commons | |
Attribution-NonCommercial-NoDerivs 2.0 License. To | |
view a copy of this license, visit | |
http://creativecommons.org/licenses/by-nc-nd/2.0/uk | |
########## Shell Commands ########## | |
Installation: | |
$ gem install capistrano |
# Vagrant commands | |
vagrant reload #! | |
vagrant status | |
vagrant suspend | |
vagrant resume | |
vagrant halt | |
vagrant up | |
vagrant package | |
vagrant destroy | |
vagrant box add <nombre> <url> |
#!/bin/bash | |
# works with a file called VERSION in the current directory, | |
# the contents of which should be a semantic version number | |
# such as "1.2.3" | |
# this script will display the current version, automatically | |
# suggest a "minor" version update, and ask for input to use | |
# the suggestion, or a newly entered value. |