Skip to content

Instantly share code, notes, and snippets.

View pedrofernandezm's full-sized avatar

Pedro Fernandez pedrofernandezm

View GitHub Profile
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Font
:set guifont=Source\ Code\ Pro:h14
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Hide pointless junk at the bottom, doesn't work in .vimrc for some reason?
:set laststatus=0
:set noshowmode "don't show --INSERT--
:set noruler "don't show line numbers/column/% junk

Expected Behavior

Current Behavior

@pedrofernandezm
pedrofernandezm / Vagrantfile
Last active November 3, 2015 16:41
Base Vagrantfile
VAGRANTFILE_API_VERSION = '2'
GUEST_IP = ENV['VM_IP'] || '172.17.8.100'
PROJECT_NAME = File.basename(Dir.pwd).downcase
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.provider 'virtualbox' do |v|
v.memory = 2048
v.cpus = 2
end

Keybase proof

I hereby claim:

  • I am pedrofernandezm on github.
  • I am pedrito (https://keybase.io/pedrito) on keybase.
  • I have a public key whose fingerprint is 5039 1419 B8E1 7201 943E DE8F DF66 8BF7 4F24 06ED

To claim this, I am signing this object:

# 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="gallois"
# Example aliases

TODO: make gem for this

This was tested using Ruby 2.0.0 and Rails 4.0.0.rc1.

Bower

  1. Set the install directory for Bower components:

// .bowerrc

@pedrofernandezm
pedrofernandezm / annotate.rake
Created August 7, 2013 04:44
Task for generating annotation when migrations are run
# NOTE: only doing this in development as some production environments (Heroku)
# NOTE: are sensitive to local FS writes, and besides -- it's just not proper
# NOTE: to have a dev-mode tool do its thing in production.
if(Rails.env.development?)
task :set_annotation_options do
ENV['position_in_class'] = "before"
ENV['position_in_fixture'] = "before"
ENV['position_in_factory'] = "before"
ENV['show_indexes'] = "true"
ENV['include_version'] = "false"
@pedrofernandezm
pedrofernandezm / database.yml
Created August 7, 2013 03:22
Common Postgres database configuration file
defaults: &defaults
adapter: postgresql
template: template0
host: 'localhost'
encoding: utf8
test:
<<: *defaults
database: "app_test"
@pedrofernandezm
pedrofernandezm / .git_commands
Created October 19, 2012 16:42
Bash Commands
alias gs='git status'
gc() {
git commit -m "$1";
}
gp(){
git pull $@;
}
@pedrofernandezm
pedrofernandezm / 20120828001700_create_users.rb
Created August 28, 2012 00:37
User authentication using has_secure_password
class CreateUsers < ActiveRecord::Migration
def change
create_table :users do |t|
t.string :email
t.string :password_digest
t.timestamps
end
end
end