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 | |
| # Enable gadget mode | |
| echo "dtoverlay=dwc2,dr_mode=peripheral" >> /boot/config.txt | |
| systemctl enable setupgadget.service | |
| # alternatively: ln -s /etc/systemd/system/setupgadget.service /etc/systemd/system/basic.target.wants/setupgadget.service | |
| # Enable getty on the virtual serial line | |
| systemctl enable [email protected] | |
| # alternatively: ln -s /lib/systemd/system/[email protected] /etc/systemd/system/getty.target.wants/[email protected] |
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 | |
| # | |
| ### BEGIN INIT INFO | |
| # Provides: my-service-name | |
| # Required-Start: $all | |
| # Required-Stop: | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: 0 1 6 | |
| # Short-Description: your description here | |
| ### END INIT INFO |
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
| server { | |
| listen ctp-vpn.local:80; | |
| listen ctp-vpn.local:3000; | |
| listen ctp-vpn.local:443 ssl; | |
| listen ctp-vpn.local:27443 quic reuseport; | |
| listen [::]:80; | |
| listen [::]:3000; | |
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
| server { | |
| listen ctp-vpn.local:80; | |
| listen ctp-vpn.local:3000; | |
| listen [::]:80; | |
| listen [::]:3000; | |
| server_name | |
| http.charlesp.net | |
| simple-http.charlesp.net |
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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Login Page</title> | |
| </head> | |
| <body> | |
| <h1>Simple HTTP website</h1> | |
| <p>Charles Porth created this website</p> |
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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Login Page</title> | |
| </head> | |
| <body> | |
| <h1>Manual Password Browser Saver</h1> | |
| <p>Created for saving a username and password to a browser's autofill</p> |
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
| blocklist.site/app/dl/ads | |
| http://hostsfile.mine.nu/hosts0.txt | |
| http://jasonhill.co.uk/pfsense/ytadblock.txt | |
| http://malwaredomains.lehigh.edu/files/domains.txt | |
| http://mirror1.malwaredomains.com/files/justdomains | |
| http://pgl.yoyo.org/adservers/serverlist.php | |
| http://pgl.yoyo.org/as/serverlist.php?hostformat=hosts;showintro=0 | |
| http://pilotfiber.dl.sourceforge.net/project/adzhosts/HOSTS.txt | |
| http://private-lists.whisky.software/txt_lists/ctp-lists/china-blacklist.list | |
| http://private-lists.whisky.software/txt_lists/ctp-lists/vulnerability-blacklist.list |
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 bash | |
| export DEBIAN_FRONTEND=noninteractive | |
| export OS_ID=$(cat /etc/os-release | grep -E ^ID= | awk -F= '{print $2}' | awk '{print $1=$1}') | |
| export VERSION_CODENAME=$(cat /etc/os-release | grep VERSION_CODENAME | awk -F= '{print $2}' | awk '{print $1=$1}') | |
| dpkg --add-architecture i386 | |
| apt-get update | |
| apt-get install -y ca-certificates apt-transport-https curl wget |
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 bash | |
| apt_out_file=/etc/apt/sources.list.d/apt-fast.list | |
| export CPU_CORE_COUNT=`cat /proc/stat | grep cpu | grep -E 'cpu[0-9]+' | wc -l` | |
| export DEBIAN_FRONTEND=noninteractive | |
| export OS_ID=$(cat /etc/os-release | grep -E ^ID= | awk -F= '{print $2}' | awk '{print $1=$1}') | |
| if [[ $OS_ID = ubuntu ]]; then | |
| export VERSION_CODENAME=$(cat /etc/os-release | grep VERSION_CODENAME | awk -F= '{print $2}' | awk '{print $1=$1}') | |
| else | |
| export VERSION_CODENAME=focal | |
| export OS_ID=ubuntu |
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 | |
| which_tables=$1 | |
| timeout_time=180 | |
| function set_iptables() { | |
| arg=$1 | |
| table=$2 | |
| find -L /usr/sbin -name 'iptables*' -type l -exec rm -rf {} \; | |
| find -L /usr/sbin -name 'ip6tables*' -type l -exec rm -rf {} \; | |
| echo 0 | update-alternatives $arg iptables /usr/sbin/iptables-$table |
NewerOlder