Noob access to administer your local area network and wifi access:
http://192.168.254.254
username: user
password: @l03e1t3
=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') |
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> |
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% |
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 |
docker ps | awk {' print $1 '} | tail -n+2 > tmp.txt; for line in $(cat tmp.txt); do docker kill $line; done; rm tmp.txt |
I hereby claim:
To claim this, I am signing this object: