Skip to content

Instantly share code, notes, and snippets.

View xguse's full-sized avatar

Gus Dunn xguse

View GitHub Profile
| Loading Grails 2.2.5
| Configuring classpath
Cannot find plugin descriptor for path '/home/gus/src/OLF_upstream/modules/OpenLabBackend'.
| Configuring classpath.
| Environment set to production
| Environment set to production.
| Environment set to production..
| Environment set to production...
| Environment set to production....
@xguse
xguse / .zshrc
Last active August 29, 2015 14:05
# Path to your oh-my-zsh installation.
ZSH=$HOME/.oh-my-zsh/
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="bureau" #"candy" #"agnoster"
# Example aliases
@xguse
xguse / html_ipython_cell_magic.py
Created September 9, 2014 13:25
From http://localhost:9999/louise/notebooks/YALE/installs/2014-09-08_setup_UNIPROT_PFAM_databases.ipynb
%%html
<iframe src=http://www.medcomp.medicina.unipd.it/Argot2/help/batch.html width=900 height=650></iframe>
#!/usr/bin/env python
import re
import fileinput
def this_line_is_useless(line):
useless_es = [
'BEGIN TRANSACTION',
'COMMIT',
'sqlite_sequence',
@xguse
xguse / flask-upload
Last active August 29, 2015 14:06 — forked from dAnjou/flask-upload
<VirtualHost *>
ServerName example.com
WSGIDaemonProcess www user=max group=max threads=5
WSGIScriptAlias / /home/max/Projekte/flask-upload/flask-upload.wsgi
<Directory /home/max/Projekte/flask-upload>
WSGIProcessGroup www
WSGIApplicationGroup %{GLOBAL}
Order deny,allow
@xguse
xguse / Backend.py
Last active August 29, 2015 14:07 — forked from bpeck/Backend.py
import multiprocessing
import multiprocessing.queues
from flask import Flask
from flask import request
class Backend(object):
def __init__(self, command_queue, host='0.0.0.0', port=8000, debug=True):
self.command_queue = command_queue
self.flask_app = Flask('Backend')
self.flask_app.add_url_rule('/', "handleRequest", self.handleRequest, methods=['GET'])
@xguse
xguse / install_ruby_rvm.sh
Last active August 29, 2015 14:07
Install the ruby RVM on a mac
#!/bin/bash
echo ''
echo ''
echo ''
echo "This script automates the instructions found on this webpage: http://code.tutsplus.com/tutorials/how-to-install-ruby-on-a-mac--net-21664"
echo ''
echo ''
echo ''
@xguse
xguse / pacman.conf
Last active August 29, 2015 14:10
pacman.conf
#
# /etc/pacman.conf
#
# See the pacman.conf(5) manpage for option and repository directives
#
# GENERAL OPTIONS
#
[options]
# The following paths are commented out with their default values listed.
# Ensure we're in a virtualenv.
if [ "$VIRTUAL_ENV" == "" ]
then
echo "ERROR: not in a virtual environment."
exit -1
fi
# Setup variables.
CACHE="/tmp/install-pygtk-$$"
@xguse
xguse / pip_freeze_2014-12-08.txt
Created December 8, 2014 14:41
pip freeze 2014-12-08
gus at jupiter in ~/Dropbox/repos/git (py278)
$ pip freeze
Cython==0.21
Factory==1.2
Fiona==1.4.4
Flask==0.10.1
Flask-WTF==0.10.2
GDAL==1.11.1
Jinja2==2.7.3
Mako==1.0.0