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
forward-zone: | |
name: "." | |
forward-addr: 1.1.1.1@853#one.one.one.one | |
forward-addr: 1.0.0.1@853#one.one.one.one | |
forward-addr: 9.9.9.9@853#dns.quad9.net | |
forward-addr: 149.112.112.112@853#dns.quad9.net | |
forward-tls-upstream: yes |
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 | |
# API keys for ZeroSSL and Digital Ocean | |
# These particular keys are fake random hex | |
ZEROSSL_KEY='0f027ac0f3b24ddb3c4412f11fa1e746' | |
DO_KEY='a3e6ee004fd7c352af61f0465765030b5d162acc94c24fdbb42f7a8c81e897a3' | |
# Set root domain and take CN from params | |
DOMAIN=subdomain.example.com | |
CERT_NAME="$1"."$DOMAIN" |
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
[Unit] | |
Description=AutoSSH tunnel in a screen | |
After=network-online.target | |
[Service] | |
User=changeme | |
Type=simple | |
Restart=on-failure | |
RestartSec=3 | |
ExecStart=/usr/bin/screen -DmS tunnel1 /usr/lib/autossh/autossh -M 20020 -D 0.0.0.0:12345 [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
options { | |
directory "/tmp"; | |
listen-on-v6 { none; }; | |
forwarders { | |
127.0.0.1 port 2053; | |
}; | |
auth-nxdomain no; # conform to RFC1035 |
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
sudo docker run --rm --init -d -p 8080:8080 -p 8443:8443 -p 3478:3478/udp -p 10001:10001/udp -e TZ='Europe/London' -e RUNAS_UID0=false -e UNIFI_UID=1000 -e UNIFI_GID=1000 -v ~/unifi:/unifi --name unifi jacobalberty/unifi:stable |
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
Started by user Chris Swan | |
Building in workspace /var/jenkins_home/workspace/GameOfLife | |
Unpacking https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.3.9/apache-maven-3.3.9-bin.zip to /var/jenkins_home/tools/hudson.tasks.Maven_MavenInstallation/Maven3 on Jenkins | |
Cloning the remote Git repository | |
Cloning repository https://github.com/wakaleo/game-of-life.git | |
> git init /var/jenkins_home/workspace/GameOfLife # timeout=10 | |
Fetching upstream changes from https://github.com/wakaleo/game-of-life.git | |
> git --version # timeout=10 | |
> git fetch --tags --progress https://github.com/wakaleo/game-of-life.git +refs/heads/*:refs/remotes/origin/* | |
> git config remote.origin.url https://github.com/wakaleo/game-of-life.git # timeout=10 |
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
ping www.google.com.tw | |
sudo ping www.google.com.tw | |
sudo apt-get update | |
df | |
cd Desktop/ | |
ls | |
tar -zxvf ASUSTinkerBoard.gpio-0.1_20161025.tar.gz | |
cd ASUSTinkerBoard.gpio-0.1_20161025/ | |
ls | |
cd .. |
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 | |
import os | |
import sys | |
import smtplib | |
import mimetypes | |
from email.MIMEMultipart import MIMEMultipart | |
from email.MIMEBase import MIMEBase | |
from email.MIMEText import MIMEText | |
from email.MIMEAudio import MIMEAudio | |
from email.MIMEImage import MIMEImage |
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
### BEGIN INIT INFO | |
# Provides: sshvps | |
# Required-Start: $local_fs $remote_fs | |
# Required-Stop: $local_fs $remote_fs | |
# Should-Start: $network | |
# Should-Stop: $network | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Tunnel to VPS | |
# Description: This runs a script continuously in screen. |
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
shell -$SHELL |
NewerOlder