Skip to content

Instantly share code, notes, and snippets.

View joshuaswilcox's full-sized avatar

Joshua Wilcox joshuaswilcox

View GitHub Profile

Ubuntu 14.04, RoR, Nginx, Puma, Postgresql and Capistrano deploy#

Server Setup

  • Create new server
  • Login to new server
    • ssh root@IPaddress
    • accept the RSA key
    • use the password that was provided when you set up the new server:
  • change the password:
# Colours
txtgrn='\[\e[0;32m\]' # Green
txtylw='\[\e[0;33m\]' # Yellow
txtblu='\[\e[0;34m\]' # Blue
txtpur='\[\e[0;35m\]' # Purple
txtcyn='\[\e[0;36m\]' # Cyan
txtwht='\[\e[0;37m\]' # White
bldblk='\[\e[1;30m\]' # Black - Bold
bldred='\[\e[1;31m\]' # Red - Bold
bldgrn='\[\e[1;32m\]' # Green - Bold
=Navigating=
visit('/projects')
visit(post_comments_path(post))
=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click('Button Value')
@joshuaswilcox
joshuaswilcox / gist:3715949
Created September 13, 2012 17:20
Everything you can override in a refinerycms project with refinerycms-blog
When starting a project that includes refinerycms-blog:
$ rake refinery:override view=refinery/pages/*
$ rake refinery:override view=layouts/*
$ rake refinery:override view=refinery/blog/shared/*
$ rake refinery:override view=refinery/blog/posts/*
$ rake refinery:override view=refinery/*
$ rake refinery:override controller=refinery/blog/*
$ rake refinery:override controller=refinery/*