diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2023-06-27 14:50:20 +0200 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2023-06-27 14:50:20 +0200 |
| commit | 8697555125c57ae64a0c9b78514b4aac4fd523de (patch) | |
| tree | a699df53a7c35a4425f30bca86982c4341f6de40 /content/notes | |
| parent | 33b2615a5038bc85036081e8b5e0da8584d88097 (diff) | |
| download | mitjafelicijan.com-8697555125c57ae64a0c9b78514b4aac4fd523de.tar.gz | |
Massive formatting and added figcaption
Diffstat (limited to 'content/notes')
| -rw-r--r-- | content/notes/cachebusting-in-hugo.md | 1 | ||||
| -rw-r--r-- | content/notes/cronjobs-github-with-actions.md | 17 | ||||
| -rw-r--r-- | content/notes/dcss-new-player-guide.md | 83 | ||||
| -rw-r--r-- | content/notes/dcss-on-4k-displays.md | 4 | ||||
| -rw-r--r-- | content/notes/development-environments-with-nix.md | 3 | ||||
| -rw-r--r-- | content/notes/easy-time-took-in-bash.md | 4 | ||||
| -rw-r--r-- | content/notes/ewd-manuscripts-ebook.md | 4 | ||||
| -rw-r--r-- | content/notes/extending-dte-editor.md | 15 | ||||
| -rw-r--r-- | content/notes/grep-to-less-maintain-colors.md | 11 | ||||
| -rw-r--r-- | content/notes/install-plan9port-linux.md | 7 | ||||
| -rw-r--r-- | content/notes/non-blocking-shell-exec-csharp.md | 4 | ||||
| -rw-r--r-- | content/notes/presentations-with-markdown.md | 4 |
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 | ||
| 16 | This `6fab11c6669976d759d2992eff1dd5be` can be random string you generate use. | 16 | This `6fab11c6669976d759d2992eff1dd5be` can be random string you generate use. |
| 17 | You can use whatever you want. | 17 | You 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 | |||
| 7 | tags: [github] | 7 | tags: [github] |
| 8 | --- | 8 | --- |
| 9 | 9 | ||
| 10 | In the root of your repository create a folder `.github/workflows` and | 10 | In the root of your repository create a folder `.github/workflows` and in that |
| 11 | in that folder create a file a file `cron.yaml`. This file can be named | 11 | folder create a file a file `cron.yaml`. This file can be named whatever you |
| 12 | whatever you wish. But it has to be a `yaml` file. | 12 | wish. But it has to be a `yaml` file. |
| 13 | 13 | ||
| 14 | File below (`.github/workflows/cron.yaml`) describes an action that will | 14 | File below (`.github/workflows/cron.yaml`) describes an action that will trigger |
| 15 | trigger every six hours and it will curl example.com. | 15 | every six hours and it will curl example.com. |
| 16 | |||
| 17 | However. Be sure that you have enough credits. Free account is not that | ||
| 18 | generous with the minutes they give you for free. Check more about | ||
| 19 | GitHub Actions usage on their website https://docs.github.com/en/actions. | ||
| 20 | 16 | ||
| 17 | However. Be sure that you have enough credits. Free account is not that generous | ||
| 18 | with the minutes they give you for free. Check more about GitHub Actions usage | ||
| 19 | on 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 | |||
| 7 | tags: [dcss] | 7 | tags: [dcss] |
| 8 | --- | 8 | --- |
| 9 | 9 | ||
| 10 | An amazing game deserves an amazing guide. All this material can be find in | 10 | An amazing game deserves an amazing guide. All this material can be find in some |
| 11 | some form on another on [craw's](https://github.com/crawl/crawl) official | 11 | form on another on [craw's](https://github.com/crawl/crawl) official repository. |
| 12 | repository. | ||
| 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 |  | 17 |  |
| 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 | ||
| 26 | To zoom in and out in viewport, press `Ctrl+` and `Ctrl-` respectively. | 26 | To zoom in and out in viewport, press `Ctrl+` and `Ctrl-` respectively. |
| 27 | 27 | ||
| 28 | All 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. | 28 | All the possible options are documented in the [Dungeon Crawl Stone Soup Options |
| 29 | Guide](https://github.com/crawl/crawl/blob/master/crawl-ref/docs/options_guide.txt) | ||
| 30 | file. | ||
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 | ||
| 10 | Nix is amazing for making reproducible cross OS development environment. | 10 | Nix is amazing for making reproducible cross OS development environment. |
| 11 | 11 | ||
| 12 | First you need to [install Nix package manager](https://nixos.org/download.html). | 12 | First you need to [install Nix package |
| 13 | manager](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 | |||
| 7 | tags: [bash] | 7 | tags: [bash] |
| 8 | --- | 8 | --- |
| 9 | 9 | ||
| 10 | In 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. | 10 | In Bash, the `$SECONDS` variable is a special variable that automatically keeps |
| 11 | track of the number of seconds since the current shell or script started | ||
| 12 | executing. 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 | ||
| 10 | I love reading the original manuscripts of Edsger W. Dijkstra. They are | 10 | I love reading the original manuscripts of Edsger W. Dijkstra. They are |
| 11 | available online at the University of Texas at Austin website, but I also | 11 | available online at the University of Texas at Austin website, but I also found |
| 12 | found MOBI version. I converted it into ePub as well. | 12 | MOBI version. I converted it into ePub as well. |
| 13 | 13 | ||
| 14 | Downloads: | 14 | Downloads: |
| 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 | |||
| 7 | tags: [dte] | 7 | tags: [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 |
| 11 | lately more and more. Since it is using [`execvp()`](https://linux.die.net/man/3/execvp) | 11 | using lately more and more. Since it is using |
| 12 | it 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 |
| 13 | small utility that does this for me. Code lives on repository | 13 | needed comment/uncomment feature so I created a small utility that does this for |
| 14 | [dte extensions](https://git.mitjafelicijan.com/dte-extensions.git/about/) | 14 | me. Code lives on repository [dte |
| 15 | but this utilities can be used for whatever you want. Make sure you have | 15 | extensions](https://git.mitjafelicijan.com/dte-extensions.git/about/) but this |
| 16 | version 1.11 or above. | 16 | utilities can be used for whatever you want. Make sure you have version 1.11 or |
| 17 | above. | ||
| 17 | 18 | ||
| 18 | Next one will be invoking formatter based on the type of a file. | 19 | Next 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 | |||
| 7 | tags: [bash] | 7 | tags: [bash] |
| 8 | --- | 8 | --- |
| 9 | 9 | ||
| 10 | I often use `grep` to search for todo's in my code and other people's | 10 | I often use `grep` to search for todo's in my code and other people's code and |
| 11 | code and then pipe them in `less` and I missed having colors that grep | 11 | then pipe them in `less` and I missed having colors that grep outputs in `less`. |
| 12 | outputs 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 | ||
| 17 | You could use `alias grep='grep --color=always'` and `alias less='less | 16 | You 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 | 17 | create todo function in your `.bashrc` that accepts first argument as search |
| 19 | as search string. | 18 | string. |
| 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 | |||
| 7 | tags: [plan9] | 7 | tags: [plan9] |
| 8 | --- | 8 | --- |
| 9 | 9 | ||
| 10 | Install Plan9port on Linux. This applies to [Plan9port](https://9fans.github.io/plan9port/). | 10 | Install Plan9port on Linux. This applies to |
| 11 | This 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 |
| 12 | programs like `9term` and `rc`. | 12 | programs to Unix-like operating systems. Useful for programs like `9term` and |
| 13 | `rc`. | ||
| 13 | 14 | ||
| 14 | ```sh | 15 | ```sh |
| 15 | sudo apt-get install gcc libx11-dev libxt-dev libxext-dev libfontconfig1-dev | 16 | sudo 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 | ||
| 35 | Make sure that `async` is present in the function definition and `await` is | 35 | Make sure that `async` is present in the function definition and `await` is used |
| 36 | used in the method that calls `executeCopyCommand()`. | 36 | in the method that calls `executeCopyCommand()`. |
| 37 | 37 | ||
| 38 | ```c# | 38 | ```c# |
| 39 | private async void button_Click(object sender, EventArgs e) | 39 | private 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 | |||
| 7 | tags: [random] | 7 | tags: [random] |
| 8 | --- | 8 | --- |
| 9 | 9 | ||
| 10 | A simple way to make presentations without using desktop apps or using | 10 | A simple way to make presentations without using desktop apps or using online |
| 11 | online services is https://github.com/remarkjs/remark. | 11 | services is https://github.com/remarkjs/remark. |
| 12 | 12 | ||
| 13 | First create `index.html` and be sure you make changes to `config` variable. | 13 | First create `index.html` and be sure you make changes to `config` variable. |
| 14 | 14 | ||
