Skip to content

Instantly share code, notes, and snippets.

tony / pillar settings.sls
Created Feb 12, 2014
php5 fcgi example (salt state + template config file)
View pillar settings.sls
username: tony
fullname: Tony N
mysql-version: 5.5
mysql-root-pw: root
{%- if grains['os'] == 'MacOS' %}
etc_dir: /opt/local/etc/
var_dir: /opt/local/var/
logs_dir: /opt/local/var/log/
tony /
Created Apr 23, 2014
Configure vim, ncmpcpp
./configure --with-curl --with-taglib --enable-unicode --enable-outputs --enable-visualizer --enable-clock
tony / Application.root.js
Last active Aug 29, 2015 — forked from isochronous/Application.root.js
Updated for Backbone 1.1, Marionette 1.8.x. Update to use wreqr, bindTo -> listenTo
View Application.root.js
* Creates the primary `Marionette.Application` object that runs the admin framework. Provides a central point
* from which all other sub-applications are started, shown, hidden, and stopped.
tony /
Last active Aug 29, 2015 — forked from ojii/
messages_request() accepts args, kwargs
from contextlib import contextmanager
from import BaseStorage, Message
from django.test.client import RequestFactory
from django.utils.decorators import method_decorator
class TestMessagesBackend(BaseStorage):
def __init__(self, request, *args, **kwargs):
self._loaded_data = []
super(TestMessagesBackend, self).__init__(request, *args, **kwargs)
tony / docutils_to_gh.rst
Last active Aug 29, 2015
docutils migrations to github
View docutils_to_gh.rst
tony /
Created Feb 16, 2013
Displayport xrandr / / arandr issue. Base 0 not found. Fix is by Mihamina Rakotomandimby. More details in first comment below. This fixed displayport connections for me on Ubuntu 12.04 on a Thinkpad X230 with Minidock 3.
# ARandR -- Another XRandR GUI
# Copyright (C) 2008 -- 2011 chrysn <>
# 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,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
tony / readthedocs-uwsgi.rst
Last active Dec 29, 2015
Using readthedocs uwsgi local
View readthedocs-uwsgi.rst

If the virtualenv is in checkouts/ (before the readthedocs module), from inside of checkouts:

$ uwsgi_python \
--chdir $PWD \
--processes 4 --threads 2 \
--socket --http-socket \
--stats \
tony /
Created Jan 23, 2014
Scrape Chinese Radical information from HTML tables on the internet using requests and pandas.
#!/usr/bin/env python
# -*- coding: utf8 -*-
"""Pull Chinese Radical information from HTML tables on the internet.
:license: MIT License
:author: Tony Narlock
- lxml, html5lib, beautifulsoup4
tony / hi2.c
Created Jun 15, 2016
what's the story with AS_CFI_PSEUDO_OP tests
View hi2.c
#include <stdio.h>
// run: clang -S hi2.c
int main(){
tony /
Last active Aug 3, 2016
oxygine repo restructure

clone oxygine

❯ git clone oxygine

separate examples into oxygine-examples repo

add remote to new repo