I hereby claim:
- I am wuzzzzaah on github.
- I am omarshariffd (https://keybase.io/omarshariffd) on keybase.
- I have a public key ASCijFnsXc2y1QA7jLW9opYBbbR7smb5LvhdtRjjk5XaYAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
docker ps | awk {' print $1 '} | tail -n+2 > tmp.txt; for line in $(cat tmp.txt); do docker kill $line; done; rm tmp.txt |
require 'csv' | |
CSV.open("file_name.csv", "w") do |csv| | |
csv << Model_name.attribute_names | |
#any ar collection | |
ar_collection.each do |record| | |
csv << record.attributes.values | |
end | |
end |
set dt=%date:~7,2%%date:~4,2%%date:~10,4%%time:~0,2%%time:~3,2%%time:~6,2% | |
set origFile=%1 | |
set noext=%origFile:~0,-4% | |
set ext=%origFile:~-4% | |
ren %1 %noext%%dt%%ext% |
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> |
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 |
=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') |