start new:
tmux
start new with session name:
tmux new -s myname
| # If your workers are inactive for a long period of time, they'll lose | |
| # their MySQL connection. | |
| # | |
| # This hack ensures we re-connect whenever a connection is | |
| # lost. Because, really. why not? | |
| # | |
| # Stick this in RAILS_ROOT/config/initializers/connection_fix.rb (or somewhere similar) | |
| # | |
| # From: | |
| # http://coderrr.wordpress.com/2009/01/08/activerecord-threading-issues-and-resolutions/ |
| =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') |
| # | |
| # Cookbook Name:: whenever | |
| # Recipe:: default | |
| # | |
| ey_cloud_report "whenever" do | |
| message "starting whenever recipe" | |
| end | |
| # Set your application name here |
| /** | |
| * We're going to create an infinite scrollable list. In this case, we're going to show a date. When you swipe left, | |
| * you'll see yesterday. Then the day before yesterday, and so on. Swiping right shows you tomorrow, and so on. | |
| */ | |
| var win = Ti.UI.createWindow({ backgroundColor: '#fff' }); | |
| var isAndroid = Ti.Platform.osname === 'android'; | |
| /** | |
| * Track where we are in the infinite scrollable views, and define how large of a step goes between each view. | |
| */ | |
| var currentDate = new Date(), msIntervalBetweenViews = 1000/*ms*/ * 60/*s*/ * 60/*m*/ * 24/*h*/; |
| # Houston Ruby group solution for http://codekata.pragprog.com/2007/01/kata_four_data_.html | |
| require 'rspec' | |
| class CalculateSpread | |
| def for_file(filename) | |
| smallest_day, smallest_spread = nil, infinity | |
| File.readlines(filename).each do |line| | |
| next unless valid_line?(line) |
| /** | |
| * Creates a 'ghost' bitmap version of the given source drawable (ideally a BitmapDrawable). | |
| * In the ghost bitmap, the RGB values take on the values from the 'color' argument, while | |
| * the alpha values are derived from the source's grayscaled RGB values. The effect is that | |
| * you can see through darker parts of the source bitmap, while lighter parts show up as | |
| * the given color. The 'invert' argument inverts the computation of alpha values, and looks | |
| * best when the given color is a dark. | |
| */ | |
| private Bitmap createGhostIcon(Drawable src, int color, boolean invert) { | |
| int width = src.getIntrinsicWidth(); |
| #!/usr/bin/env ruby | |
| # PBS 4 Dec. 2013 | |
| # Renders HTML for all the .markdown files in the current directory. | |
| # Gives each file a .html suffix. | |
| # Saves them in a subfolder called HTML. | |
| require 'rdiscount' | |
| require 'find' | |
| require 'fileutils' |
Heil PR40 Package - http://www.bswusa.com/Dynamic-Microphones-Heil-Sound-PR40-Package-P7628.aspx
This is a great deal, and is a perfect mic for this stuff.
OC White Boom - http://www.ocwhite.com/broadcast-arms/proboomtm-elite-extended-reach-mic-arm-with-riser-45-reach-12-vertical-riser.html
The kit comes with a boom. It is decent, I guess, but this OC White boom is badass prostyle with a 4' reach and a 15" riser that lets it live behind my monitor.
| Resources: | |
| AWSEBAutoScalingGroup: | |
| Metadata: | |
| ? "AWS::CloudFormation::Authentication" | |
| : | |
| S3Auth: | |
| buckets: | |
| - <my-bucket> | |
| roleName: | |
| ? "Fn::GetOptionSetting" |