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:
#!/usr/bin/env ruby | |
# Put this file in the root of your Rails project, | |
# then run it to output the SQL needed to change all | |
# your tables and columns to the same character set | |
# and collation. | |
# | |
# > ruby character_set_and_collation.rb | |
DATABASE = '' |
#!/usr/bin/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |
$('form').validate({ | |
errorPlacement: function(error, element) { | |
if (element[0].tagName == "SELECT") { | |
element.parent().addClass('error'); | |
} | |
return true; | |
}, | |
unhighlight: function(element, errorClass, validClass) { |
/** | |
* ValidateSpanishID. Returns the type of document and checks its validity. | |
* | |
* Usage: | |
* ValidateSpanishID( str ); | |
* | |
* > ValidateSpanishID( '12345678Z' ); | |
* // { type: 'dni', valid: true } | |
* | |
* > ValidateSpanishID( 'B83375575' ); |
#!/bin/bash | |
# Change the iterm2 profile programatically | |
function iterm_profile { | |
if [[ -z $1 ]]; then | |
profile="Default" | |
else | |
profile=$1 | |
fi |
require 'net/http' | |
require 'json' | |
require 'uri' | |
@token = '' | |
def list_files | |
ts_to = (Time.now - 30 * 24 * 60 * 60).to_i # 30 days ago | |
params = { | |
token: @token, |
;(function($, undefined) { | |
'use strict'; | |
if (typeof window.MY_MODULE_NAME !== 'undefined') { | |
return; | |
} | |
// | |
// Module general vars | |
// |
/** | |
* URL like: | |
* https://unsplash.com/?page=44 | |
*/ | |
var | |
base_url = 'https://unsplash.com', | |
result = [], | |
last_page = 1; |