Skip to content

Instantly share code, notes, and snippets.

View biggers's full-sized avatar

Mark Biggers biggers

View GitHub Profile
@gregorynicholas
gregorynicholas / dev_appservers.yaml
Last active March 28, 2016 20:08
google appengine dev_appserver commands automated with paver.
default:
args:
url: localhost
port: 8888
address: 0.0.0.0
partition: s
flags:
- use_sqlite
- high_replication
- allow_skipped_files
@zacharyvoase
zacharyvoase / django_pave.py
Created May 22, 2009 22:49
Run Django management commands with a Paver task.
# -*- coding: utf-8 -*-
# django_pave.py - Run Django management commands with a Paver task.
#
# It’s simple really; just run `paver manage syncdb`, or
# `paver manage runserver`, or indeed any Django management command. You can
# also define Paver tasks which load the Django settings before execution.
#
# Copyright (c) 2009 Zachary Voase <zacharyvoase@me.com>
#
# Permission is hereby granted, free of charge, to any person
from __future__ import with_statement # python2.5
"""
Project root holds virtual environment
"""
from fabric.api import *
import os.path
# globals
env.project_name = 'myproject'
@ingenieroariel
ingenieroariel / fabfile.py
Created November 4, 2010 02:57
Geonode Amazon EC2 fabfile
# easy_install boto fabric
# The only pre-req is having created a keypair via the amazon web interface
#
# Usage:
# fab geonode
from fabric.api import env, sudo, run, cd
import os, time, boto
import ConfigParser
@jokull
jokull / gist:5639728
Created May 23, 2013 21:51
Cache a python package from PyPI on S3
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""pycache -- cache a python package from PyPI on S3.
A simple script to collect a cache of packages locally and sync them up to an S3 bucket, using directories as namespaces so that different projects can have different dependencies.
This is just about the simplest thing that could possibly work.
"""
import warnings
warnings.filterwarnings('ignore')
@zacharyvoase
zacharyvoase / pavement.py
Created May 26, 2009 05:02
pavement.py file for Melange.
# -*- coding: utf-8 -*-
"""
Example Usage
=============
The following commands can be run from the root directory of the Mercurial
repo. To run ``paver``, however, you'll need to do ``easy_install Paver``.
Most of the following commands accept other arguments; see ``command --help``
for more information, or ``paver help`` for a list of all the valid commands.
@biggers
biggers / x11vnc.sh
Created August 19, 2016 14:37
x11vnc service start-up script
#!/bin/sh
VNC_SERVER=/usr/bin/x11vnc
VNC_DISPLAY=:0
LOG_FILE=/tmp/x11vnc-run.log
case "$1" in
start|restart)
killall ${VNC_SERVER}
@biggers
biggers / network_mgr_wired_mgmt_recipe.sh
Created January 18, 2017 14:09
Enable wired-interfaces (incl VPN) to be managed by systemd - Ubuntu Linux 16+
# NetworkManager should manage wired interfaces!
# Linux Mint 18.x (Ubuntu 16.04)
# REF: "fixing VPN problem in Ubuntu",
# http://blog.wensheng.org/search?updated-min=2015-01-01T00:00:00-06:00&updated-max=2016-01-01T00:00:00-06:00&max-results=5
aptitude install etckeeper
git log
nmcli c # NOTE: no wired-interface controlled
emacs -nw /etc/NetworkManager/NetworkManager.conf
@biggers
biggers / ansible-tagged-install.sh
Last active January 18, 2017 14:10
Installing Ansible from 'git source' -- by tagged-release
## better, working "shell-recipe" for installing a tagged
## Ansible release, from Git source
## https://github.com/ansible/ansible/tags
sudo aptitude install python-yaml python-jinja2 python-paramiko
cd ~/git/Python
tag_name='v1.9.4-1'
git clone git://github.com/ansible/ansible.git --recursive
@biggers
biggers / Makefile.docker
Created March 22, 2016 15:46
GNU Makefile for docker-compose work
## -*- makefile -*-
## biggers@utsl.com, Mark Biggers
## GNU Makefile for docker-compose build & run of a Python or other Project
##
## REFs:
## https://docs.docker.com/compose/reference/
## https://github.com/docker/compose/releases
##