From 8697555125c57ae64a0c9b78514b4aac4fd523de Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Tue, 27 Jun 2023 14:50:20 +0200 Subject: Massive formatting and added figcaption --- content/notes/cachebusting-in-hugo.md | 1 - content/notes/cronjobs-github-with-actions.md | 17 +++-- content/notes/dcss-new-player-guide.md | 83 +++++++++++----------- content/notes/dcss-on-4k-displays.md | 4 +- content/notes/development-environments-with-nix.md | 3 +- content/notes/easy-time-took-in-bash.md | 4 +- content/notes/ewd-manuscripts-ebook.md | 4 +- content/notes/extending-dte-editor.md | 15 ++-- content/notes/grep-to-less-maintain-colors.md | 11 ++- content/notes/install-plan9port-linux.md | 7 +- content/notes/non-blocking-shell-exec-csharp.md | 4 +- content/notes/presentations-with-markdown.md | 4 +- 12 files changed, 80 insertions(+), 77 deletions(-) (limited to 'content/notes') 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] This `6fab11c6669976d759d2992eff1dd5be` can be random string you generate use. You can use whatever you want. - 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 tags: [github] --- -In the root of your repository create a folder `.github/workflows` and -in that folder create a file a file `cron.yaml`. This file can be named -whatever you wish. But it has to be a `yaml` file. +In the root of your repository create a folder `.github/workflows` and in that +folder create a file a file `cron.yaml`. This file can be named whatever you +wish. But it has to be a `yaml` file. -File below (`.github/workflows/cron.yaml`) describes an action that will -trigger every six hours and it will curl example.com. - -However. Be sure that you have enough credits. Free account is not that -generous with the minutes they give you for free. Check more about -GitHub Actions usage on their website https://docs.github.com/en/actions. +File below (`.github/workflows/cron.yaml`) describes an action that will trigger +every six hours and it will curl example.com. +However. Be sure that you have enough credits. Free account is not that generous +with the minutes they give you for free. Check more about GitHub Actions usage +on their website https://docs.github.com/en/actions. ```yaml # .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 tags: [dcss] --- -An amazing game deserves an amazing guide. All this material can be find in -some form on another on [craw's](https://github.com/crawl/crawl) official -repository. +An amazing game deserves an amazing guide. All this material can be find in some +form on another on [craw's](https://github.com/crawl/crawl) official repository. -- [DCSS Quickstart](/notes/dcss-quickstart.pdf) - Very short introduction to - the game +- [DCSS Quickstart](/notes/dcss-quickstart.pdf) - Very short introduction to the + game - [DCSS Manual](/notes/dcss_manual.pdf) - Extensive manual about the game ![Dungeon Crawl Stone Soup](/notes/dcss.jpg) **Movement and Exploration** -- 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 +- 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. - Pressing `>` will take you down a staircase, and `<` to go up a staircase. - You can open doors by walking into them, and close them with `C`. @@ -32,33 +31,34 @@ repository. - You can pick up items with `,` or `g`. - Wield weapons with `w`. Weapons have different stats. - - (You may also engage in Unarmed Combat, though it isn't very effective - when untrained). -- Attack monsters in melee by walking in their direction (or with Ctrl-direction). -- You can wait with `.` or `s`, passing your turn - such as to get monsters - into a corridor with you. -- You can rest with `5`, waiting until you are fully healed, or something + - (You may also engage in Unarmed Combat, though it isn't very effective when + untrained). +- Attack monsters in melee by walking in their direction (or with + Ctrl-direction). +- You can wait with `.` or `s`, passing your turn - such as to get monsters into + a corridor with you. +- You can rest with `5`, waiting until you are fully healed, or something noteworthy happens. -- 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). +- 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). - Quiver (often ranged) actions for further use with `Q`. -- 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 +- 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. **Items and Inventory** -- View your inventory by pressing `i`. Most item related commands can also be +- View your inventory by pressing `i`. Most item related commands can also be done with this menu. - You can wear amour with `W;` amour gives `AC`, while heavier body armour reduces `EV`. -- Autoexplore will automatically pick up useful items, such as potions and +- Autoexplore will automatically pick up useful items, such as potions and scrolls, if you aren't in danger. - You can read scrolls with `r` and drink ("quaff") potions with `q`. -- Equipment items may have brands, with special properties. Branded equipment - is blue when unidentified. -- Equipment items may be artifacts, often with unique properties, and are +- Equipment items may have brands, with special properties. Branded equipment is + blue when unidentified. +- Equipment items may be artifacts, often with unique properties, and are unmodifiable. They are written in white. - You can evoke wands with `V`. - You can put on jewelry with `P`, and remove it with `R`. @@ -67,33 +67,32 @@ repository. **Magic and Spellcasting** - Once you find a spellbook, you can memorize spells with `M`. -- 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). -- Cast spells by pressing `z`, then the letter assigned to the spell. You may +- 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). +- 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). - You can view your memorized spells by pressing `I` (capital-i) or `z`. - Like HP, you can recover MP by resting (with 5). -- Many spells can be positioned more effectively, or combined with other - spells, in order to get (more effective) use out of them. +- Many spells can be positioned more effectively, or combined with other spells, + in order to get (more effective) use out of them. - Heavier body amour and shields hamper spellcasting. **Gods and Divine Abilities** -- You may look at a god's overview by praying at their altar (with `>` or `<`). +- 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. -- Gods all have unique features about them. Trog, the god of the tutorial, is +- 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. -- Gods like and dislike different things. Most gods either like killing things - (like Trog) or exploring new areas (like Elyvilon), rewarding you piety +- 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. -- 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 +- 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. -- 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! +- 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! - Pressing `^` will let you view your current god, abilities, and piety. - 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 To zoom in and out in viewport, press `Ctrl+` and `Ctrl-` respectively. -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. +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. 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] Nix is amazing for making reproducible cross OS development environment. -First you need to [install Nix package manager](https://nixos.org/download.html). +First you need to [install Nix package +manager](https://nixos.org/download.html). - Create a file `shell.nix` in your project folder. - 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 tags: [bash] --- -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. +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. ```bash #!/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] --- I love reading the original manuscripts of Edsger W. Dijkstra. They are -available online at the University of Texas at Austin website, but I also -found MOBI version. I converted it into ePub as well. +available online at the University of Texas at Austin website, but I also found +MOBI version. I converted it into ePub as well. Downloads: 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 tags: [dte] --- -[`dte`](https://craigbarnes.gitlab.io/dte/) is an interesting editor I started using -lately more and more. Since it is using [`execvp()`](https://linux.die.net/man/3/execvp) -it can be easily extended. I needed comment/uncomment feature so I created a -small utility that does this for me. Code lives on repository -[dte extensions](https://git.mitjafelicijan.com/dte-extensions.git/about/) -but this utilities can be used for whatever you want. Make sure you have -version 1.11 or above. +[`dte`](https://craigbarnes.gitlab.io/dte/) is an interesting editor I started +using lately more and more. Since it is using +[`execvp()`](https://linux.die.net/man/3/execvp) it can be easily extended. I +needed comment/uncomment feature so I created a small utility that does this for +me. Code lives on repository [dte +extensions](https://git.mitjafelicijan.com/dte-extensions.git/about/) but this +utilities can be used for whatever you want. Make sure you have version 1.11 or +above. Next one will be invoking formatter based on the type of a file. 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 tags: [bash] --- -I often use `grep` to search for todo's in my code and other people's -code and then pipe them in `less` and I missed having colors that grep -outputs in `less`. +I often use `grep` to search for todo's in my code and other people's code and +then pipe them in `less` and I missed having colors that grep outputs in `less`. - Grep's `--color=always` use markers to highlight the matching strings. - Less's `-R` option outputs "raw" control characters. -You could use `alias grep='grep --color=always'` and `alias less='less --R'` or create todo function in your `.bashrc` that accepts first argument -as search string. +You could use `alias grep='grep --color=always'` and `alias less='less -R'` or +create todo function in your `.bashrc` that accepts first argument as search +string. ```sh # 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 tags: [plan9] --- -Install Plan9port on Linux. This applies to [Plan9port](https://9fans.github.io/plan9port/). -This is a port of many Plan 9 programs to Unix-like operating systems. Useful for -programs like `9term` and `rc`. +Install Plan9port on Linux. This applies to +[Plan9port](https://9fans.github.io/plan9port/). This is a port of many Plan 9 +programs to Unix-like operating systems. Useful for programs like `9term` and +`rc`. ```sh 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() } ``` -Make sure that `async` is present in the function definition and `await` is -used in the method that calls `executeCopyCommand()`. +Make sure that `async` is present in the function definition and `await` is used +in the method that calls `executeCopyCommand()`. ```c# 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 tags: [random] --- -A simple way to make presentations without using desktop apps or using -online services is https://github.com/remarkjs/remark. +A simple way to make presentations without using desktop apps or using online +services is https://github.com/remarkjs/remark. First create `index.html` and be sure you make changes to `config` variable. -- cgit v1.2.3