diff options
Diffstat (limited to '')
-rw-r--r-- | _posts/2018-08-01-verifying-npm-ci-reproducibility.md | 21 | ||||
-rw-r--r-- | _posts/2018-12-21-using-youtube-dl-to-manage-youtube-subscriptions.md | 14 | ||||
-rw-r--r-- | _posts/2019-06-02-stateless-os.md | 27 |
3 files changed, 31 insertions, 31 deletions
diff --git a/_posts/2018-08-01-verifying-npm-ci-reproducibility.md b/_posts/2018-08-01-verifying-npm-ci-reproducibility.md index f1fd1dd..ff983e5 100644 --- a/_posts/2018-08-01-verifying-npm-ci-reproducibility.md +++ b/_posts/2018-08-01-verifying-npm-ci-reproducibility.md @@ -7,11 +7,11 @@ ref: veryfing-npm-ci-reproducibility updated_at: 2019-05-22 --- When [npm@5](https://blog.npmjs.org/post/161081169345/v500) came bringing -[package-locks](https://docs.npmjs.com/files/package-locks) with it, I -was confused about the benefits it provided, since running `npm install` -more than once could resolve all the dependencies again and yield yet -another fresh `package-lock.json` file. The message saying "you should -add this file to version control" left me hesitant on what to do[^1]. +[package-locks](https://docs.npmjs.com/files/package-locks) with it, I was +confused about the benefits it provided, since running `npm install` more than +once could resolve all the dependencies again and yield yet another fresh +`package-lock.json` file. The message saying "you should add this file to +version control" left me hesitant on what to do[^package-lock-message]. However the [addition of `npm ci`](https://blog.npmjs.org/post/171556855892/introducing-npm-ci-for-faster-more-reliable) filled this gap: it's a stricter variation of `npm install` which @@ -105,7 +105,7 @@ You can try copying and pasting it to verify the hash signatures. *I've done all of the following using Node.js v8.11.3 and npm@6.1.0.* In this test case I'll take the main repo of -[Lerna](https://lernajs.io/)[^2]: +[Lerna](https://lernajs.io/)[^lerna-package-lock]: ```bash cd /tmp/ @@ -138,9 +138,10 @@ signature of a directory. If you know any I'd [like to know](mailto:eu@euandre.o 2019/05/22: Fix spelling. -[^1]: The [documentation](https://docs.npmjs.com/cli/install#description) - claims `npm install` is driven by the existing `package-lock.json`, - but that's actually [a little bit tricky](https://github.com/npm/npm/issues/17979#issuecomment-332701215). +[^package-lock-message]: The + [documentation](https://docs.npmjs.com/cli/install#description) claims `npm + install` is driven by the existing `package-lock.json`, but that's actually + [a little bit tricky](https://github.com/npm/npm/issues/17979#issuecomment-332701215). -[^2]: Finding a big known repo that actually committed the +[^lerna-package-lock]: Finding a big known repo that actually committed the `package-lock.json` file was harder than I expected. diff --git a/_posts/2018-12-21-using-youtube-dl-to-manage-youtube-subscriptions.md b/_posts/2018-12-21-using-youtube-dl-to-manage-youtube-subscriptions.md index 08cec51..a9a605b 100644 --- a/_posts/2018-12-21-using-youtube-dl-to-manage-youtube-subscriptions.md +++ b/_posts/2018-12-21-using-youtube-dl-to-manage-youtube-subscriptions.md @@ -144,10 +144,10 @@ script and you'll get all of them in your local machine. 1. Offline - My internet speed it somewhat reasonable[^1], but it is really - unstable. Either at work or at home, it's not uncommon to loose - internet access for 2 minutes 3~5 times every day, and stay - completely offline for a couple of hours once every week. + My internet speed it somewhat reasonable[^internet-speed], but it is really + unstable. Either at work or at home, it's not uncommon to loose internet + access for 2 minutes 3~5 times every day, and stay completely offline for a + couple of hours once every week. Working through the hassle of keeping a playlist on disk has payed off many, many times. Sometimes I even not notice when the @@ -268,6 +268,6 @@ suggestions of improvements or related content. 2019/05/22: Fix spelling. -[^1]: Considering how expensive it is and the many ways it could be - better, but also how much it has improved over the last years, I say - it's reasonable. +[^internet-speed]: Considering how expensive it is and the many ways it could be + better, but also how much it has improved over the last years, I say it's + reasonable. diff --git a/_posts/2019-06-02-stateless-os.md b/_posts/2019-06-02-stateless-os.md index 2f15c17..2614b44 100644 --- a/_posts/2019-06-02-stateless-os.md +++ b/_posts/2019-06-02-stateless-os.md @@ -5,7 +5,7 @@ layout: post lang: en ref: stateless-os --- -Last week[^1] I changed back to an old[^2] Samsung laptop, and installed +Last week[^last-week] I changed back to an old[^old-computer] Samsung laptop, and installed [NixOS](https://nixos.org/) on it. After using NixOS on another laptop for around two years, I wanted @@ -15,7 +15,7 @@ files and personal data. I gravitated towards NixOS after trying (and failing) to create an `install.sh` script that would imperatively install and configure my whole OS using apt-get. When I found a GNU/Linux distribution that was built on top of the idea of -declaratively specifying the whole OS I was automatically convinced[^3]. +declaratively specifying the whole OS I was automatically convinced[^convinced-by-declarative-aspect]. I was impressed. Even though I've been experiencing the benefits of Nix isolation daily, I always felt skeptical that something would be @@ -129,17 +129,16 @@ Stow or any similar tool, etc., [I'd like some tips](mailto:eu@euandre.org). If you don't have any experience at all, [I'd still love to hear from you](mailto:eu@euandre.org). -[^1]: "Last week" as of the start of this writing, so around the end - of May 2019. +[^last-week]: "Last week" as of the start of this writing, so around the end of + May 2019. -[^2]: I was using a 32GB RAM, i7 and 250GB SSD Samsung laptop. The - switch was back to a 8GB RAM, i5 and 500GB HDD Dell laptop. The - biggest difference I noticed was on faster memory, both RAM - availability and the disk speed, but I had 250GB less local storage - space. +[^old-computer]: I was using a 32GB RAM, i7 and 250GB SSD Samsung laptop. The + switch was back to a 8GB RAM, i5 and 500GB HDD Dell laptop. The biggest + difference I noticed was on faster memory, both RAM availability and the + disk speed, but I had 250GB less local storage space. -[^3]: The declarative configuration aspect is something that I now - completely take for granted, and wouldn't consider using something - which isn't declarative. A good metric to show this is me realising - that I can't pinpoint the moment when I decided to switch to NixOS. - It's like I had a distant past when this wasn't true. +[^convinced-by-declarative-aspect]: The declarative configuration aspect is + something that I now completely take for granted, and wouldn't consider + using something which isn't declarative. A good metric to show this is me + realising that I can't pinpoint the moment when I decided to switch to + NixOS. It's like I had a distant past when this wasn't true. |