Skip to content

Instantly share code, notes, and snippets.

shedd / tmux.cheat
Last active August 29, 2015 13:56 — forked from afair/tmux.cheat
========================================== ==========================================
========================================== ==========================================
List tmux ls List ^b w
New new -s <session> Create ^b c
Attach att -t <session> Rename ^b , <name>
Rename rename-session -t <old> <new> Last ^b l (lower-L)
Kill kill-session -t <session> Close ^b &
shedd / A Model
Last active August 29, 2015 13:56
A CoffeeScript for RegExps?
# Sample RegEx with CoffeeScript comments
# from
emailPattern = /// ^ # begin of line
([\w.-]+) # one or more letters, numbers, _ . or -
@ # followed by an @ sign
([\w.-]+) # then one or more letters, numbers, _ . or -
\. # followed by a period
([a-zA-Z.]{2,6}) # followed by 2 to 6 letters or periods
$ ///i # end of line and ignore case

Keybase proof

I hereby claim:

  • I am shedd on github.
  • I am shedd ( on keybase.
  • I have a public key whose fingerprint is 2B69 E8EB 97F3 6DFA 989A D880 2A44 A6A0 6ABB 1812

To claim this, I am signing this object:

Fidelity Investments Two-Factor Authentication for Account Access

[Fidelity] ( offers two-factor authentication, which provides a second layer of protection beyond a password for accessing an account on their website. It uses either a physical token provided by Fidelity or the Symantec VIP Access smartphone app. It appears there is no information about this service provided online and it must be enabled and managed by phone.

Note that this is different than the weaker [“Transaction Security”] (, which only protects certain types of transactions.

Instructions for Setting Up Fidelity Two-Factor Authentication

  1. Do one of the following:
  • Obtain a physical token by calling Fidelity Account Key Support at 800-544-7595.
shedd /
Last active August 29, 2015 14:02 — forked from LinusU/


Install cordova into node_modules

npm install cordova

Add icons_and_splash.js

shedd / gist:1040446
Created June 22, 2011 16:08
# Don't load anything when running the gems:* tasks.
# Otherwise, hoptoad_notifier will be considered a framework gem.
unless ARGV.any? {|a| a =~ /^gems/}
Dir[File.join(Rails.root, 'vendor', 'gems', 'hoptoad_notifier-*')].each do |vendored_notifier|
$: << File.join(vendored_notifier, 'lib')
shedd / gist:1040432
Created June 22, 2011 16:01
Hoptoad Errors on Ruby 1.9.2 w/ Rails 3.1.rc4
username /data/appname/current $ ruby --version
ruby 1.9.2p180 (2011-02-18 revision 30909) [i686-linux]
username /data/appname/current $ rake hoptoad:test --trace
DEPRECATION WARNING: attr_accessor_with_default is deprecated. Use Ruby instead!. (called from block in <module:Configuration> at /data/appname/shared/bundled_gems/ruby/1.9.1/bundler/gems/active_admin-47cab4dd73d6/lib/active_admin/comments/configuration.rb:12)
** Invoke hoptoad:test (first_time)
** Invoke environment (first_time)
** Execute environment
** Invoke hoptoad:log_stdout (first_time)
shedd / pause_pingdom.rb
Created June 24, 2011 21:57
Script to use the Pingdom API to pause and unpause check
require 'net/http'
require 'net/https'
require 'uri'
PINGDOM_API_KEY = "your_api_key_here"
shedd / gist:1162412
Created August 22, 2011 13:51
Wrap Rake Tasks in Hoptoad Notifier
# Log any errors to Hoptoad as needed
# ** define this before the lib/tasks are included
def task_with_hoptoad_notification(options)
task(options) do
rescue Exception => msg
shedd / gist:1162432
Created August 22, 2011 13:56
Wrap New Relic Instrumentation around Hoptoad Rake wrapper
# Add New Relic instrumentation
# ** define this before the lib/tasks are included
def task_with_new_relic_and_hoptoad(options)
caller_method = options.keys.first
task(options) do
require 'newrelic_rpm'
include NewRelic::Agent::Instrumentation::ControllerInstrumentation