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:
========================================== ========================================== | |
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 & |
# 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 |
I hereby claim:
To claim this, I am signing this object:
[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.
# 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 |
## 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) |
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" |
# 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 |
# 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 | |