Skip to content

Instantly share code, notes, and snippets.

# Path to your oh-my-zsh configuration.
ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
#ZSH_THEME="robbyrussell"
ZSH_THEME="robbyrussell"
#ZSH_THEME="random"
@ismaelga
ismaelga / .profile
Created July 20, 2012 18:08 — forked from kenzie/.profile
Start MongoDB and Redis daemons from the command line (OS X)
# add these aliases to your BASH profile ~/.profile
alias mongodb-start="mongod run --config /usr/local/etc/mongod.conf"
alias redis-start="redis-server /usr/local/etc/redis.conf"
# TODO add stop commands
@ismaelga
ismaelga / gist:3158323
Created July 22, 2012 03:58 — forked from kevindavis/gist:1868651
Bootstrap styling for jQuery UI autocomplete
.ui-autocomplete {
position: absolute;
top: 100%;
left: 0;
z-index: 1000;
float: left;
display: none;
min-width: 160px;
_width: 160px;
padding: 4px 0;
@ismaelga
ismaelga / gist:3158324
Created July 22, 2012 03:58 — forked from kevindavis/gist:1868669
Bootstrap styling for jQuery UI date picker
#ui-datepicker-div
{
.ui-datepicker-header
{
background-image: none;
background-color: #0088cc; color: #fff;
.ui-datepicker-prev span.ui-icon
{
background-image: url("/assets/glyphicons-halflings-white.png");
@ismaelga
ismaelga / gist:3301358
Created August 9, 2012 05:38
pt rails translation
pt-PT:
date:
abbr_day_names:
- Dom
- Seg
- Ter
- Qua
- Qui
- Sex
- Sáb
###
# Scheme code is translated to YARV byte code, then evaluated in the
# Ruby Virtual Machine
require 'rbconfig'
require 'dl'
require 'fiddle'
require 'strscan'
class RubyVM
@ismaelga
ismaelga / lorens.rb
Created September 11, 2012 22:33
Lorens - Alfred extension problem
#!/usr/bin/env ruby
require "lorem"
hash = {'c' => 'chars', 'w' => 'words', 'p' => 'paragraphs'}
args = ARGV[0].split
*args = hash[args[1]], args[0].to_i
print Lorem::Base.new(*args).output
@ismaelga
ismaelga / .rspec
Created October 7, 2012 21:34
Rspec config command params
--color
--order random
--format progress
--profile
@ismaelga
ismaelga / zpreztorc
Created October 10, 2012 23:29
Pretzo sorin zpreztorc
# Set the Prezto modules to load (browse modules).
# The order matters.
zstyle ':prezto:load' pmodule \
'environment' \
'terminal' \
'editor' \
'history' \
'directory' \
'spectrum' \
'gnu-utility' \
# encoding: utf-8
# Be sure to restart your server when you modify this file.
# Add new inflection rules using the following format
# (all these examples are active by default):
# ActiveSupport::Inflector.inflections do |inflect|
# inflect.plural /^(ox)$/i, '\1en'
# inflect.singular /^(ox)en/i, '\1'
# inflect.irregular 'person', 'people'
# inflect.uncountable %w( fish sheep )