Skip to content

Instantly share code, notes, and snippets.

manters2000 / rails-commands
Last active Jan 21, 2016
Common Rails Commands
View rails-commands
Common Rails Commands
rails new app
rails server
rails generate Scaffold name:string email:string
bundle exec rake db:migrate
rails console
bundle exec rake test
bundle exec guard init
bundle exec guard
manters2000 / git-commands
Last active Dec 19, 2015
Common Git Commands
View git-commands
Useful Git Commands:
git config --global "Emmanuel Rosani"
git config --global ""
//Ignore files globally
//Create .gitignore_global file in the user directory containing files/folders you wish to ignore
git config --global core.excludesfile Users\Rosani\.gitignore_global
git add .
manters2000 / sublime.txt
Last active Dec 3, 2015
Useful Sublime Text Snippets
View sublime.txt
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<!-- Optional: Set a scope to limit where the snippet will trigger -->
manters2000 / menu
Last active Sep 17, 2015 — forked from ikoner/menu
Forked Gist
View menu
// register wp_nav_menu
add_action( 'init', 'register_my_menus' );
function register_my_menus() {
register_nav_menus( array(
'topMenu' => __( 'topMenu', 'smsApp' )