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 | |
set -e | |
if [ "$#" -ne 3 ]; then | |
printf '%b\n' "\033[1m$0\033[0m \033[4muser\033[0m \033[4mhost\033[0m \033[4mpassword\033[0m" | |
exit 1 | |
fi | |
user=$1 |
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
pre-hook = /usr/local/sbin/letsencrypt-pre-hook | |
post-hook = /usr/local/sbin/letsencrypt-post-hook | |
renew-hook = /usr/local/sbin/letsencrypt-renew-hook |
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 | |
nc localhost 9051 <<EOF | |
AUTHENTICATE "localhost" | |
SIGNAL NEWNYM | |
EOF |
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 | |
echo "$(date --rfc-3339=seconds) $*" >> "/var/log/letsencrypt.log" | |
if [ "$1" = "deploy_cert" ]; then | |
/bin/systemctl reload nginx | |
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
#!/usr/bin/env python2 | |
import json | |
import urllib2 | |
import urlparse | |
import BaseHTTPServer | |
import signal | |
import sys | |
class Handler(BaseHTTPServer.BaseHTTPRequestHandler): |
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
diff --git a/library/pom.xml b/library/pom.xml | |
index 1756f19..03bde0c 100644 | |
--- a/library/pom.xml | |
+++ b/library/pom.xml | |
@@ -123,6 +123,10 @@ | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-gpg-plugin</artifactId> | |
+ <version>1.6</version> | |
+ <configuration> |
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 | |
RELEVANT=remote | |
LOG=/dev/null | |
ROUTE=192.0.2.0/24 | |
echo "$0 $@" >> ${LOG} | |
address=$4 | |
gateway=$5 | |
ipparam=$6 |
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
add_header Access-Control-Allow-Origin *; |
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
ACTION=${1} | |
PATH=${2} | |
NAME=${3} | |
SHORT="$(echo ${NAME} | /bin/cut -d '_' -f 1,2)" | |
if [ "${SHORT}" != "${NAME}" ]; then | |
if [ "${ACTION}" == "add" ]; then | |
/bin/ln -Ts "${PATH}/${NAME}" "${PATH}/${SHORT}" | |
fi | |
if [ "${ACTION}" == "remove" ]; then | |
/bin/rm "${PATH}/${SHORT}" |
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
var net = require('net'); | |
var fs = require('fs'); | |
function formatFileName (addr) { | |
return __dirname + '/log_' + addr + '_' + Math.floor(new Date().getTime() / 1000); | |
} | |
function formatMessage (addr, message) { | |
return '[' + addr + '] ' + message.trim() + '\n'; | |
} |