sudo iptables -t nat -A PREROUTING -p tcp --dport 3389 -j DNAT --to-destination win-box:3389
sudo iptables -A FORWARD -p tcp --dport 3389 -j ACCEPT
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
read -s -p "Password: " PASS && echo -e "\nEncrypted data: $(echo -n ${DATA} | openssl enc -aes-256-cbc -pbkdf2 -iter 10000 -a -salt -k "$PASS")" | |
read -s -p "Password: " PASS && read -p "Enter encrypted data: " ENCRYPTED_DATA && echo $ENCRYPTED_DATA | openssl enc -aes-256-cbc -d -pbkdf2 -iter 10000 -a -salt -k "$PASS" |
Adapted from https://forums.lawrencesystems.com/t/getting-started-building-your-own-wireguard-vpn-server/7425
sudo apt-get update
sudo apt-get upgrade --yes
sudo apt autoremove --yes
sudo vim /etc/sysctl.conf
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
{ | |
"$help": "https://aka.ms/terminal-documentation", | |
"$schema": "https://aka.ms/terminal-profiles-schema", | |
"actions": | |
[ | |
{ | |
"command": | |
{ | |
"action": "copy", | |
"singleLine": false |
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
// This file was initially generated by Windows Terminal 1.3.2651.0 | |
// It should still be usable in newer versions, but newer versions might have additional | |
// settings, help text, or changes that you will not see unless you clear this file | |
// and let us generate a new one for you. | |
// To view the default settings, hold "alt" while clicking on the "Settings" button. | |
// For documentation on these settings, see: https://aka.ms/terminal-documentation | |
{ | |
"$schema": "https://aka.ms/terminal-profiles-schema", |
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
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions | |
Enable-RemoteDesktop | |
cinst choco-upgrade-all-at --params "'/DAILY:yes /TIME:21:00 /ABORTTIME:23:30'" | |
cinst reflect-free | |
cinst nirlauncher | |
cinst microsoft-windows-terminal | |
cinst mingw-get |
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
### Base Windows Configuration ### | |
# Enable Windows Features... | |
Enable-WindowsOptionalFeature -FeatureName Microsoft-Hyper-V-All -Online -NoRestart | |
Enable-WindowsOptionalFeature -FeatureName Containers -Online -NoRestart | |
Enable-WindowsOptionalFeature -FeatureName Microsoft-Windows-Subsystem-Linux -Online -NoRestart | |
### Chocolatey Installs ### | |
# Install Chocolatey: https://chocolatey.org/install |
I hereby claim:
- I am pcuci on github.
- I am pcuci (https://keybase.io/pcuci) on keybase.
- I have a public key whose fingerprint is 5306 70B7 3E09 1176 0586 F3DF 3417 4D23 F04C E669
To claim this, I am signing this object:
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] | |
; csv_internal_sep = , | |
; db_maxconn = 64 | |
; db_name = False | |
; db_template = template1 | |
dbfilter = ^%d$ | |
; debug_mode = False | |
; email_from = "[email protected]" | |
; limit_memory_hard = 2684354560 | |
; limit_memory_soft = 2147483648 |
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
user www-data; | |
events { | |
worker_connections 768; | |
} | |
http { | |
upstream odoo { | |
server web:8069 fail_timeout=300s; | |
} |
NewerOlder