ssh [email protected] -p port
vi ~/.ssh/config
Host aliasname
HostName yourdomain.com
Port port
User yourusername
Format meaning: | |
%a - The abbreviated weekday name (``Sun'') | |
%A - The full weekday name (``Sunday'') | |
%b - The abbreviated month name (``Jan'') | |
%B - The full month name (``January'') | |
%c - The preferred local date and time representation | |
%d - Day of the month (01..31) | |
%H - Hour of the day, 24-hour clock (00..23) | |
%I - Hour of the day, 12-hour clock (01..12) |
ssh [email protected] -p port
vi ~/.ssh/config
Host aliasname
HostName yourdomain.com
Port port
User yourusername
<% | |
rerun = File.file?('rerun.txt') ? IO.read('rerun.txt') : "" | |
rerun_opts = rerun.to_s.strip.empty? ? "--format #{ENV['CUCUMBER_FORMAT'] || 'progress'} features" : "--format #{ENV['CUCUMBER_FORMAT'] || 'pretty'} #{rerun}" | |
std_opts = "--strict --tags ~@wip --tags ~@pending" | |
std_format = "--format #{ENV['CUCUMBER_FORMAT'] || 'progress'}" | |
%> | |
default: <%= std_opts %> <%= std_format %> features | |
wip: --tags @wip --tags ~@pending --wip features | |
rerun: <%= rerun_opts %> --format rerun --out rerun.txt --strict --tags ~@wip | |
detail: --tags ~@pending --wip features |
export LC_ALL='en_GB.UTF-8' |
sudo apt-get install libonig-dev | |
gem install oniguruma |
def screen_shot_and_save_page | |
require 'capybara/util/save_and_open_page' | |
path = "/#{Time.now.strftime('%Y-%m-%d-%H-%M-%S')}" | |
Capybara.save_page body, "#{path}.html" | |
page.driver.render Rails.root.join "#{Capybara.save_and_open_page_path}" "#{path}.png" | |
end | |
begin | |
After do |scenario| | |
screen_shot_and_save_page if scenario.failed? |
This script installs a patched version of ruby 1.9.3-p125 with patches to make ruby-debug work again (#47) and boot-time performance improvements (#66 and #68), and runtime performance improvements (#83 and #84). It also includes the new backported GC from ruby-trunk.
Huge thanks to funny-falcon for the performance patches.
test:
database: yourproject_test<%= ENV['TEST_ENV_NUMBER'] %>