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 | |
# Script to automate creating new OpenVPN clients | |
# The client cert and key, along with the CA cert is | |
# zipped up and placed somewhere to download securely | |
# | |
# H Cooper - 05/02/11 | |
# | |
# Usage: new-openvpn-client.sh <common-name> | |
# Set where we're working from |
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 | |
# Script to automate creating new apache2 virtual hosts. | |
# Logs go in /var/log/apache2/$SN | |
# DocRt is /var/www-vhosts/$SN | |
# SN = shortname -- used for directory names etc. | |
# DN = domainname -- used only in apache config file | |
# | |
# H Cooper - 18/10/06 | |
# |
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/perl -w | |
use strict; | |
use Net::Ping; | |
die "usage: $0 port hostname\n" unless(@ARGV == 2); | |
my $serv = shift @ARGV; | |
my $host = shift @ARGV; | |
my $p = Net::Ping->new("tcp", 30); |
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
moved into my main check_mk plugin repo... |
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
moved into main check_mk plugin repo.... |
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
moved into my main check_mk plugin repo... |
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/python | |
""" | |
A simple threaded caching HTTP proxy. | |
Hereward Cooper <[email protected]> | |
v0.1 | |
""" | |
LISTENPORT = 8000 | |
LISTENINT = '127.0.0.1' |
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 bash | |
# ciphertest.sh | |
# Hereward Cooper <[email protected]> - 6th Sept 2012 | |
# Report what ciphers are support by a given host | |
# Modifed from code found here: http://superuser.com/questions/109213/ | |
# Do we want to pause between each cipher? | |
DELAY=0 |
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 | |
# Hack to quickly save the running network config to sysconfig | |
DEV=eth0 | |
IPDATA=`ip addr show dev $DEV | tr -s " " | grep -m 1 inet | cut -d " " -f 3` | |
IP=`echo $IPDATA | cut -d "/" -f 1` | |
NM=`echo $IPDATA | cut -d "/" -f 2` | |
MAC=`ip addr show dev $DEV | tr -s " " | grep 'link/ether' | cut -d " " -f 3` |
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
## Remove any access restrictions for xinetd services | |
# Our list of services | |
SERVICES="nrpe check_mk" | |
# $RUN determines is we need to do a restart afterwards | |
RUN=0 | |
for service in $SERVICES; do |
OlderNewer