aboutsummaryrefslogtreecommitdiff
path: root/content/notes
diff options
context:
space:
mode:
authorMitja Felicijan <mitja.felicijan@gmail.com>2023-06-27 14:50:20 +0200
committerMitja Felicijan <mitja.felicijan@gmail.com>2023-06-27 14:50:20 +0200
commit8697555125c57ae64a0c9b78514b4aac4fd523de (patch)
treea699df53a7c35a4425f30bca86982c4341f6de40 /content/notes
parent33b2615a5038bc85036081e8b5e0da8584d88097 (diff)
downloadmitjafelicijan.com-8697555125c57ae64a0c9b78514b4aac4fd523de.tar.gz
Massive formatting and added figcaption
Diffstat (limited to 'content/notes')
-rw-r--r--content/notes/cachebusting-in-hugo.md1
-rw-r--r--content/notes/cronjobs-github-with-actions.md17
-rw-r--r--content/notes/dcss-new-player-guide.md83
-rw-r--r--content/notes/dcss-on-4k-displays.md4
-rw-r--r--content/notes/development-environments-with-nix.md3
-rw-r--r--content/notes/easy-time-took-in-bash.md4
-rw-r--r--content/notes/ewd-manuscripts-ebook.md4
-rw-r--r--content/notes/extending-dte-editor.md15
-rw-r--r--content/notes/grep-to-less-maintain-colors.md11
-rw-r--r--content/notes/install-plan9port-linux.md7
-rw-r--r--content/notes/non-blocking-shell-exec-csharp.md4
-rw-r--r--content/notes/presentations-with-markdown.md4
12 files changed, 80 insertions, 77 deletions
diff --git a/content/notes/cachebusting-in-hugo.md b/content/notes/cachebusting-in-hugo.md
index 05ec859..707125a 100644
--- a/content/notes/cachebusting-in-hugo.md
+++ b/content/notes/cachebusting-in-hugo.md
@@ -15,4 +15,3 @@ tags: [hugo]
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/cronjobs-github-with-actions.md b/content/notes/cronjobs-github-with-actions.md
index 13e7618..4ae2f71 100644
--- a/content/notes/cronjobs-github-with-actions.md
+++ b/content/notes/cronjobs-github-with-actions.md
@@ -7,17 +7,16 @@ draft: false
7tags: [github] 7tags: [github]
8--- 8---
9 9
10In the root of your repository create a folder `.github/workflows` and 10In the root of your repository create a folder `.github/workflows` and in that
11in that folder create a file a file `cron.yaml`. This file can be named 11folder create a file a file `cron.yaml`. This file can be named whatever you
12whatever you wish. But it has to be a `yaml` file. 12wish. But it has to be a `yaml` file.
13 13
14File below (`.github/workflows/cron.yaml`) describes an action that will 14File below (`.github/workflows/cron.yaml`) describes an action that will trigger
15trigger every six hours and it will curl example.com. 15every six hours and it will curl example.com.
16
17However. Be sure that you have enough credits. Free account is not that
18generous with the minutes they give you for free. Check more about
19GitHub Actions usage on their website https://docs.github.com/en/actions.
20 16
17However. Be sure that you have enough credits. Free account is not that generous
18with the minutes they give you for free. Check more about GitHub Actions usage
19on their website https://docs.github.com/en/actions.
21 20
22```yaml 21```yaml
23# .github/workflows/cron.yaml 22# .github/workflows/cron.yaml
diff --git a/content/notes/dcss-new-player-guide.md b/content/notes/dcss-new-player-guide.md
index bbeb401..2956681 100644
--- a/content/notes/dcss-new-player-guide.md
+++ b/content/notes/dcss-new-player-guide.md
@@ -7,21 +7,20 @@ draft: false
7tags: [dcss] 7tags: [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 some
11some form on another on [craw's](https://github.com/crawl/crawl) official 11form on another on [craw's](https://github.com/crawl/crawl) official repository.
12repository.
13 12
14- [DCSS Quickstart](/notes/dcss-quickstart.pdf) - Very short introduction to 13- [DCSS Quickstart](/notes/dcss-quickstart.pdf) - Very short introduction to the
15 the game 14 game
16- [DCSS Manual](/notes/dcss_manual.pdf) - Extensive manual about the game 15- [DCSS Manual](/notes/dcss_manual.pdf) - Extensive manual about the game
17 16
18![Dungeon Crawl Stone Soup](/notes/dcss.jpg) 17![Dungeon Crawl Stone Soup](/notes/dcss.jpg)
19 18
20**Movement and Exploration** 19**Movement and Exploration**
21 20
22- You can move around with the numpad (try numlock on and off), vi-keys, or 21- 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 22 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 23 with them. Pressing Shift and a direction will move until you see/hit
25 something. 24 something.
26- Pressing `>` will take you down a staircase, and `<` to go up a staircase. 25- Pressing `>` will take you down a staircase, and `<` to go up a staircase.
27- You can open doors by walking into them, and close them with `C`. 26- You can open doors by walking into them, and close them with `C`.
@@ -32,33 +31,34 @@ repository.
32 31
33- You can pick up items with `,` or `g`. 32- You can pick up items with `,` or `g`.
34- Wield weapons with `w`. Weapons have different stats. 33- Wield weapons with `w`. Weapons have different stats.
35 - (You may also engage in Unarmed Combat, though it isn't very effective 34 - (You may also engage in Unarmed Combat, though it isn't very effective when
36 when untrained). 35 untrained).
37- Attack monsters in melee by walking in their direction (or with Ctrl-direction). 36- Attack monsters in melee by walking in their direction (or with
38- You can wait with `.` or `s`, passing your turn - such as to get monsters 37 Ctrl-direction).
39 into a corridor with you. 38- You can wait with `.` or `s`, passing your turn - such as to get monsters into
40- You can rest with `5`, waiting until you are fully healed, or something 39 a corridor with you.
40- You can rest with `5`, waiting until you are fully healed, or something
41 noteworthy happens. 41 noteworthy happens.
42- Either mouseover and rightclick, or use `x` then `v` on the monster to 42- Either mouseover and rightclick, or use `x` then `v` on the monster to examine
43 examine monsters. Monsters with a red border are 'dangerous' relative to 43 monsters. Monsters with a red border are 'dangerous' relative to your current
44 your current XP level (XL). 44 XP level (XL).
45- Quiver (often ranged) actions for further use with `Q`. 45- Quiver (often ranged) actions for further use with `Q`.
46- You can fire ranged weapons manually with `f`, or auto-target your quiver 46- You can fire ranged weapons manually with `f`, or auto-target your quiver with
47 with `p` or `Shift-Tab`. Throwing weapons can be thrown immediately, while 47 `p` or `Shift-Tab`. Throwing weapons can be thrown immediately, while
48 launchers (like bows) need to be wielded first. 48 launchers (like bows) need to be wielded first.
49 49
50**Items and Inventory** 50**Items and Inventory**
51 51
52- View your inventory by pressing `i`. Most item related commands can also be 52- View your inventory by pressing `i`. Most item related commands can also be
53 done with this menu. 53 done with this menu.
54- You can wear amour with `W;` amour gives `AC`, while heavier body armour 54- You can wear amour with `W;` amour gives `AC`, while heavier body armour
55 reduces `EV`. 55 reduces `EV`.
56- Autoexplore will automatically pick up useful items, such as potions and 56- Autoexplore will automatically pick up useful items, such as potions and
57 scrolls, if you aren't in danger. 57 scrolls, if you aren't in danger.
58- 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`.
59- Equipment items may have brands, with special properties. Branded equipment 59- Equipment items may have brands, with special properties. Branded equipment is
60 is blue when unidentified. 60 blue when unidentified.
61- Equipment items may be artifacts, often with unique properties, and are 61- Equipment items may be artifacts, often with unique properties, and are
62 unmodifiable. They are written in white. 62 unmodifiable. They are written in white.
63- You can evoke wands with `V`. 63- You can evoke wands with `V`.
64- 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`.
@@ -67,33 +67,32 @@ repository.
67**Magic and Spellcasting** 67**Magic and Spellcasting**
68 68
69- Once you find a spellbook, you can memorize spells with `M`. 69- Once you find a spellbook, you can memorize spells with `M`.
70- You need to be the same XL as the spell's spell level in order to learn it, 70- You need to be the same XL as the spell's spell level in order to learn it, in
71 in addition to training magical skill (to lower failure rate). 71 addition to training magical skill (to lower failure rate).
72- Cast spells by pressing `z`, then the letter assigned to the spell. You may 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). 73 also Quiver a spell and then use it like a ranged weapon (with Shift-Tab).
74- 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`.
75- Like HP, you can recover MP by resting (with 5). 75- Like HP, you can recover MP by resting (with 5).
76- Many spells can be positioned more effectively, or combined with other 76- Many spells can be positioned more effectively, or combined with other spells,
77 spells, in order to get (more effective) use out of them. 77 in order to get (more effective) use out of them.
78- Heavier body amour and shields hamper spellcasting. 78- Heavier body amour and shields hamper spellcasting.
79 79
80**Gods and Divine Abilities** 80**Gods and Divine Abilities**
81 81
82- You may look at a god's overview by praying at their altar (with `>` or `<`). 82- You may look at a god's overview by praying at their altar (with `>` or `<`).
83 After praying, you can worship the god by pressing Enter afterwards. 83 After praying, you can worship the god by pressing Enter afterwards.
84- Gods all have unique features about them. Trog, the god of the tutorial, is 84- Gods all have unique features about them. Trog, the god of the tutorial, is
85 also the god of rage and bloodshed, and so despises spellcasting. 85 also the god of rage and bloodshed, and so despises spellcasting.
86- Gods like and dislike different things. Most gods either like killing things 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 87 (like Trog) or exploring new areas (like Elyvilon), rewarding you piety
88 (divine favor) for doing so. 88 (divine favor) for doing so.
89- You should learn to use and even rely on divine abilities often, as they are 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 90 usually very strong. Trog's Berserk gives you 1.5x health, 1.5x speed (to all
91 all valid actions), and a big damage boost. Note that Berserk prevents most 91 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 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 93 aren't attacking. And after berserk ends, you are slowed down and can't
94 berserk again for a short time. 94 berserk again for a short time.
95- In addition, the vast majority of abilities consume piety in the process. 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, 96 Regardless, this ability is very cheap, and the benefits are incredible, so
97 so don't hold back! 97 don't hold back!
98- Pressing `^` will let you view your current god, abilities, and piety. 98- Pressing `^` will let you view your current god, abilities, and piety.
99
diff --git a/content/notes/dcss-on-4k-displays.md b/content/notes/dcss-on-4k-displays.md
index e3c6618..fd588db 100644
--- a/content/notes/dcss-on-4k-displays.md
+++ b/content/notes/dcss-on-4k-displays.md
@@ -25,4 +25,6 @@ tile_sidebar_pixels = 64
25 25
26To zoom in and out in viewport, press `Ctrl+` and `Ctrl-` respectively. 26To zoom in and out in viewport, press `Ctrl+` and `Ctrl-` respectively.
27 27
28All the possible options are documented in the [Dungeon Crawl Stone Soup Options Guide](https://github.com/crawl/crawl/blob/master/crawl-ref/docs/options_guide.txt) file. 28All the possible options are documented in the [Dungeon Crawl Stone Soup Options
29Guide](https://github.com/crawl/crawl/blob/master/crawl-ref/docs/options_guide.txt)
30file.
diff --git a/content/notes/development-environments-with-nix.md b/content/notes/development-environments-with-nix.md
index a6769ed..01844c9 100644
--- a/content/notes/development-environments-with-nix.md
+++ b/content/notes/development-environments-with-nix.md
@@ -9,7 +9,8 @@ tags: [random]
9 9
10Nix is amazing for making reproducible cross OS development environment. 10Nix is amazing for making reproducible cross OS development environment.
11 11
12First you need to [install Nix package manager](https://nixos.org/download.html). 12First you need to [install Nix package
13manager](https://nixos.org/download.html).
13 14
14- Create a file `shell.nix` in your project folder. 15- Create a file `shell.nix` in your project folder.
15- In the section that has `python3` etc add programs you want to use. These can 16- In the section that has `python3` etc add programs you want to use. These can
diff --git a/content/notes/easy-time-took-in-bash.md b/content/notes/easy-time-took-in-bash.md
index b65c090..e20e881 100644
--- a/content/notes/easy-time-took-in-bash.md
+++ b/content/notes/easy-time-took-in-bash.md
@@ -7,7 +7,9 @@ draft: false
7tags: [bash] 7tags: [bash]
8--- 8---
9 9
10In Bash, the `$SECONDS` variable is a special variable that automatically keeps track of the number of seconds since the current shell or script started executing. It starts counting from the moment the script begins running. 10In Bash, the `$SECONDS` variable is a special variable that automatically keeps
11track of the number of seconds since the current shell or script started
12executing. It starts counting from the moment the script begins running.
11 13
12```bash 14```bash
13#!/bin/bash 15#!/bin/bash
diff --git a/content/notes/ewd-manuscripts-ebook.md b/content/notes/ewd-manuscripts-ebook.md
index 1e496b9..5fc39b3 100644
--- a/content/notes/ewd-manuscripts-ebook.md
+++ b/content/notes/ewd-manuscripts-ebook.md
@@ -8,8 +8,8 @@ tags: [random]
8--- 8---
9 9
10I love reading the original manuscripts of Edsger W. Dijkstra. They are 10I love reading the original manuscripts of Edsger W. Dijkstra. They are
11available online at the University of Texas at Austin website, but I also 11available online at the University of Texas at Austin website, but I also found
12found MOBI version. I converted it into ePub as well. 12MOBI version. I converted it into ePub as well.
13 13
14Downloads: 14Downloads:
15 15
diff --git a/content/notes/extending-dte-editor.md b/content/notes/extending-dte-editor.md
index d23cbc7..161c104 100644
--- a/content/notes/extending-dte-editor.md
+++ b/content/notes/extending-dte-editor.md
@@ -7,13 +7,14 @@ draft: false
7tags: [dte] 7tags: [dte]
8--- 8---
9 9
10[`dte`](https://craigbarnes.gitlab.io/dte/) is an interesting editor I started using 10[`dte`](https://craigbarnes.gitlab.io/dte/) is an interesting editor I started
11lately more and more. Since it is using [`execvp()`](https://linux.die.net/man/3/execvp) 11using lately more and more. Since it is using
12it can be easily extended. I needed comment/uncomment feature so I created a 12[`execvp()`](https://linux.die.net/man/3/execvp) it can be easily extended. I
13small utility that does this for me. Code lives on repository 13needed comment/uncomment feature so I created a small utility that does this for
14[dte extensions](https://git.mitjafelicijan.com/dte-extensions.git/about/) 14me. Code lives on repository [dte
15but this utilities can be used for whatever you want. Make sure you have 15extensions](https://git.mitjafelicijan.com/dte-extensions.git/about/) but this
16version 1.11 or above. 16utilities can be used for whatever you want. Make sure you have version 1.11 or
17above.
17 18
18Next one will be invoking formatter based on the type of a file. 19Next one will be invoking formatter based on the type of a file.
19 20
diff --git a/content/notes/grep-to-less-maintain-colors.md b/content/notes/grep-to-less-maintain-colors.md
index 9b797ee..6df2761 100644
--- a/content/notes/grep-to-less-maintain-colors.md
+++ b/content/notes/grep-to-less-maintain-colors.md
@@ -7,16 +7,15 @@ draft: false
7tags: [bash] 7tags: [bash]
8--- 8---
9 9
10I often use `grep` to search for todo's in my code and other people's 10I often use `grep` to search for todo's in my code and other people's code and
11code and then pipe them in `less` and I missed having colors that grep 11then pipe them in `less` and I missed having colors that grep outputs in `less`.
12outputs in `less`.
13 12
14- Grep's `--color=always` use markers to highlight the matching strings. 13- Grep's `--color=always` use markers to highlight the matching strings.
15- Less's `-R` option outputs "raw" control characters. 14- Less's `-R` option outputs "raw" control characters.
16 15
17You could use `alias grep='grep --color=always'` and `alias less='less 16You could use `alias grep='grep --color=always'` and `alias less='less -R'` or
18-R'` or create todo function in your `.bashrc` that accepts first argument 17create todo function in your `.bashrc` that accepts first argument as search
19as search string. 18string.
20 19
21```sh 20```sh
22# This is where the magic happens. 21# This is where the magic happens.
diff --git a/content/notes/install-plan9port-linux.md b/content/notes/install-plan9port-linux.md
index 0ad83cf..b21c73b 100644
--- a/content/notes/install-plan9port-linux.md
+++ b/content/notes/install-plan9port-linux.md
@@ -7,9 +7,10 @@ draft: false
7tags: [plan9] 7tags: [plan9]
8--- 8---
9 9
10Install Plan9port on Linux. This applies to [Plan9port](https://9fans.github.io/plan9port/). 10Install Plan9port on Linux. This applies to
11This is a port of many Plan 9 programs to Unix-like operating systems. Useful for 11[Plan9port](https://9fans.github.io/plan9port/). This is a port of many Plan 9
12programs like `9term` and `rc`. 12programs to Unix-like operating systems. Useful for programs like `9term` and
13`rc`.
13 14
14```sh 15```sh
15sudo apt-get install gcc libx11-dev libxt-dev libxext-dev libfontconfig1-dev 16sudo apt-get install gcc libx11-dev libxt-dev libxext-dev libfontconfig1-dev
diff --git a/content/notes/non-blocking-shell-exec-csharp.md b/content/notes/non-blocking-shell-exec-csharp.md
index db40409..1904c4d 100644
--- a/content/notes/non-blocking-shell-exec-csharp.md
+++ b/content/notes/non-blocking-shell-exec-csharp.md
@@ -32,8 +32,8 @@ private async Task executeCopyCommand()
32} 32}
33``` 33```
34 34
35Make sure that `async` is present in the function definition and `await` is 35Make sure that `async` is present in the function definition and `await` is used
36used in the method that calls `executeCopyCommand()`. 36in the method that calls `executeCopyCommand()`.
37 37
38```c# 38```c#
39private async void button_Click(object sender, EventArgs e) 39private async void button_Click(object sender, EventArgs e)
diff --git a/content/notes/presentations-with-markdown.md b/content/notes/presentations-with-markdown.md
index f43faad..e2ba0a8 100644
--- a/content/notes/presentations-with-markdown.md
+++ b/content/notes/presentations-with-markdown.md
@@ -7,8 +7,8 @@ draft: false
7tags: [random] 7tags: [random]
8--- 8---
9 9
10A simple way to make presentations without using desktop apps or using 10A simple way to make presentations without using desktop apps or using online
11online services is https://github.com/remarkjs/remark. 11services is https://github.com/remarkjs/remark.
12 12
13First create `index.html` and be sure you make changes to `config` variable. 13First create `index.html` and be sure you make changes to `config` variable.
14 14