- Login to Namecheap Account
- Get JSON from https://ap.www.namecheap.com/Domains/dns/GetAdvancedDnsInfo?fillTransferInfo=false&domainName=YOURDOMAINNAME.com
- Save it to file
python main.py data.json example.org.
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 | |
# | |
# Update PVE machine | |
# Update all running containers | |
set -x | |
exec 3>&1 4>&2 | |
trap 'exec 2>&4 1>&3' 0 1 2 3 RETURN | |
exec 1>${0}.log 2>&1 1>&3 | |
# list of container ids we need to iterate through |
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 | |
# Auto-renew SSL script for a user & domain | |
# Can be used in Webmin for example | |
# Webmin has better integration but I believe it requires newer versions of python for now | |
DOMAINUSER="$1" | |
DOMAIN="$2" | |
if [ "$#" -ne "2" ]; then | |
echo "Bad usage: $0 <domain_user> <domain>\n" |
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 | |
# Author [email protected] | |
use strict; | |
use warnings; | |
sub debug_print { | |
my $log = shift; |
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 | |
# ./convert_ploop_to_simfs.sh VEID | |
# chmod +x convert_ploop_to_simfs.sh | |
rsync_options='-aHAX --progress --stats --numeric-ids --delete' | |
partition='vz' | |
if [ ! -e /etc/vz/conf/$1.conf ]; then | |
echo "Virtual server configuration file: /etc/vz/conf/$1.conf does not exist." | |
exit 1 | |
fi | |
if [ ! -d /$partition/private/$1/root.hdd ]; then |
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 | |
### BEGIN INIT INFO | |
# Provides: redis-server | |
# Required-Start: $syslog | |
# Required-Stop: $syslog | |
# Should-Start: $local_fs | |
# Should-Stop: $local_fs | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: redis-server - Persistent key-value db |