- Update HISTORY.rst
- Update version number in
my_project/__init__.py
- Update version number in
setup.py
- Run the tests:
python setup.py test
tox
- Commit the changes:
package main | |
import ( | |
"log" | |
"math" | |
"runtime" | |
"time" | |
as "github.com/aerospike/aerospike-client-go" | |
) |
#!/usr/bin/env python | |
"""A simple python script template. | |
""" | |
import os | |
import sys | |
import argparse |
my_project/__init__.py
setup.py
python setup.py test
tox
# Redirect STDOUT/STDERR into syslog | |
exec > >(logger -p user.info) 2> >(logger -p user.warn) |
SSH agent forwarding is great. It allows you to ssh from one server to | |
another all the while using the ssh-agent running on your local | |
workstation. The benefit is you don't need to generate ssh key pairs | |
on the servers you are connecting to in order to hop around. | |
When you ssh to a remote machine the remote machine talks to your | |
local ssh-agent through the socket referenced by the SSH_AUTH_SOCK | |
environment variable. | |
So you the remote server you can do something like: |
############################################################################### | |
# Copyright 2012 Jakub Jirutka. All rights reserved. | |
# | |
# "THE KOFOLA-WARE LICENSE" (Revision 1): | |
# Jakub Jirutka originally wrote this file. As long as you retain this notice you | |
# can do whatever you want with this stuff. If we meet some day, and you think | |
# this stuff is worth it, you can buy me a Kofola in return. <[email protected]> | |
# | |
############################################################################### |
#! /bin/sh | |
# ------------------------------------------------------------------------------ | |
# SOME INFOS : fairly standard (debian) init script. | |
# Note that node doesn't create a PID file (hence --make-pidfile) | |
# has to be run in the background (hence --background) | |
# and NOT as root (hence --chuid) | |
# | |
# MORE INFOS : INIT SCRIPT http://www.debian.org/doc/debian-policy/ch-opersys.html#s-sysvinit | |
# INIT-INFO RULES http://wiki.debian.org/LSBInitScripts | |
# INSTALL/REMOVE http://www.debian-administration.org/articles/28 |
Look at LSB init scripts for more information.
Copy to /etc/init.d
:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)
This gist assumes:
# rsyslog v5 configuration file | |
#### MODULES #### | |
$ModLoad imuxsock # provides support for local system logging (e.g. via logger command) | |
$ModLoad imklog # provides kernel logging support (previously done by rklogd) | |
#$ModLoad immark # provides --MARK-- message capability | |
# Provides UDP syslog reception | |
$ModLoad imudp |