Copy from capybara's github page
visit('/projects')
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
http { | |
proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=one:8m max_size=3000m inactive=600m; | |
proxy_temp_path /var/tmp; | |
include mime.types; | |
default_type application/octet-stream; | |
sendfile on; | |
keepalive_timeout 65; | |
gzip on; | |
gzip_comp_level 6; |
var express = require('express'); | |
var redis = require('redis'); | |
const serverType = process.argv[2]; | |
const serverHost = process.argv[3]; | |
const serverPort = parseInt(process.argv[4]); | |
const redisPort = 6379; | |
const redisHost = '127.0.0.1'; |
#!/usr/bin/env bash | |
apt-get -y update | |
apt-get -y install libreadline6-dev build-essential libyaml-dev zlib1g-dev libssl-dev | |
apt-get -y install ruby1.9.3 | |
apt-get -y install ruby1.9.1-dev | |
gem install chef --no-ri --no-rdoc |
$ sudo innobackupex --user=USER --password=PASSWORD PATH_TO_BACKUP_DIR |
<VirtualHost *:80> | |
ServerName domain.com | |
ServerAlias www.domain.com | |
#ServerAlias *.domain.com | |
RailsBaseURI /join | |
<Directory /join> | |
Options -MultiViews |
$ ruby poc_fiber.rb | |
"hello" | |
"world" |
#!/usr/bin/env ruby | |
%w(yaml ap).each { |dep| require dep } | |
obj = YAML::load(DATA) | |
puts "-" * 30 | |
ap obj['firstName'] | |
puts "-" * 30 |