Times

Before 7am Start

-0:45 Wake Up/Dress/Breakfast/Pack
-1:15 Leave

At/After 7am Start

-0:45 Wake Up/Dress/Breakfast/Pack
-1:30 Leave

After 12pm Start

-1:00 Wake Up / Shower
-0:45 Lunch/Eat
-0:30 Dress/Pack
-1:30 Leave
-0:00 Start

Bedtimes

8Hrs before wakeup
16Hrs after last wakeup

Apache Log

Checking the apache log on a DS920+ NAS.

william@DiskStation:/volume1/@appdata/Apache2.4/log$ pwd
/volume1/@appdata/Apache2.4/log
william@DiskStation:/volume1/@appdata/Apache2.4/log$

X-Trail Radio

“With the key turned to ACC or on, and the radio off, press (6) and the (Tune Seek ▼) together. This toggles the clock display on and off.

Then, to set the time, press the (Audio) for more than 3 seconds. The time will flash. Press the (1) to advance the hours and (2) to advance the minutes. Press (Audio) again once you have the correct time and the clock will be set.”

Persistant iptables

For debian 10…

apt install iptables-persistent
iptables -A INPUT -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT
iptables -A INPUT -s 87.121.72.216 -j ACCEPT
iptables -P INPUT DROP
dpkg-reconfigure iptables-persistent

Lighttpd vhost config.

cat /etc/lighttpd/conf-available/10-vhost.conf
server.modules += ( "mod_openssl" )
 
$SERVER["socket"] == "[2404:9400:213c:6b01:0000:0000:0000:0001]:443" {
        ssl.engine  = "enable"
        ssl.privkey= "/etc/letsencrypt/live/1.mygeekvps.net/privkey.pem"
        ssl.pemfile = "/etc/letsencrypt/live/1.mygeekvps.net/cert.pem"
        ssl.ca-file= "/etc/letsencrypt/live/1.mygeekvps.net/chain.pem"
        ssl.cipher-list = "HIGH"
        server.document-root        = "/var/www/html1"
}
 
$SERVER["socket"] == "[2404:9400:213c:6b01:0000:0000:0000:0002]:443" {
        ssl.engine  = "enable"
        ssl.privkey= "/etc/letsencrypt/live/2.mygeekvps.net/privkey.pem"
        ssl.pemfile = "/etc/letsencrypt/live/2.mygeekvps.net/cert.pem"
        ssl.ca-file= "/etc/letsencrypt/live/2.mygeekvps.net/chain.pem"
        ssl.cipher-list = "HIGH"
        server.document-root        = "/var/www/html2"
}
 
$SERVER["socket"] == "[2404:9400:213c:6b01:0000:0000:0000:0003]:443" {
        ssl.engine  = "enable"
        ssl.privkey= "/etc/letsencrypt/live/3.mygeekvps.net/privkey.pem"
        ssl.pemfile = "/etc/letsencrypt/live/3.mygeekvps.net/cert.pem"
        ssl.ca-file= "/etc/letsencrypt/live/3.mygeekvps.net/chain.pem"
        ssl.cipher-list = "HIGH"
        server.document-root        = "/var/www/html3"
}

IPv6 additional addresses.

/etc/network/interfaces

iface eth0 inet6 static
address 2404:9400:213c:6b01:0000:0000:0000:0001/128
# use SLAAC to get global IPv6 address from the router
# we may not enable ipv6 forwarding, otherwise SLAAC gets disabled
autoconf 1
accept_ra 2
 
iface eth0 inet6 static
address 2404:9400:213c:6b01:0000:0000:0000:0002/128
# use SLAAC to get global IPv6 address from the router
# we may not enable ipv6 forwarding, otherwise SLAAC gets disabled
autoconf 1
accept_ra 2
 
iface eth0 inet6 static
address 2404:9400:213c:6b01:0000:0000:0000:0003/128
# use SLAAC to get global IPv6 address from the router
# we may not enable ipv6 forwarding, otherwise SLAAC gets disabled
autoconf 1
accept_ra 2

Create SQL databases

#!/usr/bin/env python3
 
 
import mysql.connector
 
weblist = ["ericafox", "ericascott", "ericastevens", "samarafox", "samarastevens", "williamscott", "woodytheduck"]
 
 
mydb = mysql.connector.connect(
  host="localhost",
  user="superuser",
  passwd="superuserpassword"
)
 
mycursor = mydb.cursor()
 
for site in weblist:
    mycursor.execute("CREATE DATABASE " + site)