As configured in my dotfiles.
start new:
tmux
start new with session name:
| begin | |
| # check if memcached is running; if it is, use that instead of the default memory cache | |
| Timeout.timeout(0.5) { TCPSocket.open("localhost", 11211) { } } | |
| config.cache_store = :mem_cache_store, %w(localhost:11211), { :namespace => 'OI', :timeout => 60 } | |
| $stderr.puts "Using memcached on localhost:11211" | |
| rescue StandardError | |
| config.cache_store = nil | |
| $stderr.puts "memcached not running, caching to memory" | |
| end |
| =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') |
| # NOTICE: to get Nginx+Unicorn best-practices configuration see the gist https://gist.github.com/3052776 | |
| $ cd /usr/src | |
| $ wget http://nginx.org/download/nginx-1.2.1.tar.gz | |
| $ tar xzvf ./nginx-1.2.1.tar.gz && rm -f ./nginx-1.2.1.tar.gz | |
| $ wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.30.tar.gz | |
| $ tar xzvf pcre-8.30.tar.gz && rm -f ./pcre-8.30.tar.gz | |
| $ wget http://www.openssl.org/source/openssl-1.0.1c.tar.gz |
| $default_rounded_amount: 5px | |
| // Round corner at position by amount. | |
| @mixin round-corner($position, $amount: $default_rounded_amount) | |
| border-#{$position}-radius: $amount | |
| -webkit-border-#{$position}-radius: $amount | |
| @mixin round-corner-mozilla($position, $amount: $default_rounded_amount) | |
| -moz-border-radius-#{$position}: $amount | |
| // Round left corners by amount |
| # MySQL. Versions 4.1 and 5.0 are recommended. | |
| # | |
| # Install the MySQL driver: | |
| # gem install mysql2 | |
| # | |
| # And be sure to use new-style password hashing: | |
| # http://dev.mysql.com/doc/refman/5.0/en/old-client.html | |
| development: | |
| adapter: mysql2 | |
| encoding: utf8 |
| # in rails application.rb | |
| initializer "postgresql.no_default_string_limit" do | |
| ActiveSupport.on_load(:active_record) do | |
| ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::NATIVE_DATABASE_TYPES[:string].delete(:limit) | |
| end | |
| end |
| The MIT License (MIT) | |
| Copyright (c) 2015 Oleg Ivanov http://github.com/morhekil | |
| Permission is hereby granted, free of charge, to any person obtaining a copy | |
| of this software and associated documentation files (the "Software"), to deal | |
| in the Software without restriction, including without limitation the rights | |
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| copies of the Software, and to permit persons to whom the Software is | |
| furnished to do so, subject to the following conditions: |
| @Grapes([ | |
| @Grab("org.codehaus.geb:geb-core:0.6.0"), | |
| @Grab("org.seleniumhq.selenium:selenium-firefox-driver:2.4.0"), | |
| @Grab("net.sf.opencsv:opencsv:2.0") | |
| ]) | |
| import geb.Browser | |
| import au.com.bytecode.opencsv.* | |
| def fileLocation = 'secret_escapes_20111004_1436.csv' // the location of your csv file. You can go to your pivotal board and do an export to CSV. |
| FIXME: | |
| WARNING: Nokogiri was built against LibXML version 2.7.3, but has dynamically loaded 2.7.8 | |
| or | |
| libxml_ruby.bundle: dlsym(0x10fde1900, Init_libxml_ruby): symbol not found | |
| gem uninstall nokogiri libxml-ruby | |
| brew update | |
| brew uninstall libxml2 |
As configured in my dotfiles.
start new:
tmux
start new with session name: