Skip to content

Instantly share code, notes, and snippets.

View mgingras's full-sized avatar
👨‍💻
making magic

Martin Gingras mgingras

👨‍💻
making magic
View GitHub Profile
@mgingras
mgingras / keybase.md
Created July 26, 2016 16:04
Keybase proof

Keybase proof

I hereby claim:

  • I am mgingras on github.
  • I am mpg (https://keybase.io/mpg) on keybase.
  • I have a public key ASDAxrlLh0ir9cdOC5EVUB_hAXiajRFHdMkI3vcip2VLzQo

To claim this, I am signing this object:

@mgingras
mgingras / gevent-ssl-socket.py
Created October 21, 2015 05:36
Create gevent ssl socket for high throughput requests on api endpoints
import re
import gevent
from gevent import socket, ssl
def verify_ssl(url):
if url.find('https://') == -1:
raise Exception('Expects https url for ssl connection')
def split_url_into_host_and_path(url):
@mgingras
mgingras / osx-for-hackers.sh
Last active August 27, 2015 15:40 — forked from brandonb927/osx-for-hackers.sh
OSX for Hackers: Yosemite Edition. This script tries not to be *too* opinionated and any major changes to your system require a prompt. You've been warned. Also, please don't email me about this script, my poor inbox...
#!/bin/sh
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'