Skip to content

Instantly share code, notes, and snippets.

mgedmin /
Last active May 22, 2020
Free SSL certificate HOWTO

How to get a free SSL certificate

I'm writing this up from memory, so errors may appear.

This has been updated to use SHA256 certificates.


  1. Go to
  2. Click on 'Control Panel'
jeremiahsnapp / MITM
Last active Nov 1, 2020
Man In The Middle (MITM) SSL Proxies - Simple ways to see traffic between an SSL server and client in clear text.

HTTP(S) specific MITM SSL Proxies


mitmproxy is an excellent console app written in Python.

It is easy to use on Linux and OS X.

Use brew install mitmproxy to install it on OS X.

josheinstein / gist:5586469
Last active Dec 27, 2019
Handle back button issues with Twitter Bootstrap's tab component.
View gist:5586469
// Handle back button issues with Twitter Bootstrap's tab component.
// Based on:
// It has been changed to avoid the following side effects:
// - Switching tabs was being added to navigation history which is undesirable
// (Worked around this by using location.replace instead of setting the hash property)
// - Browser scroll position was lost due to fragment navigation
// (Worked around this by converting #id values to #!id values before navigating.)
$(document).ready(function () {
if (location.hash.substr(0,2) == "#!") {
ctalkington / Gemfile
Last active Oct 12, 2020
Nginx, Sinatra, and Puma.
View Gemfile
source :rubygems
gem "puma"
gem "sinatra"
chrislkeller /
Last active Mar 18, 2020
Displaying data from a flat JSON file on a Handlebars.js template file rendered with AJAX.

Demo: ajax-handlebars

This repo's location has changed.


This allows you to use the following video streaming services outside of the US from your Mac without having to use a proxy or VPN, so no big bandwidth issues:

  • Hulu / HuluPlus
  • CBS
  • ABC
  • MTV
  • theWB
  • CW TV
  • Crackle
  • NBC
turicas /
Created May 4, 2012
Convert a MDB (Access) file to SQL
# Convert a MDB file (Access) to SQL
# Needs mdbtools[]
# run 'aptitude install mdbtools' on Debian/Ubuntu
# Created by Álvaro Justen <>
# License: GPLv2
NZKoz /
Created May 2, 2012
Back Up All Your Gmail
  • Install getmail (aptitude install getmail4)
  • Set Up Your Imap Server (tl;dr)
  • getmail
  • ruby date_based_archive.rb ~/Maildir/.Archive
wycats / personality.rb
Created Apr 12, 2012
More technical details about the discussion at last nights meetup
View personality.rb
# Just wanted to clarify my points at the meetup last night.
# There were two different issues intertwined:
# (1) Whether to use extend or "include as extend"
# (2) When using "include as extend", what is the simplest way to achieve the goal?
# My personal opinion is that the answer to (1) is "extend", not "include as extend", but that
# is just my personal opinion. My answer to (2) is a more empirical question.
# Using the "extend" approach. Again, I personally prefer the simplicity of this approach, but
erikh /
Created Mar 31, 2012 — forked from DAddYE/
OSX For Hackers
#!/usr/bin/env sh
# This is script with usefull tips taken from:
# install it:
# curl -sL | sh
You can’t perform that action at this time.