branches
- Get a nice pretty list of available branches.
sync [<branch>]
- Syncronizes the given branch. Defaults to current branch. Stash, Fetch, Auto-Merge/Rebase, Push, and Unstash. You can only sync published branches.
switch <branch>
- Switches to specified branch.
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
#!/bin/sh | |
# | |
# Provides missing crontab editing | |
# Note: Synology crond requires arguments separated by a TAB character | |
# and the crontab user field only supports root. These requirements are | |
# enforced by this script. | |
# | |
# John Kelly, 2013-05-03 | |
# | |
SCRIPTNAME=`basename $0` |
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
http://zurb.com/ink/docs.php |
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
# Form styling and interaction | |
http://webdesign.tutsplus.com/tutorials/ux-tutorials/implementing-the-float-label-form-pattern/?utm_source=CSS-Weekly&utm_campaign=Issue-83&utm_medium=RSS |
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
# Redis server setup | |
http://blog.sensible.io/2013/08/20/setting-up-redis-for-production-environment.html | |
# Redis for Ruby | |
https://github.com/redis/redis-rb | |
# Redis and rails | |
http://jimneath.org/2011/03/24/using-redis-with-ruby-on-rails.html | |
# Redis cache | |
http://www.ryanalynporter.com/2012/06/12/simple-redis-caching-in-ruby/ |
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
ssh -L 8081:localhost:2812 [email protected] -f -N |
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
#1: %x{ } – quick and easy | |
name = 'ls' | |
result = `which #{name}` # or result = %x{which #{name}} | |
#2: system – when you want to know how it went | |
result = system 'cp', '/full/path/to/my_file', '/target/directory' | |
if result.nil? | |
puts "Error was #{$?}" | |
elsif result | |
puts "You made it!" |
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
#Reload configuration file | |
monit -c monit.conf reload | |
#Check processes monitored by monit | |
monit -c monit.conf status | |
#Start a process | |
monit -c monit.conf start name | |
#Stop a process |
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
devise_for :users, :skip => [:registrations, :sessions] do | |
# devise/registrations | |
get 'signup' => 'devise/registrations#new', :as => :new_user_registration | |
post 'signup' => 'devise/registrations#create', :as => :user_registration | |
get 'users/cancel' => 'devise/registrations#cancel', :as => :cancel_user_registration | |
get 'users/edit' => 'devise/registrations#edit', :as => :edit_user_registration | |
put 'users' => 'devise/registrations#update' | |
delete 'users/cancel' => 'devise/registrations#destroy' | |
# devise/sessions |
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 archive master | bzip2 > source-tree.tar.bz2 |