Skip to content

Instantly share code, notes, and snippets.

# #########################################################################
# This bash script adds tab-completion feature to django-admin.py and
# manage.py.
#
# Testing it out without installing
# =================================
#
# To test out the completion without "installing" this, just run this file
# directly, like so:
#
@pyghassen
pyghassen / supervisor.conf
Last active August 29, 2015 14:03
/etc/init/supervisor.conf
description "supervisor"
start on runlevel [2345]
stop on runlevel [!2345]
setuid myuser
respawn
exec /usr/local/bin/supervisord --nodaemon --configuration /etc/supervisord.conf
@pyghassen
pyghassen / nginx_modsite
Created February 13, 2014 22:03
a2 like command to enable and disable nginx websites.
#!/bin/bash
##
# File:
# nginx_modsite
# Description:
# Provides a basic script to automate enabling and disabling websites found
# in the default configuration directories:
# /etc/nginx/sites-available and /etc/nginx/sites-enabled
# For easy access to this script, copy it into the directory:
print("hello world")