Skip to content

Instantly share code, notes, and snippets.

Logan Koester logankoester

Block or report user

Report or block logankoester

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
st0012 /
Last active Jul 27, 2019
Things to visit in Taipei

Places to go

  • Taipei 101
  • Tamsui
  • National Palace Museum
  • Shi-men Ting

Nigh markets

  • Tonghua Night Market - my favorite
    • There are some great bars nearby!
stevenharman /
Last active Jul 26, 2019
Heroku Release Phase script for managing Rails DB migrations, and playing nice with Review Apps and postdeploy scripts

Heroku Release Phase + Review Apps + Rails

This is a simplified, but fairly thorough, set of scripts and configuration to enable Heroku Release Phase for Rails apps. Further, this particular set up plays nicely with Heroku Review Apps in that the release phase script will:

  1. Fail, loudly, if the DB does not yet exist.
  2. Load the DB schema if the current schema version (as determined by bin/rails db:version) is 0.
  3. Run DB migrations otherwise.

For a "normal" app that usually means it will run the DB migrations.

shwaydogg /
Last active Jul 17, 2016
LetsEncrypt for Modulus Standalone Cetificate only Process

SETUP (nothing new here, it's from the docs)

On another server you control:

$ git clone

$ cd letsencrypt

$ ./letsencrypt-auto

kozo002 / jquery.brightness.js
Created Oct 3, 2013
Get brightness from background color with jQuery
View jquery.brightness.js
jQuery.fn.brightness = function() {
var bg_color, rgba, y;
bg_color = this.css('background-color');
if ((bg_color != null) && bg_color.length) {
rgba = bg_color.match(/^rgb(?:a)?\(([0-9]{1,3}),\s([0-9]{1,3}),\s([0-9]{1,3})(?:,\s)?([0-9]{1,3})?\)$/);
if (rgba != null) {
if (rgba[4] === '0') {
if (this.parent().length) return this.parent().brightness();
} else {
y = 2.99 * rgba[1] + 5.87 * rgba[2] + 1.14 * rgba[3];
svallory / extract_clone_all_script.js
Last active Dec 12, 2015
Generate shell script to clone all your repositories, or a configured subset of them from your GitHub Dashboard.
View extract_clone_all_script.js
// Instructions:
// 1. Navigate to you GitHub dashboard, either ( or{org_name}
// 2. Click on "All repositories" or "Show N more repositories" to show all your repos
// 3. Open Firebug console, and paste this script. Optionally, change the options below
// 4. Run and have fun
var options = {
origin: "all", // can be: source, fork or all
visibility: "all", // can be: public, private or all
showInNewWindow: true

Wizard Island 2012

We will be camping Friday and Saturday night at sites 87 & 88 on Lake George's Long Island, one of the southernmost islands 4.41 miles by kayak from the Village.

Date Friday September 21st - Sunday September 22nd

Cost $98/person

Limit 8 wizards

croaky /
Created Mar 16, 2012 — forked from michaeldauria/gist:2048022
Migrate from Copycopter 1.0 (hosted by thoughtbot) to Copycopter 2.0 (open source, deploy your own instance)

Use the latest version of the copycopter_client gem:

gem 'copycopter_client', '2.0.0'

Export your published drafts from

RAILS_ENV=production bundle exec rake copycopter:export

This will create a config/locales/copycopter.yml file.

logankoester / rails.vim
Created Oct 4, 2011
Useful Rails.vim macros
View rails.vim
" Factories and Configuration
Rnavcommand config config -suffix=.yml -default=application
Rnavcommand factory spec/factories test/factories -suffix=.rb -default=model()
" Backbone
Rnavcommand bmodel app/assets/javascripts/backbone/models -default=model()
Rnavcommand bview app/assets/javascripts/backbone/views
" Apotomo Widgets (Cells)
Rnavcommand widget app/widgets -suffix=_widget.rb
cmonyuk / gist:868882
Created Mar 14, 2011
PHOTON Text Flyer
View gist:868882
Saturday April 30, 2011
Wizard Crew Promotions proudly presents
*** PHOTON ***
An Immersive Visual Experience
Wizard Crew is back with our Spring event!
If you enjoyed TECHNOLUST, Back2Bassikz, and Snowmageddon last year, you won't want to miss this.
Musical Performances by
ioseb / gist:69058
Created Feb 23, 2009
JavaScript array chunk function
View gist:69058
function arrayChunk(array, size) {
var start = 0, result = [], chunk = [];
while((chunk = array.slice(start, start += size)).length) {
return result;
You can’t perform that action at this time.