Skip to content

Instantly share code, notes, and snippets.

@shedd
shedd / CI Deploy Pattern for Netlify.md
Last active October 30, 2018 16:59
A simple pattern for pushing production builds live on Netlify when your CI build passes.
@shedd
shedd / keybase.md
Created September 12, 2016 14:08
Keybase Verification

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 C098 9ED3 FEDF E11A CD4C 1958 129B 668B 99F6 EF77

To claim this, I am signing this object:

@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

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.

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:

@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
@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 / pgessays.py
Created November 22, 2012 03:55 — forked from olasitarska/pgessays.py
Builds epub book out of Paul Graham's essays.
# -*- coding: utf-8 -*-
"""
Builds epub book out of Paul Graham's essays: http://paulgraham.com/articles.html
Author: Ola Sitarska <ola@sitarska.com>
This script requires python-epub-library: http://code.google.com/p/python-epub-builder/
"""
import re, ez_epub, urllib2, genshi
@shedd
shedd / default.rb
Created August 9, 2012 09:43 — forked from emachnic/default.rb
Chef recipe to write redis.yml on Engine Yard Cloud
# ey-cloud-recipes/cookbooks/redis-yml/recipes/default.rb
if ['app_master', 'app'].include?(node[:instance_role])
redis_instance = node['utility_instances'].find { |instance| instance['name'] == 'redis' }
if redis_instance
node[:applications].each do |app, data|
template "/data/#{app}/shared/config/redis.yml"do
source 'redis.yml.erb'
owner node[:owner_name]
@shedd
shedd / indexes.rb
Created August 8, 2012 08:30 — forked from durran/indexes.rb
Missing FK indexes
connection = ActiveRecord::Base.connection
connection.tables.each do |table|
columns = connection.columns(table).collect(&:name).select {|x| x.ends_with?("_id" || x.ends_with("_type"))}
indexed_columns = connection.indexes(table).collect(&:columns).flatten.uniq
unindexed = columns - indexed_columns
unless unindexed.empty?
puts "#{table}: #{unindexed.join(", ")}"
end
end