Stuff
This commit is contained in:
parent
91f9627a9b
commit
d6b41b5e0f
2 changed files with 60 additions and 0 deletions
21
automatic_porkbun_cert_renewal/README.md
Normal file
21
automatic_porkbun_cert_renewal/README.md
Normal file
|
|
@ -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.
|
||||
39
framework_screen_pains.md
Normal file
39
framework_screen_pains.md
Normal file
|
|
@ -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
|
||||
|
||||
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue