Skip to content

Instantly share code, notes, and snippets.

View eduardo's full-sized avatar

Edu Fernández eduardo

View GitHub Profile
require 'json'
require 'open-uri'
def most_recent_timestamp
data = JSON.parse(open('http://bitcoincharts.com/t/markets_timestamps.json').read)
data['mtgoxUSD'].to_i
end
def new_transactions(n)
@paulmars
paulmars / template.rb
Last active September 25, 2015 17:57 — forked from martinisoft/tpl-cukeapp.rb
Rails, RSpec, Factory_Girl, SASS, Devise, Rails Admin
# rails new [appname] -JT -m https://gist.githubusercontent.com/paulmars/960988/raw/386eb14e20153ef4d55a6735d22748c6503b64f8/template.rb
# rails new APPNAME -JT -m /Users/paul/Development/template/template.rb
# sass
gem 'sass-rails'
gem 'bootstrap-sass', '3.2.0.2'
# image update
gem 'carrierwave', '0.10.0'
gem 'fog', '1.19.0'
@jpantuso
jpantuso / osx_lion_rail_setup.md
Created July 27, 2011 19:51
Setup OS X 10.7 w/ homebrew, oh-my-zsh, rvm, rails, and MySQL
@danro
danro / keymandorc.rb
Created December 2, 2011 20:34
Keymando config
# Start Keymando at login
# -----------------------------------------------------------
start_at_login
# System-wide mappings
# -----------------------------------------------------------
# Ctrl-Backspace maps to Alt-Delete for laptop use
map "<Ctrl-delete>", "<Alt-backspace>" # (delete & bs are reversed in keymando)
map "<Ctrl-Cmd-delete>", "<Cmd-backspace>" # delete to EOL
@qrush
qrush / Inconsolata-dz-Powerline.otf
Created January 11, 2012 16:50
vim-powerline patched fonts
@flaneur2020
flaneur2020 / Gemfile
Created February 8, 2012 02:27
less painful web prototyping with sinatra, slim, sass, and coffeescript
source 'http://ruby.taobao.org'
gem 'sinatra'
gem 'sinatra-reloader'
gem 'slim'
gem 'sass'
gem 'coffee-script'
gem 'compass'
gem 'pry'

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

@joelcogen
joelcogen / Gemfile
Created March 7, 2012 12:32
Add Ogone payment to your Rails app with active_merchant
gem 'activemerchant'
@MicahElliott
MicahElliott / rbenv-howto.md
Created April 17, 2012 18:11
Setting up and installing rbenv, ruby-build, rubies, rbenv-gemset, and bundler

Setting up and installing rbenv, ruby-build, rubies, rbenv-gemset, and bundler

This guide enables you to install (ruby-build) and use (rbenv) multiple versions of ruby, isolate project gems (gemsets and/or bundler), and automatically use appropriate combinations of rubies and gems.

TL;DR Demo

# Ensure system is in ship-shape.

aptitude install git zsh libssl-dev zlib1g-dev libreadline-dev libyaml-dev

@JoshuaEstes
JoshuaEstes / 000-Cheat-Sheets.md
Last active April 23, 2025 10:31
Developer Cheat Sheets for bash, git, gpg, irssi, mutt, tmux, and vim. See my dotfiles repository for extra info.