diff --git a/automatic_porkbun_cert_renewal/README.md b/automatic_porkbun_cert_renewal/README.md new file mode 100644 index 0000000..c3682dd --- /dev/null +++ b/automatic_porkbun_cert_renewal/README.md @@ -0,0 +1,21 @@ +# Automatic Porkbun Cert Renewal + +I'm tired of manually setting up the certs on the Nginx server every 3 months. + +I've found this tool to do it: https://github.com/porkbundomains/certbun + +# How to deploy + +On navaja, clone this repo: https://github.com/porkbundomains/certbun + +Copy the `config.json.example` into a `config.json` file. + +Generate API keys following this: https://kb.porkbun.com/article/190-getting-started-with-the-porkbun-dns-api + +Set the right paths for the cert files + +For the web server reload command, I simply trigger a docker compose down and up since the Nginx is in a container. + +Run manually once to verify it all works fine. + +Afterwards, cron it. diff --git a/framework_screen_pains.md b/framework_screen_pains.md new file mode 100644 index 0000000..177bbbc --- /dev/null +++ b/framework_screen_pains.md @@ -0,0 +1,39 @@ +# How to get the home office monitor working + +- Run the following commands + +```shell + +# Check output and note what's the name of the display +xrandr --listmonitors +DISPLAY_NAME="write_the_name_here" + +# Then run the following and copy what comes in the modeline after "Modeline" +cvt 1920 1080 59.80 + +# First generate a "modeline" by using cvt +# Syntax is: cvt width height refreshrate + +cvt 1920 1080 59.80 + +#this gives you: + +# 1920x1080 59.79 Hz (CVT) hsync: 66.96 kHz; pclk: 172.50 MHz +Modeline "1920x1080_59.80" 172.50 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync + +# Now tell this to xrandr: + +xrandr --newmode "1920x1080_59.80" 172.50 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync + +# Then you can now add it to the table of possible resolutions of an output of your choice: + +xrandr --addmode ${DISPLAY_NAME} 1920x1080_59.80 + +#The changes are lost after reboot, to set up the resolution persistently, create the file ~/.xprofile with the content: + +#!/bin/sh +xrandr --newmode "1920x1080_59.80" 172.50 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync +xrandr --addmode ${DISPLAY_NAME} 1920x1080_59.80 + + +``` \ No newline at end of file