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 python | |
def remove_popups(filename) -> None: | |
with open(filename, 'rb') as fb: | |
s = fb.read() | |
fb.close() | |
s = s.replace(b'showUSAPopup=true', b'showUSAPopup=0;;;') | |
s = s.replace(b'showPopup=true', b'showPopup=0;;;') | |
s = s.replace(b'showUSAPopup', b'nonoUSAPopup') | |
with open(filename, 'wb') as fb: |
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 | |
cd /opt/ftbr-minecraft | |
sudo -u minecraft _0="$0" /bin/bash ./serverstarter.sh $* |
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 | |
# add additional packages from a list to openwrt .config | |
# its a good idea to run `make defconfig` afterwards | |
file="$1" | |
config="$2" | |
_testexist(){ | |
# _testexist [file path] [type of file] | |
path="$1" |
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 | |
# get names from uuid files in minecraft/world/playerdata/* | |
show_usage() { | |
echo "usage: $0 [file..]" | |
echo | |
echo "Where \`file' is one or more uuid.dat file located in minecraft/world/playerdata/" | |
echo "Example: $0 minecraft/world/playerdata/*" | |
} |
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 | |
# script location: /etc/wireguard/peers | |
# prereq: wg0 server config in /etc/wireguard/wg0.conf | |
# prereq: wg0 publickey in /etc/wireguard/publickey | |
# prereq: `systemctl enable wg-quick@wg0.service` | |
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | |
# !! MAKE SURE to replace [CHANGEME] with your public IP !! | |
# !! (see endpoint variable under PEER CONFIG) !! | |
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
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
# https://calomel.org/unbound_dns.html | |
# https://nlnetlabs.nl/documentation/unbound/unbound.conf/ | |
# https://www.ckn.io/blog/2017/11/14/wireguard-vpn-typical-setup/ | |
server: | |
#hide-identity: yes | |
access-control: 0.0.0.0/0 deny | |
access-control: 127.0.0.1 allow | |
access-control: 172.17.17.0/24 allow | |
auto-trust-anchor-file: "/var/lib/unbound/root.key" | |
cache-max-ttl: 14400 |
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
########## | |
# Win 10 / Server 2016 / Server 2019 Initial Setup Script - Default preset | |
# Author: Disassembler <disassembler@dasm.cz> | |
# Version: v3.5, 2018-12-23 | |
# Source: https://github.com/Disassembler0/Win10-Initial-Setup-Script | |
########## | |
### Require administrator privileges ### | |
RequireAdmin |
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
version: '3' | |
services: | |
lasso: | |
container_name: lasso | |
image: bfoote/lasso | |
restart: always | |
ports: | |
- "9090:9090" | |
network_mode: bridge |
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
# lasso config | |
lasso: | |
#logLevel: debug | |
logLevel: info | |
listen: 0.0.0.0 | |
port: 9090 | |
allowAllUsers: false | |
publicAccess: false | |
domains: |
NewerOlder