Skip to content

Instantly share code, notes, and snippets.

View eduardo's full-sized avatar

Edu Fernández eduardo

View GitHub Profile
@eduardo
eduardo / thin.sh
Created May 9, 2012 02:36 — forked from me-vlad/thin.sh
init script for multiple thin instances with rbenv shared install
#!/bin/sh
# thin This shell script takes care of starting and stopping
# thin daemon from rbenv shared install
#
# chkconfig: 2345 85 15
# description: thin is an Ruby web server
# config: /etc/sysconfig/thin
### BEGIN INIT INFO
@eduardo
eduardo / gasmask_focus_mode
Created May 8, 2012 09:07
Gasmask focus mode
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
fe80::1%lo0 localhost
# focus mode
# toggled with http://www.clockwise.ee/gasmask/
0.0.0.0 twitter.com
0.0.0.0 mail.google.com
@eduardo
eduardo / 0-readme.md
Created May 6, 2012 07:24
ruby-1.9.3-p125 cumulative performance patch.

Patched ruby 1.9.3-p125 for 30% faster rails boot

What is?

This script installs a patched version of ruby 1.9.3-p125 with patches to make ruby-debug work again (#47) and boot-time performance improvements (#66 and #68), and runtime performance improvements (#83 and #84). It also includes the new backported GC from ruby-trunk.

Huge thanks to funny-falcon for the performance patches.

@eduardo
eduardo / .tmux.conf
Created April 4, 2012 05:53 — forked from fholgado/.tmux.conf
Show iTunes current track/song in tmux
# Custom status bar
# # Powerline symbols: ⮂ ⮃ ⮀ ⮁ ⭤
set -g status-left-length 32
set -g status-right-length 150
set -g status-interval 5
set -g status-left '#[fg=colour16,bg=colour254,bold] #S #[fg=colour254,bg=colour234,nobold]⮀'
set -g status-right '#[fg=colour245]⮃ %R ⮃ %d %b #[fg=colour254,bg=colour234,nobold]#(~/Documents/AppleScripts/itunes-current-track-tmux.sh)⮂#[fg=colour16,bg=colour254,bold] #h '
# set -g status-right '#(~/Documents/AppleScripts/itunes-current-track-tmux.sh)'
set -g window-status-format "#[fg=white,bg=colour234] #I #W "
set -g window-status-current-format "#[fg=colour234,bg=colour39]⮀#[fg=colour16,g=colour39,noreverse,bold] #I ⮁ #W #[fg=colour39,bg=colour234,nobold]⮀"
@eduardo
eduardo / hack.sh
Created April 3, 2012 07:19 — forked from DAddYE/hack.sh
OSX For Hackers
#!/usr/bin/env bash
##
# This is a script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# Download and auto-run with:
# $ curl -sL https://raw.github.com/gist/2108403/hack.sh | bash
#
# or download and prompt before change defaults:
@eduardo
eduardo / gist:2145828
Created March 21, 2012 09:38
The Zen of R
# I am a scientist who has been using R for about 2 years. Today I achieved a measure of enlightenment into
# the zen of R, and I want to share it with you.
# I was simulating a set of independent random walks, which are formed by a multiplicative process. Here is
# the code I had built up over a few months of working on it and modifying it on and off as research
# questions changed:
TimeSteps <- 1000
Walks <- 100
ErrorMagnitude <- 0.03
@eduardo
eduardo / gist:1654227
Created January 21, 2012 22:08 — forked from dce/gist:911813
Vim for Rails Developers notes
@eduardo
eduardo / Inconsolata-dz-Powerline.otf
Created January 13, 2012 19:38 — forked from qrush/Inconsolata-dz-Powerline.otf
vim-powerline patched fonts
@eduardo
eduardo / gist:1239075
Created September 24, 2011 07:21
How to downgrade the My Book World edition firmware from 1.02.10 to 1.02.06
Re: Network complications with My Book World firmware 1.02.10
Options
Monday
I found a solution on a nother post located here.
http://community.wdc.com/t5/My-Book-World-Edition/DO-NOT-UPDATE-1-02-10-FIRMWARE/td-p/257090/highlig...
If youve flashed your WD MyBookWorld to the new release of the firmware (version 01.02.10), the unit
will not allow you to reflash with a version that is earlier as it checks if the release that is current
is the latest by its number.
@eduardo
eduardo / conferenciaror-2011-books.markdown
Created July 14, 2011 15:47
List of books recommended/mentioned in @conferenciaror 2011