Compare commits
5 Commits
5a1ba18176
...
0544be1bbb
Author | SHA1 | Date | |
---|---|---|---|
0544be1bbb | |||
069b0752e3 | |||
4447d3f877 | |||
8a4896b971 | |||
b2ea104e96 |
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -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").
|
||||
|
@ -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
|
||||
|
36
vision/lowdown/example.txt
Normal file
36
vision/lowdown/example.txt
Normal 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
|
Loading…
x
Reference in New Issue
Block a user