This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is your main app/models/ability.rb file in your app | |
class Ability < Namespace::Ability | |
def initialize(user) | |
super | |
# Main app CanCan rules | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git init | |
git remote add origin [email protected]:Kelsin/configs.git | |
git fetch | |
git branch master origin/master | |
git checkout master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; Javadoc Help | |
(autoload 'javadoc-lookup "javadoc-help" "Look up Java class in Javadoc." t) | |
(autoload 'javadoc-help "javadoc-help" "Open up the Javadoc-help menu." t) | |
(autoload 'javadoc-set-predefined-urls "javadoc-help" "Set pre-defined urls." t) | |
(global-set-key [f8] 'javadoc-lookup) | |
(global-set-key [(shift f8)] 'javadoc-help) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import mice | |
# Show an array of all servers | |
mice.m.getAllServers() | |
# Create a new server | |
mice.m.newServer() | |
# Grab the new server object (for me this was server 2) | |
s2 = mice.m.getServer(2) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd /usr/local/Library/Formula | |
rm emacs.rb | |
wget https://raw.github.com/gist/1446720/36c7a3ab0ec8255e361dae11e0803cdf5cd09157/emacs.rb | |
brew install emacs --cocoa --lion |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git fsck --full --no-reflogs | grep commit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- First create the database | |
create database new_database; | |
-- Then give all privs to the correct user | |
grant all on new_database.* to username@localhost; | |
-- Or with privs written out | |
grant select, insert, update, delete, create, drop, references, index, alter, create temporary tables, lock tables, execute, create view, show view, create routine, alter routine on new_database.* to username@localhost; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias e='gvim --remote-silent' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Path adding function | |
pathadd() { | |
if [ -d "$1" ] && [[ ":$PATH:" != *":$1:"* ]]; then | |
PATH="$1:$PATH" | |
fi | |
} | |
export PATH | |
pathadd "/c/Program Files (x86)/Vim/vim74" | |
pathadd "$HOME/opt/ctags58" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Adding runtimepath for windows so we can use .vim instead of _vim | |
if !exists("g:loaded_runtime") | |
set runtimepath=~/.vim,$VIMRUNTIME | |
let g:loaded_runtime = 1 | |
endif |
OlderNewer