Merge branch 'dev' into vhs

This commit is contained in:
Malin Freeborn 2025-04-30 15:39:44 +02:00
commit 42886b3c1d
Signed by: andonome
GPG Key ID: 52295D2377F4D70F
14 changed files with 127 additions and 14 deletions

View File

@ -56,7 +56,7 @@ Then set that language, with:
LANG=pl_PL.UTF-8
```
... then reboot.
...then reboot.
# Network Time Protocol

View File

@ -142,4 +142,3 @@ You can ensure omemo automatcally turns on:
```
---
'OTR' encryption is mostly dead, but you can find the old instructions [here](profanity-otr).

View File

@ -26,15 +26,10 @@ mkdir $DIR && cd $DIR
git init
```
Make a file explaining what the project does:
```bash
vim README.md
```
Add this to the git:
Make a file explaining what the project does, and tell `git` to track it:
```bash
echo "I hereby solemnly swear never to commit a binary." > README.md
git add README.md
```

View File

@ -0,0 +1,22 @@
---
title: "Commit for Another"
tags: [ "data", "git" ]
---
You can make Alice the author, while you are still the commiter:
```sh
name="Alice Bobinson"
email="alice@email.com"
git add ${file}
git commit --author="${name} <${email}>"
```
Or, make Alice both the committer and the author:
```sh
git -c user.name="${name}" -c user.email="${email}" commit -m "${message}"
```

View File

@ -0,0 +1,13 @@
---
title: "Convert Spreadsheets"
tags: [ "data", "sc-im" ]
---
Convert between spreadsheet formats with `sc-im`.
```sh
sc-im --quiet --quit_afterload --nocurses --export_csv ${file}.xlsx
sc-im --quiet --quit_afterload --nocurses --export_tab ${file}.sc
sc-im --quiet --quit_afterload --nocurses --export_mkd ${file}.csv
sc-im --quiet --quit_afterload --nocurses --export_txt ${file}.tsv
```

View File

@ -57,5 +57,5 @@ brightnessctl s 10%+
- [autologin](autologin.md)
- [services](sv.md)
- [wifi](wpa_cli.md)
- [wifi](../../networking/wpa_supplicant.md)

78
writing/latex_setup.md Normal file
View File

@ -0,0 +1,78 @@
---
title: "LaTeX Setup the Hard Way"
tags: [ "writing" ]
---
# Warm Up
1. Deep breath.
1. Cup of tea.
1. Remove the old LaTeX junk you've installed. Search for 'texlive' or 'latex' in your package manager's installed files.
1. Find `tlmgr` in your package manager.
# `tlmgr`
The LaTeX Package manager is known as `tlmgr`, and often resides in `/opt/texlive/${YEAR}/bin/x86_64-linux/tlmgr`.
Double-check the location:
```sh
ls -l /opt/texlive/${YEAR}/bin/x86_64-linux/tlmgr
ls /opt/texlive/${YEAR}/texmf-dist/scripts/texlive/tlmgr.pl
```
Double-check the year.
It should *not* match the real year, it should match the `texlive`.
## Problems along the Path
You can't use `tlmgr` unless it's in the `$PATH`.
Check if it *is* in the `$PATH` then if it *should* be in the path:
```sh
echo $PATH
grep texlive -r /etc/profile*
```
If `tlmgr` is where it should be, but not in the path, you can add it temporarily:
```sh
export PATH=${PATH}:/opt/texlive/${YEAR}/bin/x86_64-linux
```
...or just reboot.
## Usage
Search packages:
```sh
tlmgr search --global epstopdf
```
Can't find what you need?
Search for a specific file instead:
```sh
tlmgr search --global --file epstopdf-base.sty
sudo tlmgr install epstopdf-pkg
```
## Recommended Packages
```
latexmk
luatex
titletoc
titlesec
multicol
microtype
graphicx
fontspec
makeindex
imakeidx
```

View File

@ -10,7 +10,8 @@ tags: [ "vim", "basic" ]
## Extras
- [Navigation](navigate.md)
- [Completion](vim-completion.md)
- [Search](vim-search.md)
- [Window Splits](vim-windows.md)
- [Navigation](vim/navigate.md)
- [Completion](vim/completion.md)
- [Search](vim/search.md)
- [Window Splits](vim/windows.md)
- [Use vim bindings in bash](vim/vim_in_bash.md)

View File

@ -1,6 +1,7 @@
---
title: "vim completion"
tags: [ "vim", "completion" ]
requires: [ "vim basics" ]
---
Complete the word by searching for the *n*ext similar word:

View File

@ -1,6 +1,7 @@
---
title: "vim navigation"
tags: [ "vim", "navigation" ]
requires: [ "vim basics" ]
---
| Move | Command |

View File

@ -1,6 +1,7 @@
---
title: "vim search"
tags: [ "vim", "search" ]
requires: [ "vim basics" ]
---
Search for the next and or previous occurrence of the word under your cursor with `*` and `#`.

View File

@ -1,6 +1,7 @@
---
title: "vim in bash"
tags: [ "vim", "bash", "inputrc" ]
requires: [ "vim basics" ]
---
Put bash in vim mode!

View File

@ -1,6 +1,7 @@
---
title: "vim windows"
tags: [ "vim" ]
requires: [ "vim basics" ]
---
| Command | Keys |