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/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 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/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 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/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 |
NewerOlder