Skip to content

Instantly share code, notes, and snippets.

@shedd
shedd / img_convert.rb
Created April 14, 2012 17:03 — forked from arirusso/img_convert.rb
convert html img tags to rails image_tag calls
#!/usr/bin/env ruby -Ku
require "nokogiri"
require "iconv"
# opens every file in the given dir tree and converts any html img tags to rails image_tag calls
#
# example usage:
# ruby convert.rb ~/my_rails_app/app/views
#
# ***be careful and backup before using this***
@shedd
shedd / ideal ops.md
Created May 27, 2012 12:33 — forked from bhenerey/ideal ops.md
ideal ops checklist

In a perfect world, where things are done well, not just quickly, I would expect to find the following when joining the company:

Documentation

  • Accurate / up-to-date systems architecture diagram

  • Accurate / up-to-date network diagram

  • Out-of-hours support plan

  • Incident management plan

@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
@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 / 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 / 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 &

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