Skip to content

Instantly share code, notes, and snippets.

@mgedmin
mgedmin / StartSSL.md
Last active May 22, 2020
Free StartSSL.com SSL certificate HOWTO
View StartSSL.md

How to get a free StartSSL.com SSL certificate

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

This has been updated to use SHA256 certificates.

Start

  1. Go to http://www.startssl.com/
  2. Click on 'Control Panel'
@jeremiahsnapp
jeremiahsnapp / MITM -SSL-Proxies.md
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.
View MITM -SSL-Proxies.md

HTTP(S) specific MITM SSL Proxies

mitmproxy

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
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: http://stackoverflow.com/a/10120221/81769
// 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
ctalkington / Gemfile
Last active Oct 12, 2020
Nginx, Sinatra, and Puma.
View Gemfile
source :rubygems
gem "puma"
gem "sinatra"
@chrislkeller
chrislkeller / README.md
Last active Mar 18, 2020
Displaying data from a flat JSON file on a Handlebars.js template file rendered with AJAX.
View README.md

Demo: ajax-handlebars

This repo's location has changed.

View a.md

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
turicas / mdb2sql.sh
Created May 4, 2012
Convert a MDB (Access) file to SQL
View mdb2sql.sh
#!/bin/bash
# Convert a MDB file (Access) to SQL
# Needs mdbtools[http://mdbtools.sourceforge.net/]
# run 'aptitude install mdbtools' on Debian/Ubuntu
# Created by Álvaro Justen <https://github.com/turicas>
# License: GPLv2
mdb=$1
sql=$2
@NZKoz
NZKoz / aa_instructions.md
Created May 2, 2012
Back Up All Your Gmail
View aa_instructions.md
  • Install getmail (aptitude install getmail4)
  • Set Up Your Imap Server (tl;dr)
  • getmail
  • ruby date_based_archive.rb ~/Maildir/.Archive
@wycats
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
erikh / hack.sh
Created Mar 31, 2012 — forked from DAddYE/hack.sh
OSX For Hackers
View hack.sh
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
You can’t perform that action at this time.