aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitja Felicijan <mitja.felicijan@gmail.com>2023-05-26 00:45:36 +0200
committerMitja Felicijan <mitja.felicijan@gmail.com>2023-05-26 00:45:36 +0200
commitd26a55ee8b520a1ae0fc4c0973d3f9880a5357f8 (patch)
tree70048479e9573569dcb0cb35ea86a3116204ea04
parent43b0708769eb61392050045b881f8e6ba39c5b66 (diff)
downloadmitjafelicijan.com-d26a55ee8b520a1ae0fc4c0973d3f9880a5357f8.tar.gz
Housecleaning
-rw-r--r--content/notes/cachebusting-in-hugo.md1
-rw-r--r--content/notes/catv-weechat-config.md5
-rw-r--r--content/notes/convert-mkv.md1
-rw-r--r--content/notes/dcss-materials.md72
-rw-r--r--content/notes/download-youtube-videos.md1
-rw-r--r--content/notes/extend-lua-with-custom-c.md1
-rw-r--r--content/notes/fix-plan9-bootloader.md1
-rw-r--r--content/notes/fresh-9front-desktop.md1
-rw-r--r--content/notes/git-push-multiple-origins.md1
-rw-r--r--content/notes/install-plan9port-linux.md1
-rw-r--r--content/notes/mass-set-permission.md1
-rw-r--r--content/notes/mount-plan9-over-network.md1
-rw-r--r--content/notes/non-blocking-shell-exec-csharp.md1
-rw-r--r--content/notes/parse-rss-with-lua.md2
-rw-r--r--content/notes/plan9-screenshot.md1
-rw-r--r--content/notes/preview-troff-man-pages.md1
-rw-r--r--content/notes/run-9front-in-qemu.md1
-rw-r--r--content/notes/show-xterm-colors.md1
-rw-r--r--content/notes/tmux-sane-defaults.md1
-rw-r--r--content/notes/write-iso-usb.md2
20 files changed, 72 insertions, 25 deletions
diff --git a/content/notes/cachebusting-in-hugo.md b/content/notes/cachebusting-in-hugo.md
index 34e1684..63baf1a 100644
--- a/content/notes/cachebusting-in-hugo.md
+++ b/content/notes/cachebusting-in-hugo.md
@@ -15,3 +15,4 @@ tags: [hugo, cachebusting]
15 15
16This `6fab11c6669976d759d2992eff1dd5be` can be random string you generate use. 16This `6fab11c6669976d759d2992eff1dd5be` can be random string you generate use.
17You can use whatever you want. 17You can use whatever you want.
18
diff --git a/content/notes/catv-weechat-config.md b/content/notes/catv-weechat-config.md
index ea53120..98c33ce 100644
--- a/content/notes/catv-weechat-config.md
+++ b/content/notes/catv-weechat-config.md
@@ -7,8 +7,8 @@ draft: false
7tags: [irc, weechat, cat-v] 7tags: [irc, weechat, cat-v]
8--- 8---
9 9
10Set up weechat to connect to #cat-v on oftc. This applies to [weechat](https://weechat.org/) 10Set up weechat to connect to #cat-v on oftc. This applies to
11but should be similar for other irc clients. 11[weechat](https://weechat.org/) but should be similar for other irc clients.
12 12
13```sh 13```sh
14# Install weechat and launch it and execute the following commands. 14# Install weechat and launch it and execute the following commands.
@@ -18,3 +18,4 @@ but should be similar for other irc clients.
18/set irc.server.oftc.autojoin "#cat-v" 18/set irc.server.oftc.autojoin "#cat-v"
19/set irc.server.oftc.nicks "nick1,nick2,nick3" 19/set irc.server.oftc.nicks "nick1,nick2,nick3"
20``` 20```
21
diff --git a/content/notes/convert-mkv.md b/content/notes/convert-mkv.md
index 0e1987a..85928d6 100644
--- a/content/notes/convert-mkv.md
+++ b/content/notes/convert-mkv.md
@@ -19,3 +19,4 @@ find ./ -name '*.mkv' -exec bash -c 'ffmpeg -i "$0" -vcodec libvpx -acodec libvo
19# Convert all MKV files into MP4 format. 19# Convert all MKV files into MP4 format.
20find ./ -name '*.mkv' -exec bash -c 'ffmpeg -i "$0" c:a copy -c:v copy -cpu-used 5 -threads 8 "${0%%.mp4}.mp4"' {} \; 20find ./ -name '*.mkv' -exec bash -c 'ffmpeg -i "$0" c:a copy -c:v copy -cpu-used 5 -threads 8 "${0%%.mp4}.mp4"' {} \;
21``` 21```
22
diff --git a/content/notes/dcss-materials.md b/content/notes/dcss-materials.md
index e446224..42763f1 100644
--- a/content/notes/dcss-materials.md
+++ b/content/notes/dcss-materials.md
@@ -8,17 +8,21 @@ tags: [dcss]
8--- 8---
9 9
10An amazing game deserves an amazing guide. All this material can be find in 10An amazing game deserves an amazing guide. All this material can be find in
11some for on another on [craw's](https://github.com/crawl/crawl) official 11some form on another on [craw's](https://github.com/crawl/crawl) official
12repository. 12repository.
13 13
14- [DCSS Quickstart](/notes/dcss-quickstart.pdf) - Very short introduction to the game 14- [DCSS Quickstart](/notes/dcss-quickstart.pdf) - Very short introduction to
15 the game
15- [DCSS Manual](/notes/dcss_manual.pdf) - Extensive manual about the game 16- [DCSS Manual](/notes/dcss_manual.pdf) - Extensive manual about the game
16 17
17![Dungeon Crawl Stone Soup](/notes/dcss.jpg) 18![Dungeon Crawl Stone Soup](/notes/dcss.jpg)
18 19
19**Movement and Exploration** 20**Movement and Exploration**
20 21
21- You can move around with the numpad (try numlock on and off), vi-keys, or clicking with the mouse. Arrow keys work, though you can't move diagonally with them. Pressing Shift and a direction will move until you see/hit something. 22- You can move around with the numpad (try numlock on and off), vi-keys, or
23 clicking with the mouse. Arrow keys work, though you can't move diagonally
24 with them. Pressing Shift and a direction will move until you see/hit
25 something.
22- Pressing `>` will take you down a staircase, and `<` to go up a staircase. 26- Pressing `>` will take you down a staircase, and `<` to go up a staircase.
23- You can open doors by walking into them, and close them with `C`. 27- You can open doors by walking into them, and close them with `C`.
24- You can autoexplore by pressing `o`. 28- You can autoexplore by pressing `o`.
@@ -28,22 +32,34 @@ repository.
28 32
29- You can pick up items with `,` or `g`. 33- You can pick up items with `,` or `g`.
30- Wield weapons with `w`. Weapons have different stats. 34- Wield weapons with `w`. Weapons have different stats.
31 - (You may also engage in Unarmed Combat, though it isn't very effective when untrained). 35 - (You may also engage in Unarmed Combat, though it isn't very effective
36 when untrained).
32- Attack monsters in melee by walking in their direction (or with Ctrl-direction). 37- Attack monsters in melee by walking in their direction (or with Ctrl-direction).
33- You can wait with `.` or `s`, passing your turn - such as to get monsters into a corridor with you. 38- You can wait with `.` or `s`, passing your turn - such as to get monsters
34- You can rest with `5`, waiting until you are fully healed, or something noteworthy happens. 39 into a corridor with you.
35- Either mouseover and rightclick, or use `x` then `v` on the monster to examine monsters. Monsters with a red border are 'dangerous' relative to your current XP level (XL). 40- You can rest with `5`, waiting until you are fully healed, or something
41 noteworthy happens.
42- Either mouseover and rightclick, or use `x` then `v` on the monster to
43 examine monsters. Monsters with a red border are 'dangerous' relative to
44 your current XP level (XL).
36- Quiver (often ranged) actions for further use with `Q`. 45- Quiver (often ranged) actions for further use with `Q`.
37- You can fire ranged weapons manually with `f`, or auto-target your quiver with `p` or `Shift-Tab`. Throwing weapons can be thrown immediately, while launchers (like bows) need to be wielded first. 46- You can fire ranged weapons manually with `f`, or auto-target your quiver
47 with `p` or `Shift-Tab`. Throwing weapons can be thrown immediately, while
48 launchers (like bows) need to be wielded first.
38 49
39**Items and Inventory** 50**Items and Inventory**
40 51
41- View your inventory by pressing `i`. Most item related commands can also be done with this menu. 52- View your inventory by pressing `i`. Most item related commands can also be
42- You can wear amour with `W;` amour gives `AC`, while heavier body armour reduces `EV`. 53 done with this menu.
43- Autoexplore will automatically pick up useful items, such as potions and scrolls, if you aren't in danger. 54- You can wear amour with `W;` amour gives `AC`, while heavier body armour
55 reduces `EV`.
56- Autoexplore will automatically pick up useful items, such as potions and
57 scrolls, if you aren't in danger.
44- You can read scrolls with `r` and drink ("quaff") potions with `q`. 58- You can read scrolls with `r` and drink ("quaff") potions with `q`.
45- Equipment items may have brands, with special properties. Branded equipment is blue when unidentified. 59- Equipment items may have brands, with special properties. Branded equipment
46- Equipment items may be artifacts, often with unique properties, and are unmodifiable. They are written in white. 60 is blue when unidentified.
61- Equipment items may be artifacts, often with unique properties, and are
62 unmodifiable. They are written in white.
47- You can evoke wands with `V`. 63- You can evoke wands with `V`.
48- You can put on jewelry with `P`, and remove it with `R`. 64- You can put on jewelry with `P`, and remove it with `R`.
49- Gold is used in shops, which can be interacted with by either `>` or `<`. 65- Gold is used in shops, which can be interacted with by either `>` or `<`.
@@ -51,19 +67,33 @@ repository.
51**Magic and Spellcasting** 67**Magic and Spellcasting**
52 68
53- Once you find a spellbook, you can memorize spells with `M`. 69- Once you find a spellbook, you can memorize spells with `M`.
54- You need to be the same XL as the spell's spell level in order to learn it, in addition to training magical skill (to lower failure rate). 70- You need to be the same XL as the spell's spell level in order to learn it,
55- Cast spells by pressing `z`, then the letter assigned to the spell. You may also Quiver a spell and then use it like a ranged weapon (with Shift-Tab). 71 in addition to training magical skill (to lower failure rate).
72- Cast spells by pressing `z`, then the letter assigned to the spell. You may
73 also Quiver a spell and then use it like a ranged weapon (with Shift-Tab).
56- You can view your memorized spells by pressing `I` (capital-i) or `z`. 74- You can view your memorized spells by pressing `I` (capital-i) or `z`.
57- Like HP, you can recover MP by resting (with 5). 75- Like HP, you can recover MP by resting (with 5).
58- Many spells can be positioned more effectively, or combined with other spells, in order to get (more effective) use out of them. 76- Many spells can be positioned more effectively, or combined with other
77 spells, in order to get (more effective) use out of them.
59- Heavier body amour and shields hamper spellcasting. 78- Heavier body amour and shields hamper spellcasting.
60 79
61**Gods and Divine Abilities** 80**Gods and Divine Abilities**
62 81
63- You may look at a god's overview by praying at their altar (with `>` or `<`). After praying, you can worship the god by pressing Enter afterwards. 82- You may look at a god's overview by praying at their altar (with `>` or `<`).
64- Gods all have unique features about them. Trog, the god of the tutorial, is also the god of rage and bloodshed, and so despises spellcasting. 83 After praying, you can worship the god by pressing Enter afterwards.
65- Gods like and dislike different things. Most gods either like killing things (like Trog) or exploring new areas (like Elyvilon), rewarding you piety (divine favor) for doing so. 84- Gods all have unique features about them. Trog, the god of the tutorial, is
66- You should learn to use and even rely on divine abilities often, as they are usually very strong. Trog's Berserk gives you 1.5x health, 1.5x speed (to all valid actions), and a big damage boost. Note that Berserk prevents most actions other than move and melee attack, and runs out very quickly if you aren't attacking. And after berserk ends, you are slowed down and can't berserk again for a short time. 85 also the god of rage and bloodshed, and so despises spellcasting.
67- In addition, the vast majority of abilities consume piety in the process. Regardless, this ability is very cheap, and the benefits are incredible, so don't hold back! 86- Gods like and dislike different things. Most gods either like killing things
87 (like Trog) or exploring new areas (like Elyvilon), rewarding you piety
88 (divine favor) for doing so.
89- You should learn to use and even rely on divine abilities often, as they are
90 usually very strong. Trog's Berserk gives you 1.5x health, 1.5x speed (to
91 all valid actions), and a big damage boost. Note that Berserk prevents most
92 actions other than move and melee attack, and runs out very quickly if you
93 aren't attacking. And after berserk ends, you are slowed down and can't
94 berserk again for a short time.
95- In addition, the vast majority of abilities consume piety in the process.
96 Regardless, this ability is very cheap, and the benefits are incredible,
97 so don't hold back!
68- Pressing `^` will let you view your current god, abilities, and piety. 98- Pressing `^` will let you view your current god, abilities, and piety.
69 99
diff --git a/content/notes/download-youtube-videos.md b/content/notes/download-youtube-videos.md
index 6d26d12..f9f9481 100644
--- a/content/notes/download-youtube-videos.md
+++ b/content/notes/download-youtube-videos.md
@@ -22,3 +22,4 @@ Download and install https://github.com/yt-dlp/yt-dlp.
22# This will download all videos in videos.txt. 22# This will download all videos in videos.txt.
23yt-dlp --batch-file videos.txt -N `nproc` -f webm 23yt-dlp --batch-file videos.txt -N `nproc` -f webm
24``` 24```
25
diff --git a/content/notes/extend-lua-with-custom-c.md b/content/notes/extend-lua-with-custom-c.md
index eaa55a1..708e6fd 100644
--- a/content/notes/extend-lua-with-custom-c.md
+++ b/content/notes/extend-lua-with-custom-c.md
@@ -51,3 +51,4 @@ Makefile will need to be modified.
51 clean: 51 clean:
52 rm *.so 52 rm *.so
53 ``` 53 ```
54
diff --git a/content/notes/fix-plan9-bootloader.md b/content/notes/fix-plan9-bootloader.md
index fdd9425..3ab571f 100644
--- a/content/notes/fix-plan9-bootloader.md
+++ b/content/notes/fix-plan9-bootloader.md
@@ -17,3 +17,4 @@ dd if=/dev/zero of=/dev/sdX bs=512 count=1
17# press delete key to stop the command. 17# press delete key to stop the command.
18cat </dev/zero >/dev/sd*/data 18cat </dev/zero >/dev/sd*/data
19``` 19```
20
diff --git a/content/notes/fresh-9front-desktop.md b/content/notes/fresh-9front-desktop.md
index 840126a..0191da4 100644
--- a/content/notes/fresh-9front-desktop.md
+++ b/content/notes/fresh-9front-desktop.md
@@ -11,3 +11,4 @@ I have been experimenting with Plan9/9front for a week now. Noice! This is how
11my desktop looks like. 11my desktop looks like.
12 12
13![9front desktop](/notes/9front-desktop.png) 13![9front desktop](/notes/9front-desktop.png)
14
diff --git a/content/notes/git-push-multiple-origins.md b/content/notes/git-push-multiple-origins.md
index 929a5dc..5aa5ac7 100644
--- a/content/notes/git-push-multiple-origins.md
+++ b/content/notes/git-push-multiple-origins.md
@@ -14,3 +14,4 @@ multiple push urls to your git config. This is a shorthand for command above.
14```sh 14```sh
15git config --global alias.pushall '!sh -c "git remote | xargs -L1 git push --all"' 15git config --global alias.pushall '!sh -c "git remote | xargs -L1 git push --all"'
16``` 16```
17
diff --git a/content/notes/install-plan9port-linux.md b/content/notes/install-plan9port-linux.md
index b74d2c0..4773161 100644
--- a/content/notes/install-plan9port-linux.md
+++ b/content/notes/install-plan9port-linux.md
@@ -17,3 +17,4 @@ git clone https://github.com/9fans/plan9port $HOME/plan9
17cd $HOME/plan9/plan9port 17cd $HOME/plan9/plan9port
18./INSTALL -r $HOME/plan9 18./INSTALL -r $HOME/plan9
19``` 19```
20
diff --git a/content/notes/mass-set-permission.md b/content/notes/mass-set-permission.md
index b57374c..b1e1480 100644
--- a/content/notes/mass-set-permission.md
+++ b/content/notes/mass-set-permission.md
@@ -13,3 +13,4 @@ files matching the pattern. Change `+` to `-` to add executable bit.
13```sh 13```sh
14find . -type f -name "*.xml" -exec chmod -x {} + 14find . -type f -name "*.xml" -exec chmod -x {} +
15``` 15```
16
diff --git a/content/notes/mount-plan9-over-network.md b/content/notes/mount-plan9-over-network.md
index f643395..2e17d7d 100644
--- a/content/notes/mount-plan9-over-network.md
+++ b/content/notes/mount-plan9-over-network.md
@@ -20,3 +20,4 @@ aux/listen1 -tv tcp!*!9999 /bin/exportfs -r tmp # export tmp folder
209pfs 172.18.0.1 -p 9999 local_folder # mount 209pfs 172.18.0.1 -p 9999 local_folder # mount
21umount local_folder # unmount 21umount local_folder # unmount
22``` 22```
23
diff --git a/content/notes/non-blocking-shell-exec-csharp.md b/content/notes/non-blocking-shell-exec-csharp.md
index cf43716..b5891e3 100644
--- a/content/notes/non-blocking-shell-exec-csharp.md
+++ b/content/notes/non-blocking-shell-exec-csharp.md
@@ -41,3 +41,4 @@ private async void button_Click(object sender, EventArgs e)
41 await executeCopyCommand(); 41 await executeCopyCommand();
42} 42}
43``` 43```
44
diff --git a/content/notes/parse-rss-with-lua.md b/content/notes/parse-rss-with-lua.md
index 1efeae5..c28c20c 100644
--- a/content/notes/parse-rss-with-lua.md
+++ b/content/notes/parse-rss-with-lua.md
@@ -8,6 +8,7 @@ tags: [lua, rss]
8--- 8---
9 9
10Example of parsing RSS feeds with Lua. Before running the script install: 10Example of parsing RSS feeds with Lua. Before running the script install:
11
11- feedparser with `luarocks install feedparser` 12- feedparser with `luarocks install feedparser`
12- luasocket with `luarocks install luasocket` 13- luasocket with `luarocks install luasocket`
13 14
@@ -37,3 +38,4 @@ else
37 print("! Request failed. Status:", status) 38 print("! Request failed. Status:", status)
38end 39end
39``` 40```
41
diff --git a/content/notes/plan9-screenshot.md b/content/notes/plan9-screenshot.md
index c8a8f23..c26a7a6 100644
--- a/content/notes/plan9-screenshot.md
+++ b/content/notes/plan9-screenshot.md
@@ -15,3 +15,4 @@ image.
15```sh 15```sh
16cat /dev/screen | topng > screen.png 16cat /dev/screen | topng > screen.png
17``` 17```
18
diff --git a/content/notes/preview-troff-man-pages.md b/content/notes/preview-troff-man-pages.md
index ad94256..0af4c6c 100644
--- a/content/notes/preview-troff-man-pages.md
+++ b/content/notes/preview-troff-man-pages.md
@@ -17,3 +17,4 @@ groff -man -Tascii filename
17# On Plan9 system. 17# On Plan9 system.
18man 1 filename 18man 1 filename
19``` 19```
20
diff --git a/content/notes/run-9front-in-qemu.md b/content/notes/run-9front-in-qemu.md
index 3bf2ff5..dbfec85 100644
--- a/content/notes/run-9front-in-qemu.md
+++ b/content/notes/run-9front-in-qemu.md
@@ -25,3 +25,4 @@ qemu-system-x86_64 -cpu host -enable-kvm -m 1024 \
25 -drive if=none,id=vd1,file=$HOME/VM/ISO/9front.386.iso \ 25 -drive if=none,id=vd1,file=$HOME/VM/ISO/9front.386.iso \
26 -device scsi-cd,drive=vd1,bootindex=0 26 -device scsi-cd,drive=vd1,bootindex=0
27``` 27```
28
diff --git a/content/notes/show-xterm-colors.md b/content/notes/show-xterm-colors.md
index 008966b..a8802fd 100644
--- a/content/notes/show-xterm-colors.md
+++ b/content/notes/show-xterm-colors.md
@@ -82,3 +82,4 @@ case ${1-none} in
82 ;; 82 ;;
83esac | less --raw-control-chars --QUIT-AT-EOF --no-init 83esac | less --raw-control-chars --QUIT-AT-EOF --no-init
84``` 84```
85
diff --git a/content/notes/tmux-sane-defaults.md b/content/notes/tmux-sane-defaults.md
index bd76d28..f75f307 100644
--- a/content/notes/tmux-sane-defaults.md
+++ b/content/notes/tmux-sane-defaults.md
@@ -34,3 +34,4 @@ set -g window-status-current-format "#[fg=#ffffff]#[bg=#111111]#[fg=#ffffff]#[bg
34# Disable mouse mode (tmux 2.1 and above). 34# Disable mouse mode (tmux 2.1 and above).
35set -g mouse off 35set -g mouse off
36``` 36```
37
diff --git a/content/notes/write-iso-usb.md b/content/notes/write-iso-usb.md
index 9e379fd..8dff651 100644
--- a/content/notes/write-iso-usb.md
+++ b/content/notes/write-iso-usb.md
@@ -13,5 +13,3 @@ Write ISO to USB key. Nothing fancy here.
13sudo dd if=iso_file.iso of=/dev/sdX bs=4M status=progress conv=fdatasync 13sudo dd if=iso_file.iso of=/dev/sdX bs=4M status=progress conv=fdatasync
14``` 14```
15 15
16
17