Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python
# -*- coding: utf-8 -*-
""" Use in i3wm with:
Save as screeshot.py somewhere into your PATH
bindsym --release Print exec --no-startup-id screenshot.py
"""
import os
pre_req:
do_something
SETUP_TARGETS:= thing1 thing2 thing3 thing4
thing1:
do_thing_1
thing2:
do_thing_2
tar -xvzf es-django-example.tar.gz
cd es-django-example
docker load < /home/example.tar
docker load < /home/elasticsearch.tar
docker-compose up -d
@fxdgear
fxdgear / malloc_readlink.patch
Last active September 29, 2015 10:11 — forked from rdnelson/malloc_readlink.patch
Checkinstall Malloc Patch
@fxdgear
fxdgear / recurly_token.py
Last active August 29, 2015 14:27
python recurly token generator
import os
import requests
def get_recurly_token(billing_data):
billing_data.update(**{
'version': "3.1.0",
'key': os.environ.get('RECURLY_PUBLIC_KEY')
})
recurly_js_url = "https://api.recurly.com/js/v1/token"
@fxdgear
fxdgear / utmb_list.markdown
Last active August 29, 2015 14:04
UTMB packing list

UTMB Required Gear List

[ ] Mobile Phone

  • buy a flip phone in france

[x] Personal Cup

  • I have this cup in my salomon pack

[x] 2 headlamps

  • I have 2 revolt lights

Keybase proof

I hereby claim:

  • I am fxdgear on github.
  • I am fxdgear (https://keybase.io/fxdgear) on keybase.
  • I have a public key whose fingerprint is 0C65 F603 3CD7 39C2 F76A 2556 EE07 595D 0CB2 9390

To claim this, I am signing this object:

@fxdgear
fxdgear / gist:10486398
Created April 11, 2014 17:31
Montreal Beer List
  • Benelux: the official office of the Montréal-Python user group
  • 3 Brasseurs: 4 locations, one of which is pretty damn close to the venue
  • Cheval-Blanc: unfancy neighborhood brewery with lots of experimental brews and a large bottle selection
  • St-Bock: a bit too experimental at times but they won several gold medals at the International Beer Festival
  • L'Amère à Boire: kind of small but very good brews
  • Brutopia: first brewering in Montréal on a Ringwood system, rumors have it that they are still on the Ringwood yeast
  • Reservoir: the owner is the only National level certified beer judge in Montréal, they have the best food of all the breweries in town but having a full meal there could be prohibitively expensive
  • Dieu du Ciel: some of the best brews in town
  • Broue Pub Brouhaha: this one is a bit of a hike but they have good beer, Salsa dancing nights, and cheesy cinema nights
  • McAuslan: quite a hike but that's the other Ringwood brewery and their stout is featured in Michael Jackson's book of the wor
* Benelux: the official office of the Montréal-Python user group
* 3 Brasseurs: 4 locations, one of which is pretty damn close to the venue
* Cheval-Blanc: unfancy neighborhood brewery with lots of experimental brews and a large bottle selection
* St-Bock: a bit too experimental at times but they won several gold medals at the International Beer Festival
* L'Amère à Boire: kind of small but very good brews
* Brutopia: first brewering in Montréal on a Ringwood system, rumors have it that they are still on the Ringwood yeast
* Reservoir: the owner is the only National level certified beer judge in Montréal, they have the best food of all the breweries in town but having a full meal there could be prohibitively expensive
* Dieu du Ciel: some of the best brews in town
* Broue Pub Brouhaha: this one is a bit of a hike but they have good beer, Salsa dancing nights, and cheesy cinema nights
* McAuslan: quite a hike but that's the other Ringwood brewery and their stout is featured in Michael Jackson's book of the wor