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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" | |
"http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>PayloadContent</key> | |
<array> | |
<dict> | |
<!-- Use Mullvad Encrypted DNS (HTTPS) --> | |
<key>DNSSettings</key> |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" | |
"http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>PayloadContent</key> | |
<array> | |
<dict> | |
<!-- Use Mullvad Encrypted DNS (HTTPS) --> | |
<key>DNSSettings</key> |
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 | |
# Binary can be obtained from: https://github.com/anaganisk/digitalocean-dynamic-dns-ip | |
digitalocean-dynamic-dns /home/bart/.config/digital-ocean/dynamic-ip.json |
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 | |
echo "[1m[32m" | |
echo " .~~. .~~. " | |
echo " '. \ ' ' / .' " | |
echo "[31m" | |
echo " .~ .~~~..~. " | |
echo " : .~.'~'.~. : " | |
echo " ~ ( ) ( ) ~ " | |
echo " ( : '~'.~.'~' : )" |
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 | |
set -e | |
# Deploys the certicate. | |
function deploy_to_usg { | |
# The key to use to login to the UniFi USG. | |
local SSH_KEY="/root/.ssh/unifi-usg" | |
# The user and hostname of the UniFi USG. | |
local HOST="[email protected]" |
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 | |
# Graceful shutdown of the http server. | |
kill -SIGINT $(cat /var/run/lighttpd.pid) | |
# Install certificate in the http server. | |
mv /home/admin/.certificate/server.pem /etc/lighttpd/server.pem | |
chown root:root /etc/lighttpd/server.pem; chmod 0400 /etc/lighttpd/server.pem | |
# Start http server with new certificate. |
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 | |
set -e | |
for domain in $RENEWED_DOMAINS; do | |
case $domain in | |
ui.nepherte.com) | |
/usr/local/bin/ui-import-ssl.sh | |
;; | |
esac |
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 | |
# unifi_ssl_import.sh | |
# UniFi Controller SSL Certificate Import Script for Unix/Linux Systems | |
# by Steve Jenkins <http://www.stevejenkins.com/> | |
# Part of https://github.com/stevejenkins/ubnt-linux-utils/ | |
# Incorporates ideas from https://source.sosdg.org/brielle/lets-encrypt-scripts | |
# Version 2.8 | |
# Last Updated Jan 13, 2017 |
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 | |
set -e | |
function deploy_to_synology { | |
# The id of the certificate on the Synology NAS. | |
local CERT_ID="crFPXQ" | |
# The packages on the Synology NAS that use the certificate. | |
local CERT_PKGS="system 4b4b117d-07d1-49db-9b42-7e1281cf3326" |
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 | |
set -e | |
function deploy_to_synology { | |
# The id of the certificate on the Synology NAS. | |
local CERT_ID="7RY4jQ" | |
# The packages on the Synology NAS that use the certificate. | |
local CERT_PKGS="radiusd slapd" |
NewerOlder