From ffa4dbc51aff929d4f917210ee4c2589886be760 Mon Sep 17 00:00:00 2001 From: Malin Freeborn Date: Tue, 1 Apr 2025 15:02:26 +0200 Subject: [PATCH 1/8] commit for another --- data/git/commit_for_another.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 data/git/commit_for_another.md diff --git a/data/git/commit_for_another.md b/data/git/commit_for_another.md new file mode 100644 index 0000000..efa72d4 --- /dev/null +++ b/data/git/commit_for_another.md @@ -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}" +``` + From 7292e0625e9dec1a956a9228348710b48dad33b4 Mon Sep 17 00:00:00 2001 From: Malin Freeborn Date: Tue, 1 Apr 2025 15:06:21 +0200 Subject: [PATCH 2/8] formatting --- data/git/basics.md | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/data/git/basics.md b/data/git/basics.md index fc27897..ca89a5a 100644 --- a/data/git/basics.md +++ b/data/git/basics.md @@ -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 ``` From 92145ac4b75bf9fea3f57e90397b99d6aed2c971 Mon Sep 17 00:00:00 2001 From: Malin Freeborn Date: Tue, 1 Apr 2025 23:29:17 +0200 Subject: [PATCH 3/8] make a writing category --- vim/basic_vim.md => writing/vim.md | 0 vim/vim-completion.md => writing/vim/completion.md | 0 {vim => writing/vim}/navigate.md | 0 vim/vim-search.md => writing/vim/search.md | 0 {vim => writing/vim}/vim_in_bash.md | 0 vim/vim-windows.md => writing/vim/windows.md | 0 {vim => writing}/vim_tricks.md | 0 7 files changed, 0 insertions(+), 0 deletions(-) rename vim/basic_vim.md => writing/vim.md (100%) rename vim/vim-completion.md => writing/vim/completion.md (100%) rename {vim => writing/vim}/navigate.md (100%) rename vim/vim-search.md => writing/vim/search.md (100%) rename {vim => writing/vim}/vim_in_bash.md (100%) rename vim/vim-windows.md => writing/vim/windows.md (100%) rename {vim => writing}/vim_tricks.md (100%) diff --git a/vim/basic_vim.md b/writing/vim.md similarity index 100% rename from vim/basic_vim.md rename to writing/vim.md diff --git a/vim/vim-completion.md b/writing/vim/completion.md similarity index 100% rename from vim/vim-completion.md rename to writing/vim/completion.md diff --git a/vim/navigate.md b/writing/vim/navigate.md similarity index 100% rename from vim/navigate.md rename to writing/vim/navigate.md diff --git a/vim/vim-search.md b/writing/vim/search.md similarity index 100% rename from vim/vim-search.md rename to writing/vim/search.md diff --git a/vim/vim_in_bash.md b/writing/vim/vim_in_bash.md similarity index 100% rename from vim/vim_in_bash.md rename to writing/vim/vim_in_bash.md diff --git a/vim/vim-windows.md b/writing/vim/windows.md similarity index 100% rename from vim/vim-windows.md rename to writing/vim/windows.md diff --git a/vim/vim_tricks.md b/writing/vim_tricks.md similarity index 100% rename from vim/vim_tricks.md rename to writing/vim_tricks.md From 24bb7014f9913ec7eeacc7d53af02fcb1b02e0fd Mon Sep 17 00:00:00 2001 From: Malin Freeborn Date: Wed, 2 Apr 2025 01:11:02 +0200 Subject: [PATCH 4/8] write tex setup --- writing/latex_setup.md | 78 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 writing/latex_setup.md diff --git a/writing/latex_setup.md b/writing/latex_setup.md new file mode 100644 index 0000000..fe7cd42 --- /dev/null +++ b/writing/latex_setup.md @@ -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 +``` + From 45eae50c2412e2ba4e8467bad0fa495ba66d1f0d Mon Sep 17 00:00:00 2001 From: Malin Freeborn Date: Wed, 9 Apr 2025 15:40:38 +0200 Subject: [PATCH 5/8] typo --- basics/time.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/basics/time.md b/basics/time.md index ddaa121..51fc410 100644 --- a/basics/time.md +++ b/basics/time.md @@ -56,7 +56,7 @@ Then set that language, with: LANG=pl_PL.UTF-8 ``` -... then reboot. +...then reboot. # Network Time Protocol From 98dbb5e3d6072730b03a55b60e5d85c2f4f218ae Mon Sep 17 00:00:00 2001 From: Malin Freeborn Date: Tue, 15 Apr 2025 13:51:33 +0200 Subject: [PATCH 6/8] write sc-im conversions --- data/sc-im/convert_spreadsheets.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 data/sc-im/convert_spreadsheets.md diff --git a/data/sc-im/convert_spreadsheets.md b/data/sc-im/convert_spreadsheets.md new file mode 100644 index 0000000..fb2da40 --- /dev/null +++ b/data/sc-im/convert_spreadsheets.md @@ -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 +``` From 63e4c409bb54649ff67265bb8f1ae85cc95ab4f6 Mon Sep 17 00:00:00 2001 From: Malin Freeborn Date: Wed, 30 Apr 2025 15:39:05 +0200 Subject: [PATCH 7/8] fix missing links --- chat/profanity.md | 1 - distros/void/void_basics.md | 2 +- writing/vim.md | 9 +++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/chat/profanity.md b/chat/profanity.md index 9a30983..c35c0db 100644 --- a/chat/profanity.md +++ b/chat/profanity.md @@ -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). diff --git a/distros/void/void_basics.md b/distros/void/void_basics.md index 91ec92a..62ba895 100644 --- a/distros/void/void_basics.md +++ b/distros/void/void_basics.md @@ -57,5 +57,5 @@ brightnessctl s 10%+ - [autologin](autologin.md) - [services](sv.md) -- [wifi](wpa_cli.md) +- [wifi](../../networking/wpa_supplicant.md) diff --git a/writing/vim.md b/writing/vim.md index 89e1d7a..cf8368d 100644 --- a/writing/vim.md +++ b/writing/vim.md @@ -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) From 1dfdac516b1489752e18da162e8aea86241b252e Mon Sep 17 00:00:00 2001 From: Malin Freeborn Date: Wed, 30 Apr 2025 15:39:11 +0200 Subject: [PATCH 8/8] add basic vim requirements to vim --- writing/vim/completion.md | 1 + writing/vim/navigate.md | 1 + writing/vim/search.md | 1 + writing/vim/vim_in_bash.md | 1 + writing/vim/windows.md | 1 + 5 files changed, 5 insertions(+) diff --git a/writing/vim/completion.md b/writing/vim/completion.md index 524b8c7..ebe9ccc 100644 --- a/writing/vim/completion.md +++ b/writing/vim/completion.md @@ -1,6 +1,7 @@ --- title: "vim completion" tags: [ "vim", "completion" ] +requires: [ "vim basics" ] --- Complete the word by searching for the *n*ext similar word: diff --git a/writing/vim/navigate.md b/writing/vim/navigate.md index 4b8de50..e2bab0b 100644 --- a/writing/vim/navigate.md +++ b/writing/vim/navigate.md @@ -1,6 +1,7 @@ --- title: "vim navigation" tags: [ "vim", "navigation" ] +requires: [ "vim basics" ] --- | Move | Command | diff --git a/writing/vim/search.md b/writing/vim/search.md index 3963639..386ac2d 100644 --- a/writing/vim/search.md +++ b/writing/vim/search.md @@ -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 `#`. diff --git a/writing/vim/vim_in_bash.md b/writing/vim/vim_in_bash.md index b0d28fe..1c2fbaa 100644 --- a/writing/vim/vim_in_bash.md +++ b/writing/vim/vim_in_bash.md @@ -1,6 +1,7 @@ --- title: "vim in bash" tags: [ "vim", "bash", "inputrc" ] +requires: [ "vim basics" ] --- Put bash in vim mode! diff --git a/writing/vim/windows.md b/writing/vim/windows.md index fdd8c97..efd432f 100644 --- a/writing/vim/windows.md +++ b/writing/vim/windows.md @@ -1,6 +1,7 @@ --- title: "vim windows" tags: [ "vim" ] +requires: [ "vim basics" ] --- | Command | Keys |