Skip to content

Instantly share code, notes, and snippets.

=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')
@wuzzzzaah
wuzzzzaah / deploy.rb
Created February 12, 2014 10:47 — forked from alkema/deploy.rb
set :application, "appname"
set :deploy_to, "/var/www"
set :scm, :git
set :repository, "git@github.com:user/app.git"
default_run_options[:pty] = true
set :user, "www-data"
set :domain, "foo.tld"
set :normalize_asset_timestamps, false
UbuntuのEC2インスタンス上に、Ruby on Rails開発環境を構築する。
プロンプトは$がubuntuユーザ(一般ユーザ)、#がrootユーザ。
①rubyがインストールされていないことを確認する。
# ruby -v
The program 'ruby' can be found in the following packages:
* ruby
* ruby1.8
Try: apt-get install <selected package>
@wuzzzzaah
wuzzzzaah / Globe4gLTE.md
Created October 6, 2017 19:10 — forked from pongstr/Globe4gLTE.md
Access to Globe Broadband's Azatech DSL5001EN Router

Globe 4G LTE (Internet Only)

Noob access to administer your local area network and wifi access:

http://192.168.254.254

username: user
password: @l03e1t3
@wuzzzzaah
wuzzzzaah / docker_kill.sh
Created January 9, 2019 11:56 — forked from evanscottgray/docker_kill.sh
kill all docker containers at once...
docker ps | awk {' print $1 '} | tail -n+2 > tmp.txt; for line in $(cat tmp.txt); do docker kill $line; done; rm tmp.txt