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 | |
IPT="/sbin/iptables" | |
# Server IP | |
SERVER_IP="$(ip addr show eth0 | grep 'inet ' | cut -f2 | awk '{ print $2}')" | |
# Your DNS servers you use: cat /etc/resolv.conf | |
DNS_SERVER="8.8.4.4 8.8.8.8" | |
# Allow connections to this package servers |
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
lpadmin -p 'TJJ_Printer' -o printer-is-shared="False" -E -v lpd://printer.tjj.jpits.us/ipp/print -P '/Library/Printers/PPDs/Contents/Resources/HP LaserJet Pro MFP M225-M226.gz' -D 'TJJ Printer' | |
lpadmin -p 'PetersD_Printer' -o printer-is-shared="False" -E -v lpd://printer.pd.jpits.us/ipp/print -P '/Library/Printers/PPDs/Contents/Resources/HP LaserJet P2035.gz' -D 'PetersD Printer' |
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
## How I got it working | |
# Prerequestites | |
1. Golang | |
2. certbot | |
# Generating a certificate | |
# Stop lighttpd (pi-hole admin interface) | |
service lighttpd stop | |
certbot certonly --standalone -d <DOMAIN NAME> |
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
Given the config: | |
$SERVER["socket"] == ":443" { | |
ssl.engine = "enable" | |
ssl.pemfile = "/certs/server/combined.pem" | |
ssl.ca-file = "/certs/server/fullchain.pem" | |
ssl.cipher-list = "ECDHE-RSA-AES256-SHA384:AES256-SHA256:HIGH:!MD5:!aNULL:!EDH:!AESGCM" | |
ssl.honor-cipher-order = "enable" | |
ssl.use-sslv2 = "disable" | |
ssl.use-sslv3 = "disable" | |
} |
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
<form method="post" id="subForm"> | |
<label id="ebcaptchatext"></label> | |
<input type="text" class="textbox" id="ebcaptchainput"/> | |
<button type="submit">Submit</button> | |
</form> |
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
public function create_site_admin( | |
$name, | |
$email, | |
$password | |
) { | |
$payload = [ | |
'cmd' => 'create-admin', | |
'name' => trim($name), | |
'email' => trim($email), | |
'x_password' => trim($password), |
OlderNewer