Skip to content

Instantly share code, notes, and snippets.

View jeffleeismyhero's full-sized avatar

Jeffrey Lee jeffleeismyhero

View GitHub Profile
@chrisb
chrisb / gist:4d6a09c6cc1ca2e1b14e
Last active November 25, 2022 04:15
Homebrew, Ruby, and Rails on OS X 10.10

OS X 10.10 Guide

Here's what I did to get things working.

1. Install Xcode 6

Yep, over at: https://developer.apple.com

2. Install the Command Line Tools (CLT)

@stestaub
stestaub / schema_format.rake
Created July 31, 2013 01:27
Add this to lib/tasks to all rake tasks working again with schema_format :sql and postgis database adapter
#some hacks to get postgis adapter to work with schema_type sql
require 'rgeo/active_record/task_hacker'
::RGeo::ActiveRecord::TaskHacker.modify('db:structure:dump', nil, 'postgis') do |config_|
set_psql_env(config_)
filename_ = ::File.join(::Rails.root, "db/#{::Rails.env}_structure.sql")
search_path_ = config_["schema_search_path"].to_s.strip
search_path_ = search_path_.split(",").map{ |sp_| sp_.strip }
search_path_.delete('postgis')
@developernotes
developernotes / changelog.sh
Created July 5, 2012 20:45
Display a simple changelog between the last two tags in a Git repository
#! /usr/bin/env sh
firstTag=$(git tag | sort -r | head -1)
secondTag=$(git tag | sort -r | head -2 | awk '{split($0, tags, "\n")} END {print tags[1]}')
echo "Changes between ${secondTag} and ${firstTag}\n"
git log --pretty=format:' * %s' ${secondTag}..${firstTag}

Different services I can suggest when a non-tech friend or family member asks me how they can cheaply make a website and possibly use it to sell stuff online.

Website Hosting

@donpark
donpark / gist:870585
Created March 15, 2011 10:53
node.js crypto notes

While this note is useful for achieving compatibility with non-node.js crypto code, it contains implementation details which maybe outdated in the near future. Beware.

key argument

key arguments are expected to be binary strings which is bytes packed as chararacter codes of a string.

What this means is that only lower byte of each character will be used.

crypto.createCipher and crypto.createDecipher