This file contains hidden or 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 | |
from m2wsgi.io.standard import WSGIHandler | |
from mercurial import demandimport; demandimport.enable() | |
from mercurial.hgweb.hgwebdir_mod import hgwebdir | |
app = hgwebdir('/path/to/hgweb.config') | |
handler = WSGIHandler(app, "tcp://127.0.0.1:9999") | |
handler.serve() |
This file contains hidden or 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 | |
# Replacement for raw "ksu" in kerberized environments; | |
# behaves more like "su -", and retains xauth data. | |
if [ $# -lt 1 ] | |
then | |
echo "Usage: `basename $0` <target user> [ <command> [ <arg> ] ... ]" | |
exit 2 | |
fi |
This file contains hidden or 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
# Append to /root/.bashrc | |
[ ! -d $HOME/.history ] && mkdir $HOME/.history | |
set -- `/usr/bin/who -m` | |
HISTFILE="$HOME/.history/`/bin/date +%Y-%m-%d.%T`.`/bin/hostname -s`.$$.$1" |
NewerOlder