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), |
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
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
## 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
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
#!/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
### INSTALLATION(S) | |
# IPSET | |
* * * * * /sbin/ipset save > /etc/ipsetrules.save | |
@reboot /sbin/ipset restore -! < /etc/ipsetrules.save | |
## IPTABLES PERSISTENT | |
# 1. apt update | |
# 2. apt install iptables-persistent | |
# 3. systemctl enable netfilter-persistent | |
# 4. Add your rules | |
# 5. invoke-rc.d netfilter-persistent save |
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
<div> | |
<div class="container"> | |
<div class="row app-banner-padding app-banner "> | |
<div class="col-md-12 text-center"> | |
<img src="https://contacts.zoho.com/file?exp=10&t=org&ID=663860804" align="center" width="200"> | |
</div> | |
</div> | |
</div> | |
</div> |
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
chronometer:x:1002:1002:,,,:/home/chronometer:/bin/bash | |
padd:x:1002:1002:,,,:/home/chronometer:/bin/bash |
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
<VirtualHost *:80> | |
ServerName proxy.jpits.us | |
SSLProxyEngine on | |
ProxyRequests Off | |
ProxyPreserveHost on # Optional, may resolve login issues. | |
<Proxy *> | |
Order allow,deny | |
Allow from All | |
</Proxy> | |
ProxyPass / https://www.google.com/ |
NewerOlder