Mac OS

Flush DNS

sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder

AI Acceleration

NVidia Tesla T4 GPU

Install the latest nvidia drivers ('game ready' will work).

Switch the T4s into MCDM mode to get them working in WSL and showing in task manager.

From an administrator terminal:

nvidia-smi -dm 2

To switch them back to TCC mode (untested, not sure why I...

Grav

Set Folder Permissions

sudo chgrp -R www-data .
find . -type f | sudo xargs chmod 664
find . /bin -type f | sudo xargs chmod 775
find . -type d | sudo xargs chmod 775
find . -type d | sudo xargs chmod +s
umask 0002

WireGuard

Config Location

Typically

/etc/wireguard/wg0.conf

Service

Restart

sudo systemctl restart wg-quick@wg0

 Status

sudo systemctl status wg-quick@wg0

 Enable

sudo systemctl enable wg-quick@wg0

Generate Key Pair

wg genkey > privatekey
wg pubkey < privatekey > publickey
...

Apache 2

Config Location

/etc/apache2/

Sites

/etc/apache2/sites-enabled/
sudo a2ensite 
sudo a2dissite 

Modules

sudo a2enmod 
sudo a2dismod 

Test Configuration

sudo apachectl configtest

Reload Config

sudo apachectl -k graceful
s...

IP Tables

DNAT

Create a new DNAT rule

sudo iptables -t nat -A PREROUTING -i  -p tcp --dport  -j DNAT --to-destination :

List DNAT Rules

sudo iptables -t nat -L PREROUTING --line-numbers

Delete DNAT Rule by line number

sudo iptables...