Skip to content

Instantly share code, notes, and snippets.

;; -*- mode: emacs-lisp -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Configuration Layers declaration."
(setq-default
;; List of additional paths where to look for configuration layers.
;; Paths must have a trailing slash (ie. `~/.mycontribs/')
dotspacemacs-configuration-layer-path '()
@avoine
avoine / countries.json
Created May 21, 2014 13:40
countries.json
{
"data": [
{"text": "Afghanistan", "id": "AF"},
{"text": "Åland Islands", "id": "AX"},
{"text": "Albania", "id": "AL"},
{"text": "Algeria", "id": "DZ"},
{"text": "American Samoa", "id": "AS"},
{"text": "AndorrA", "id": "AD"},
{"text": "Angola", "id": "AO"},
{"text": "Anguilla", "id": "AI"},
@avoine
avoine / reviewboard.txt
Last active August 29, 2015 14:00
requirements.txt for reviewboard
django-haystack
docutils
markdown>=2.3.1
mimeparse>=0.1.3
paramiko>=1.12
Pygments>=1.6
python-dateutil==1.5
python-memcached
pytz
recaptcha-client
@avoine
avoine / fabfile.py
Created March 1, 2013 16:20
Fabric plugin for juju
# Mostly from django-fab-deploy
import os
import sys
from datetime import datetime
from subprocess import Popen, PIPE
import yaml
from fabric.api import env, run, sudo, task
@avoine
avoine / gist:2912777
Created June 11, 2012 21:19
Bridge to send rsyslog logs to sentry (http://www.getsentry.com)
#!/usr/bin/env python
#
# Copyright 2012 Patrick Hetu <patrick.hetu@gmail.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
@avoine
avoine / piwik_export.py
Created November 3, 2011 15:18
Piwik cvs exporter
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
import csv
from optparse import OptionParser
import urllib
import httplib
import urlparse