Compare commits

...

5 Commits

Author SHA1 Message Date
0544be1bbb
fix transmission example 2024-12-04 17:47:59 +01:00
069b0752e3
fix gpg gen command 2024-12-04 17:47:39 +01:00
4447d3f877
formatting 2024-12-02 16:08:09 +01:00
8a4896b971
nginx notes 2024-12-01 14:30:44 +01:00
b2ea104e96
show website example with lowdown 2024-11-28 17:08:31 +01:00
5 changed files with 57 additions and 6 deletions

View File

@ -7,7 +7,7 @@ tags: [ "Documentation", "data", "GPG" ]
Generate keys:
```bash
gpg --gen-key
gpg --full-generate-key
```
Follow the guide.
@ -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 <malinfreeborn@posteo.net>
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

View File

@ -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

View File

@ -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").

View File

@ -9,6 +9,14 @@ Turn a markdown file into a pdf:
lowdown -stms "$FILE".md | pdfroff -itk -mspdf > "$FILE".pdf
```
*Example:* put [this Makefile](lowdown/example.txt) in a directory, rename it `Makefile`, then do:
```bash
make example
make
```
To give the document a title, put that title in the metadata:
```bash

View File

@ -0,0 +1,36 @@
output: all
.PHONY: example
example: html/foot.html html/head.html
mkdir -p articles/
fortune > articles/fort_1.md
fortune > articles/fort_2.md
HTML = $(patsubst articles/%.md,public/%.html,$(wildcard articles/*.md))
$(HTML): public/ articles/ $(wildcard html/*)
html/head.html:
@mkdir $(@D)
echo '<head> Something about CSS probably </head>' > $@
echo '<body>' >> $@
html/foot.html: html/head.html
echo '</body>' >> $@
public/%.html : articles/%.md
cat html/head.html > $@
lowdown $< >> $@
cat html/foot.html >> $@
.PHONY: all
all : $(HTML)
articles/:
mkdir $@
public/:
mkdir $@
clean :
rm -rf public