Skip to content

Instantly share code, notes, and snippets.

@shedd
shedd / tmux.cheat
Last active August 29, 2015 13:56 — forked from afair/tmux.cheat
========================================== ==========================================
TMUX COMMAND WINDOW (TAB)
========================================== ==========================================
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
shedd / A Model RegExp.coffee
Last active August 29, 2015 13:56
A CoffeeScript for RegExps?
# Sample RegEx with CoffeeScript comments
# from http://www.elijahmanor.com/regular-expressions-in-coffeescript-are-awesome/
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 (https://keybase.io/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] (https://www.fidelity.com/) 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”] (https://fps.fidelity.com/ftgw/Fps/Fidelity/SecurityDevice/Maintain/Init), 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
shedd / README.md
Last active August 29, 2015 14:02 — forked from LinusU/README.md

Usage

Install cordova into node_modules

npm install cordova

Add icons_and_splash.js

@shedd
shedd / gist:1040446
Created June 22, 2011 16:08
lib/tasks/hoptoad_tasks.rake
# Don't load anything when running the gems:* tasks.
# Otherwise, hoptoad_notifier will be considered a framework gem.
# https://thoughtbot.lighthouseapp.com/projects/14221/tickets/629
unless ARGV.any? {|a| a =~ /^gems/}
Dir[File.join(Rails.root, 'vendor', 'gems', 'hoptoad_notifier-*')].each do |vendored_notifier|
$: << File.join(vendored_notifier, 'lib')
end
begin
@shedd
shedd / gist:1040432
Created June 22, 2011 16:01
Hoptoad Errors on Ruby 1.9.2 w/ Rails 3.1.rc4
## VANILLA RAKE
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
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_HOSTNAME = "api.pingdom.com"
PINGDOM_API_KEY = "your_api_key_here"
PINGDOM_API_VERSION = "2.0"
PINGDOM_CHECK_ID = "######"
PINGDOM_USERNAME = "user@domain.com"
PINGDOM_PASSWORD = "password"
@shedd
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
begin
yield
rescue Exception => msg
HoptoadNotifier.notify(msg)
end
end
@shedd
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
NewRelic::Agent.manual_start