Skip to content

Instantly share code, notes, and snippets.

View jordanandree's full-sized avatar

Jordan Andree jordanandree

View GitHub Profile
@jordanandree
jordanandree / README.md
Created March 1, 2017 18:20 — forked from magnetikonline/README.md
Setting Nginx FastCGI response buffer sizes.
@jordanandree
jordanandree / tilt
Last active August 29, 2015 14:19
tilt
NoMethodError: undefined method `force_encoding' for nil:NilClass
/Users/jordanandree/.rvm/gems/ruby-2.2.0/gems/tilt-1.4.1/lib/tilt/template.rb:289:in `ensure in binary'
/Users/jordanandree/.rvm/gems/ruby-2.2.0/gems/tilt-1.4.1/lib/tilt/template.rb:289:in `binary'
/Users/jordanandree/.rvm/gems/ruby-2.2.0/gems/tilt-1.4.1/lib/tilt/template.rb:279:in `extract_magic_comment'
/Users/jordanandree/.rvm/gems/ruby-2.2.0/gems/tilt-1.4.1/lib/tilt/template.rb:275:in `extract_encoding'
/Users/jordanandree/.rvm/gems/ruby-2.2.0/gems/tilt-1.4.1/lib/tilt/template.rb:191:in `precompiled'
/Users/jordanandree/.rvm/gems/ruby-2.2.0/gems/tilt-1.4.1/lib/tilt/erb.rb:57:in `precompiled'
/Users/jordanandree/.rvm/gems/ruby-2.2.0/gems/tilt-1.4.1/lib/tilt/erb.rb:104:in `precompiled'
/Users/jordanandree/.rvm/gems/ruby-2.2.0/gems/tilt-1.4.1/lib/tilt/template.rb:245:in `compile_template_method'
/Users/jordanandree/.rvm/gems/ruby-2.2.0/gems/tilt-1.4.1/lib/tilt/template.rb:240:in `compiled_method'
body {
margin-top: 80px;
}
#banner-wrapper {
display: block !important;
}
#navigation-top { position: fixed; top: 0; left: 0; z-index: 5; }
#main-navigation {
@jordanandree
jordanandree / selectable_text_macos.patch
Last active August 29, 2015 14:16
selectable_text_macos.patch
From b0c7acf6c5ce127778f113041771d827defbc36d Mon Sep 17 00:00:00 2001
From: jordanandree <jordanandree at gmail.com>
Date: Wed, 11 Mar 2015 10:46:41 -0400
Subject: [PATCH] selectable text for pdfs on Mac OS
---
src/webpage.cpp | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/webpage.cpp b/src/webpage.cpp
@jordanandree
jordanandree / phantomjs_selectable_text.md
Created March 4, 2015 15:31
PhantomJS 1.9.8 - Selectable Text

There is a bug in PhantomJS on Mac OS X that doesn't render an HTML page as selectable text. It will be fixed in PhantomJS 2.0, so for now you'll have to apply a patch when installing with Homebrew.

First, update homebrew formulae:

$ brew update

If you already have PhantomJS installed, then remove it:

$ brew uninstall phantomjs Next, the PhantomJS formula needs to be edited to apply a patch that fixes native text rendering in Mac OS X:

Process: SoundCleod [31653]
Path: /Applications/SoundCleod.app/Contents/MacOS/SoundCleod
Identifier: sc.SoundCleod
Version: 0.17 (0.17)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: SoundCleod [31653]
User ID: 502
Date/Time: 2015-01-12 11:35:35.447 -0500
@jordanandree
jordanandree / ಠ_ಠ.rb
Created December 19, 2013 15:33
ಠ_ಠ
def ಠ_ಠ
puts "(╯°□°)╯︵ ┻━┻"
end
@jordanandree
jordanandree / background_images.html
Created November 8, 2012 18:08
Background Images
<head>
<style>
#email {
background-image:url("bg-image.jpg");
background-color:#336699;
}
</style>
</head>
<body>
<table background="bg-image.jpg" bgcolor="#336699" id="email">
@jordanandree
jordanandree / index.html
Created October 22, 2012 18:10
A CodePen by Jack Rugile. CSS3 Pseudo Sound Bars
<h1>CSS3 Pseudo Sound Bars</h1>
<div id="bars">
<div class="bar"></div>
<div class="bar"></div>
<div class="bar"></div>
<div class="bar"></div>
<div class="bar"></div>
<div class="bar"></div>
<div class="bar"></div>
<div class="bar"></div>
@jordanandree
jordanandree / Passenger 3.9.0 Error.txt
Created October 8, 2012 17:52
Passenger 3.9.0 Error
/Users/jordanandree/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/passenger-3.9.0/lib/phusion_passenger/loader_shared_helpers.rb:123:in `write': "\xE2" from ASCII-8BIT to UTF-8 (Encoding::UndefinedConversionError)
from /Users/jordanandree/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/passenger-3.9.0/lib/phusion_passenger/loader_shared_helpers.rb:123:in `puts'
from /Users/jordanandree/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/passenger-3.9.0/lib/phusion_passenger/loader_shared_helpers.rb:123:in `block (2 levels) in dump_envvars'
from /Users/jordanandree/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/passenger-3.9.0/lib/phusion_passenger/loader_shared_helpers.rb:122:in `each_pair'
from /Users/jordanandree/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/passenger-3.9.0/lib/phusion_passenger/loader_shared_helpers.rb:122:in `block in dump_envvars'
from /Users/jordanandree/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/passenger-3.9.0/lib/phusion_passenger/loader_shared_help