This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
default: | |
args: | |
url: localhost | |
port: 8888 | |
address: 0.0.0.0 | |
partition: s | |
flags: | |
- use_sqlite | |
- high_replication | |
- allow_skipped_files |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import with_statement # python2.5 | |
""" | |
Project root holds virtual environment | |
""" | |
from fabric.api import * | |
import os.path | |
# globals | |
env.project_name = 'myproject' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- 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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
VNC_SERVER=/usr/bin/x11vnc | |
VNC_DISPLAY=:0 | |
LOG_FILE=/tmp/x11vnc-run.log | |
case "$1" in | |
start|restart) | |
killall ${VNC_SERVER} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## -*- 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 | |
## |
OlderNewer