start new:
tmux
start new with session name:
tmux new -s myname
ruby_girls = ['Ellen', 'Nadia', 'Yannis', 'Romina'] | |
p ruby_girls[1] | |
ruby_girls.sort.each do |ruby_girl| | |
puts ruby_girl | |
end | |
p 'let reverse it!' | |
ruby_girls.reverse.each do |ruby_girl| | |
puts ruby_girl |
require 'minitest/autorun' | |
require_relative 'school' | |
class SchoolTest < MiniTest::Unit::TestCase | |
def school | |
@school | |
end | |
def setup |
require "gimli" | |
require "yaml" | |
ROOT_PATH = "~/Documents/ember_guides/" | |
TABLE_OF_CONTENT_PATH = ROOT_PATH+"website/data/guides.yml" | |
GUIDE_FILES_PATH = ROOT_PATH+"website/source/guides/" | |
def concatenated_path | |
yaml_table_of_content = YAML.load_file TABLE_OF_CONTENT_PATH | |
concatenated_paths = [] |
When /^I chose "(.*?)" in the "(.*?)" select2 menu$/ do |value, placeholder| | |
container = page.find('.select2-container', text: placeholder) | |
container.find('a.select2-choice').click | |
input = container.find("input[type='text']") | |
input.set(value) | |
sleep 1 | |
li = container.find('li', text: value) | |
li.click | |
end |
require "highline/import" | |
from_path = ask "Enter path for file to convert: " | |
to_path = ask "Enter the path where to save the spec file: " | |
unless File.exists? from_path | |
puts "Sorry this file doesn't exist!: #{from_path}" | |
puts "Please try again" | |
return | |
end | |
t_unit = File.read(from_path).to_s |
user sax staff; | |
worker_processes 1; | |
daemon off; | |
error_log /var/log/nginx/error.log; | |
#error_log logs/error.log notice; | |
#error_log logs/error.log info; | |
#pid logs/nginx.pid; | |
pid /var/run/nginx.pid; |
upstream app { | |
server unix:/srv/app/current/tmp/sockets/unicorn.sock fail_timeout=0; | |
} | |
server { | |
listen 80; | |
server_name www.app.com; | |
rewrite ^/(.*) http://app.com/$1 permanent; | |
} | |
server { |