Skip to content

Instantly share code, notes, and snippets.

@tiagoamaro
tiagoamaro / .gitconfig
Created February 14, 2014 02:17
Git Graph
# From: https://coderwall.com/p/mlozoa
# Add the following to your ~/.gitconfig to view your git "graph":
# You may need to create ~/.gitconfig
[alias]
graph = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%aN>%Creset'
@tiagoamaro
tiagoamaro / alfred_custom_searches.md
Last active August 29, 2015 14:02
Alfred Custom Searches

Bower: alfred://customsearch/Bower%20Search%20%7Bquery%7D/bower/utf8/noplus/http://bower.io/search/?q={query}

Github: alfred://customsearch/Github/github/utf8/plus/https://github.com/search?q={query}

Mercado Livre: alfred://customsearch/Mercado%20Livre/mercado/utf8/noplus/http://lista.mercadolivre.com.br/{query}

RubyGems: alfred://customsearch/Ruby%20Gems/ruby/utf8/noplus/https://rubygems.org/search?query={query}

Sublime Package Control: alfred://customsearch/Sublime%20Package%20Control%20Search/subl/utf8/noplus/https://packagecontrol.io/search/{query}

@tiagoamaro
tiagoamaro / Procfile
Last active August 29, 2015 14:05 — forked from jayzes/Procfile
foreman and thinking sphinx (3.x) [source: https://gist.github.com/madhums/1161840]
sphinx: bundle exec rake ts:run_in_background
# unicorn
description "unicorn ruby app server"
start on (local-filesystems and net-device-up IFACE=lo and runlevel [2345])
stop on runlevel [!2345]
env WORKDIR=/data
env PIDFILE=/data/tmp/pids/unicorn.pid
env CFGFILE=/data/config/unicorn.rb
@tiagoamaro
tiagoamaro / example.sh
Last active August 29, 2015 14:19
Shell Script to globally install gems for all Rubies in a RVM installation
GEM_NAME=nokogiri GEM_VERSION=1.6.6.2 ./globally_install_gems.sh & GEM_NAME=nokogiri GEM_VERSION=1.6.6.1 ./globally_install_gems.sh & GEM_NAME=nokogiri GEM_VERSION=1.6.5 ./globally_install_gems.sh & GEM_NAME=nokogiri GEM_VERSION=1.6.4.1 ./globally_install_gems.sh & GEM_NAME=nokogiri GEM_VERSION=1.6.4 ./globally_install_gems.sh &
@tiagoamaro
tiagoamaro / installed-packages.md
Last active December 2, 2015 13:24
Atom Editor Configurations
  • pigments
  • save-session
  • sort-lines
  • trailing-spaces
@tiagoamaro
tiagoamaro / Preferences sublime (User Settings).json
Last active December 15, 2015 13:38
Sublime Text 3 Configuration
{
"bold_folder_labels": true,
"caret_style": "wide",
"color_scheme": "Packages/Decent Color Scheme/Samuel's decent.tmTheme",
"detect_indentation": true,
"fade_fold_buttons": false,
"font_face": "Source Code Pro",
"font_size": 14,
"highlight_line": true,
"highlight_modified_tabs": true,
@tiagoamaro
tiagoamaro / .conkyrc
Last active December 16, 2015 18:20
Conky Configuration File, based on corenominal <http://corenominal.org> '.conkyrc' .This config file is used under crunchbang distro <http://crunchbang.org/>
# .conkyrc by Tiago Amaro <github.com/tiagoamaro>
# customized conkyrc config, based on crunchbang thread: http://crunchbang.org/forums/viewtopic.php?id=59
# customized for my needs (strongly) based on corenominal .conkyrc
#
# This Conky config is based in a four processor machine. If you have less or more processors, change at your will :)
background no
use_xft yes
xftfont Sans:size=8
xftalpha 1
@tiagoamaro
tiagoamaro / install_ruby.sh
Last active December 17, 2015 05:49
Installing ruby 2.0.0-p0 (using rbenv) with readline support
#!/bin/bash
#This script needs rbenv and ruby-build
#Rbenv: https://github.com/sstephenson/rbenv/
#Ruby Build: https://github.com/sstephenson/ruby-build
#Installation variables
#Choose your ruby version and readline path
RUBY_VERSION=2.0.0-p0
READLINE_PATH=/usr/include/readline
# MySQL. Versions 4.1 and 5.0 are recommended.
#
# Install the MySQL driver:
# gem install mysql2
#
# And be sure to use new-style password hashing:
# http://dev.mysql.com/doc/refman/5.0/en/old-client.html
development:
adapter: mysql2
encoding: utf8