Skip to content

Instantly share code, notes, and snippets.

View felipecabargas's full-sized avatar
🇩🇰
Imported from 🇨🇱

A. Felipe Cabargas felipecabargas

🇩🇰
Imported from 🇨🇱
View GitHub Profile
1 Ad Nauseam
1 Arbor Elf
1 Arid Mesa
1 Badlands
1 Bayou
1 Beast Within
1 Birds of Paradise
1 Blood Crypt
1 Bloodstained Mire
1 Brainstorm
@felipecabargas
felipecabargas / bonus.md
Last active June 8, 2017 02:53
Devise custom fields

Bonus track

Se acuerdan de que hablamos sobre modificar Devise para aceptar username? Bueno, como bonus track, aca va el codigo para hacerlo:

  • Crear el controlador de registro (app/controllers/registrations_controller.rb) con el siguiente contenido:
class RegistrationsController < Devise::RegistrationsController

 private
# Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh
source /Users/felipe/.rvm/scripts/rvm
set -o vi
# 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="rubyist"
@felipecabargas
felipecabargas / .zshrc
Last active January 10, 2016 02:00
Bash function for easier GitHub repository cloning
function ghc() {
git clone https://github.com/$1.git
}
defaults write com.apple.BluetoothAudioAgent "Apple Bitpool Min (editable)" -int 40
defaults write NSGlobalDomain ApplePressAndHoldEnabled -bool false
defaults write -g com.apple.trackpad.scaling 2
defaults write -g com.apple.mouse.scaling 2.5
defaults write NSGlobalDomain AppleFontSmoothing -int 2
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true
defaults write com.apple.dock tilesize -int 36
defaults write com.apple.dock expose-animation-duration -float 0.1
defaults write com.apple.mail AddressesIncludeNameOnPasteboard -bool false
mkdir -p ~/Downloads/Incomplete
@felipecabargas
felipecabargas / .zsh_history
Last active October 17, 2015 01:52
Commands used during git hangout on 10/16/15
10048 : 1445042157:0;hangout
10049 : 1445042162:0;git init
10050 : 1445042170:0;ls -la
10051 : 1445042181:0;.git
10052 : 1445042182:0;ls
10053 : 1445042197:0;..
10054 : 1445042210:0;git status
10055 : 1445042227:0;touch hola
10056 : 1445042231:0;git status
10057 : 1445042263:0;git add hola
@felipecabargas
felipecabargas / git-essentials.md
Last active October 4, 2015 04:49
Comandos Básicos de Git [SFD]

#Git Essentials

###NOTAS:

  • <variable> Indica variable.
  • [option] Indica parámetro opcional.

##Repositorios git init

@felipecabargas
felipecabargas / hi.md
Created October 3, 2015 17:05
SFD Git installation guide

#Git Setup Guide

by Alfonso Cabargas Madrid | [email protected]

##INSTALACIÓN --join-the-dark-side-we-have-cookies

###OS X

Descarga
<html>
<head>
<title></title>
<meta />
</head>
<body>
<h1></h1>
<a></a>
<p></p>
git remote set-url origin [email protected]:reciclario/homepage-reciclario.git
git remote set-url origin [email protected]:reciclario/reciclario-android.git
git remote set-url origin [email protected]:reciclario/core-reciclario.git