From 8a4896b97106ff248bc33530da7b87f123dc1823 Mon Sep 17 00:00:00 2001 From: Malin Freeborn Date: Sun, 1 Dec 2024 14:30:44 +0100 Subject: [PATCH 1/4] nginx notes --- networking/website/nginx.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/networking/website/nginx.md b/networking/website/nginx.md index 67d0257..680f500 100644 --- a/networking/website/nginx.md +++ b/networking/website/nginx.md @@ -93,7 +93,9 @@ apt install python3-certbot-nginx ``` ```bash -certbot --nginx -d *mysite.tk* --non-interactive --agree-tos -m *webmaster@email.tld* +domain=example.com +my_email=me@posteo.uk +certbot --nginx -d "$domain" --non-interactive --agree-tos -m "$my_email" ``` When you are asked about redirecting from HTTP to HTTPS, say yes (option "2"). From 4447d3f877770f5a4b2888c27e13d07b9936e369 Mon Sep 17 00:00:00 2001 From: Malin Freeborn Date: Mon, 2 Dec 2024 16:08:09 +0100 Subject: [PATCH 2/4] formatting --- data/gpg/basics.md | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/data/gpg/basics.md b/data/gpg/basics.md index 2185055..7c1f478 100644 --- a/data/gpg/basics.md +++ b/data/gpg/basics.md @@ -24,7 +24,12 @@ Check you have an encrypted version of your file. # Changing Expiration Dates + +```bash gpg --list-keys +# or... +gpg -k +``` ... and then use the second part of 'pub', which is the ID. But that's not appearing here so... on with gpg2? @@ -72,11 +77,11 @@ You get something like this: pub rsa3072 2021-08-15 [SC] [expires: 2023-08-15] CD30421FD825696BD95F1FF644C62C57B790D3CF uid [ultimate] Malin Freeborn -sub rsa3072 2021-08-15 [E] [expires: 2023-08-15] +sub rsa3072 2021-08-15 [E] [expires: after-forever] ``` -Notice the long, ugly, string - CD30421FD825696BD95F1FF644C62C57B790D3CF - and how horribly ugly it is. +Notice the long, ugly, string - `CD30421FD825696BD95F1FF644C62C57B790D3CF` - and how horribly ugly it is. This is a fingerprint. You can now decide the trust level (this stays on your computer). @@ -124,7 +129,7 @@ Refreshing keys will tell you if some key you have contains a signature from som gpg --refresh-keys ``` -You can use the [crontab](../../basics/cron.md) to refresh keys. +You can use the [crontab](../../basics/cron.md) to refresh keys, but this will mostly fail, since keyservers often don't hold the right data. # Export From 069b0752e38310ddd19e3390a317c4f2d3bbf5cb Mon Sep 17 00:00:00 2001 From: Malin Freeborn Date: Wed, 4 Dec 2024 17:47:39 +0100 Subject: [PATCH 3/4] fix gpg gen command --- data/gpg/basics.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/gpg/basics.md b/data/gpg/basics.md index 7c1f478..96ddbbf 100644 --- a/data/gpg/basics.md +++ b/data/gpg/basics.md @@ -7,7 +7,7 @@ tags: [ "Documentation", "data", "GPG" ] Generate keys: ```bash -gpg --gen-key +gpg --full-generate-key ``` Follow the guide. From 0544be1bbb3e1de69fc1c397b7f1b50362aa4182 Mon Sep 17 00:00:00 2001 From: Malin Freeborn Date: Wed, 4 Dec 2024 17:47:59 +0100 Subject: [PATCH 4/4] fix transmission example --- networking/transmission.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/networking/transmission.md b/networking/transmission.md index 07a7b4a..7b38242 100644 --- a/networking/transmission.md +++ b/networking/transmission.md @@ -83,7 +83,7 @@ If the file is in your home - `~` - but `transmission` is not allowed in your ho Next, find the torrent's number. You can use multiple numbers, separated with a comma: ```bash -transmission-remote -t 3,5,8 --move /home/alice/music +transmission-remote -t 3,5,8 --move $HOME/music ``` ## Change Default Location