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
auto wlan0 | |
mapping wlan0 | |
script /usr/local/sbin/wlan-detect.sh | |
map HomeAP wlan0-home | |
map OfficeAP wlan0-office | |
iface wlan0-home inet dhcp | |
wpa-ssid HomeAP | |
wpa-psk HomeAccessPointPassphrase | |
wpa-key-mgmt WPA-PSK |
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/bash | |
# | |
# NAME | |
# fal - wrapper script to run several concurrent commands and gather their | |
# output into one log file. fal is an abbreviation for "fork, aggregate, log" | |
# | |
# SYNOPSIS | |
# fal -c count [-l logfile] [-t] [-p pipe] [--] command [command_args] | |
# | |
# OPTIONS |
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 | |
RMFILE_LOG=`mktemp` | |
RMFILE_ERR=`mktemp` | |
RMDIR_LOG=`mktemp` | |
RMDIR_ERR=`mktemp` | |
find ~ftp/incoming -mindepth 1 -mount -type f -atime +7 -exec rm -vf {} \; >$RMFILE_LOG 2>$RMFILE_ERR | |
find ~ftp/incoming -depth -mindepth 1 -mount -type d -empty -exec rmdir -v {} \; >$RMDIR_LOG 2>$RMDIR_ERR | |
echo "Cleaning FTP incoming directory:" |
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 -*- | |
# Script generates statistics table for specified direcories sorted by type(by | |
# default), overall files size or files count. This script can also sort files | |
# into the directories by type using hardlinks(default) or softlinks. Type | |
# determination is done by `file` utility. | |
# | |
# To get help just run script with wrong parameters. | |
import os |
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
<script src="http://gist.github.com/324678.js?file=sample.html"></script> |
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
[jollyroger@gamma:buildbot-0.8.1]% sudo invoke-rc.d buildbot-master start [20:37:47] | |
Starting buildbot-master: twistd | |
Starting foo:done. | |
Starting bar:done. | |
[jollyroger@gamma:buildbot-0.8.1]% sudo invoke-rc.d buildbot-master reload [20:37:50] | |
Reloading buildbot-master: twistd | |
foo:done. | |
bar:done. | |
[jollyroger@gamma:buildbot-0.8.1]% sudo invoke-rc.d buildbot-master restart [20:37:54] | |
Restarting buildbot-master: twistd |
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 | |
# Subversion post-commit hook. | |
# | |
# This script will update files on the development web-server transparently | |
# without any files to be deleted before sync. | |
REV=$2 | |
REPOS=$1 | |
/usr/share/buildbot/contrib/svn_buildbot.py --repository "$REPOS" --revision "$REV" --bbserver 123.123.123.123 --bbport 9989 |
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
''' | |
Support for APT (Advanced Packaging Tool) | |
''' | |
# Import python libs | |
import os | |
import re | |
# Import Salt libs | |
import salt.utils |
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
""" | |
Custom pillar module to retrieve certificates and private keys based on the | |
server id. | |
Configuring the CA ext_pillar | |
============================= | |
The CA ext_pillar configuration needs a path to the PKI directory and a Pillar | |
variable name to populate the data into. In the end ext_pillar configuration | |
will look like: |
OlderNewer