start new:
tmux
start new with session name:
tmux new -s myname
| #!/usr/bin/ruby | |
| # Create display override file to force Mac OS X to use RGB mode for Display | |
| # see http://embdev.net/topic/284710 | |
| # Steps from http://www.ireckon.net/2013/03/force-rgb-mode-in-mac-os-x-to-fix-the-picture-quality-of-an-external-monitor | |
| # Steps... (make sure to have laptop lid closed and only one monitor hooked up) | |
| # Step 1) $ ruby patch-edid.rb # This will create a new folder inside of the folder this file is ran in, needs to be moved to Step 2 | |
| # Step 2) A new folder will be created in your home directory. Move it into the “/System/Library/Displays/Overrides” folder. If Finder tells you that you are overwriting an existing folder, consider backing it up first. | |
| # Step 3) Restart computer | |
| require 'base64' |
| require 'bindata' | |
| class CustomProtocol < BinData::Record | |
| endian :big | |
| stringz :command_word | |
| uint8 :op1 | |
| uint8 :op2 | |
| end |
| # Simple, scrappy UDP DNS server in Ruby (with protocol annotations) | |
| # By Peter Cooper | |
| # | |
| # MIT license | |
| # | |
| # * Not advised to use in your production environment! ;-) | |
| # * Requires Ruby 1.9 | |
| # * Supports A and CNAME records | |
| # * See http://www.ietf.org/rfc/rfc1035.txt for protocol guidance | |
| # * All records get the same TTL |
=Navigating= visit('/projects') visit(post_comments_path(post))
Finding stuff (using Capybara::Element unless noted) http://rubydoc.info/github/jnicklas/capybara/master/Capybara/Node/Finders
- (Capybara::Result) all([kind], locator, options)
- Find all elements on the page matching the given selector and options.
| Dear soon-to-be-former user, | |
| We've got some fantastic news! Well, it's great news for us anyway. You, on | |
| the other hand, are fucked. | |
| We've just been acquired by: | |