Skip to content

Instantly share code, notes, and snippets.

View maxjustus's full-sized avatar

Max Justus Spransy maxjustus

  • People With Jetpacks
  • Los Angeles, CA
View GitHub Profile
@maxjustus
maxjustus / openssl_tls_1.2.patch
Last active March 15, 2017 20:58 — forked from kriansa/openssl_tls_1.2.patch
Source patch to add support to TLS 1.1 and 1.2 to Ruby 1.9.3
diff --git a/ext/openssl/ossl_ssl.c b/ext/openssl/ossl_ssl.c
--- a/ext/openssl/ossl_ssl.c
+++ b/ext/openssl/ossl_ssl.c
@@ -107,6 +107,18 @@
OSSL_SSL_METHOD_ENTRY(TLSv1),
OSSL_SSL_METHOD_ENTRY(TLSv1_server),
OSSL_SSL_METHOD_ENTRY(TLSv1_client),
+#if defined(HAVE_TLSV1_2_METHOD) && defined(HAVE_TLSV1_2_SERVER_METHOD) && \
+ defined(HAVE_TLSV1_2_CLIENT_METHOD)
+ OSSL_SSL_METHOD_ENTRY(TLSv1_2),
@maxjustus
maxjustus / gist:9339313
Last active August 29, 2015 13:56 — forked from sdliv/gist:9339247
class CreateResumeDesigns < ActiveRecord::Migration
def up
change_table :resume_designs do |t|
t.string :purpose
end
end
def down
end
end
describe ".inc_num_runs_by_brand" do
let (:upc_master) {FactoryGirl.create(:upc_master_with_sizes)}
it "increments the num runs correctly" do
UpcMaster.inc_num_runs_by_brand(upc_master.sizes.first.brand)
upc_master.reload.num_runs.should == 1
end
end
@maxjustus
maxjustus / .vimrc
Created September 28, 2012 17:04 — forked from brycemcd/.vimrc
tmux and vim integration
command! -nargs=1 Silent
\ | execute ':silent !'.<q-args>
\ | execute ':redraw!'
" test the current file in the next tmux window
nmap <leader>tt :Silent tmux send-keys -t 1 "rspec %" C-m <cr>
" test the line from user input
nmap <leader>tl :Silent tmux send-keys -t 1 "rspec %:<C-r>=line('.')<cr>" C-m <cr>
add "add bitty account" link in networks index page
problem with twitter lists on twitter account (won't load)
followers button on twitter account (won't load?)
remove quick reply actions (pictures, link) until we have them working
loader on timeline network nav change (wtf does this mean?)
performance on loading a single twitter account (can't really be helped, api request bound..)
add ok/apply button on report date select
padding on left of users index
show on report clicks (load info in bottom) (wtf does this mean?)
all external links in system should load to new page using target="_blank" (fb post links don't do this atm)