(post) university postcriptum

This commit is contained in:
Maciej Jur 2023-07-25 18:42:52 +02:00
parent fd94fa18a2
commit 6ed9619572
No known key found for this signature in database
GPG key ID: ADA3BF323198C639
4 changed files with 75 additions and 14 deletions

View file

@ -1027,7 +1027,7 @@ packages:
engines: {node: '>=12'}
dependencies:
jsbi: 4.3.0
tslib: 2.6.0
tslib: 2.6.1
dev: false
/@kurkle/color@0.3.2:
@ -1092,7 +1092,7 @@ packages:
is-glob: 4.0.3
open: 9.1.0
picocolors: 1.0.0
tslib: 2.6.0
tslib: 2.6.1
dev: false
/@polka/url@1.0.0-next.21:
@ -1504,7 +1504,7 @@ packages:
hasBin: true
dependencies:
caniuse-lite: 1.0.30001517
electron-to-chromium: 1.4.469
electron-to-chromium: 1.4.470
node-releases: 2.0.13
update-browserslist-db: 1.0.11(browserslist@4.21.9)
dev: false
@ -1803,8 +1803,8 @@ packages:
resolution: {integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==}
dev: false
/electron-to-chromium@1.4.469:
resolution: {integrity: sha512-HRN9XQjElxJBrdDky5iiUUr3eDwXGTg6Cp4IV8MuNc8VqMkYSneSnIe6poFKx9PsNzkudCgaWCBVxwDqirwQWQ==}
/electron-to-chromium@1.4.470:
resolution: {integrity: sha512-zZM48Lmy2FKWgqyvsX9XK+J6FfP7aCDUFLmgooLJzA7v1agCs/sxSoBpTIwDLhmbhpx9yJIxj2INig/ncjJRqg==}
dev: false
/emmet@2.4.5:
@ -4026,7 +4026,7 @@ packages:
engines: {node: ^14.18.0 || >=16.0.0}
dependencies:
'@pkgr/utils': 2.4.2
tslib: 2.6.0
tslib: 2.6.1
dev: false
/titleize@3.0.0:
@ -4073,8 +4073,8 @@ packages:
type-fest: 0.13.1
dev: false
/tslib@2.6.0:
resolution: {integrity: sha512-7At1WUettjcSRHXCyYtTselblcHl9PJFFVKiCAy/bY97+BPZXSQ2wbq0P9s8tK2G7dFQfNnlJnPAiArVBVBsfA==}
/tslib@2.6.1:
resolution: {integrity: sha512-t0hLfiEKfMUoqhG+U1oid7Pva4bbDPHYfJNiB7BiIjRkj1pyC++4N3huJfqY6aRH6VTB0rvtzQwjM4K6qpfOig==}
dev: false
/type-fest@0.13.1:

View file

@ -0,0 +1,54 @@
---
title: University Postscriptum
date: 2023-07-25T13:29:44.842Z
---
Now that I am free to do literally anything with my free time, I have decided to go all in and learn all these cool things that are supposedly hard to use.
## NixOS
I started off by migrating my server to [NixOS](https://nixos.org/), which is a GNU/Linux distribution based on the Nix package manager. It is quite... exotic. In this distribution all configuration is written using the Nix language, which is a Turing complete purely functional programming language, in some aspects similar to Haskell.
Here's an example of how you would use Nix to enable Podman virtualization in the system:
```nix
{ config, pkgs, ... }:
{
virtualisation = {
podman = {
enable = true;
dockerCompat = true;
};
}
```
I have found NixOS to be much better than classic DevOps tools such as Ansible for managing the state of machines, especially as a singular person and not a team of SysOps guys. It lets you specify the entire state of the server (excluding the secrets) in a declarative way. There is little chance of failure, and if something does fail, you can just roll back the entire state to the last working configuration. I've uploaded the configs I use to a [GitHub repository](https://github.com/kamoshi/server/blob/main/hosts/kamoshi/configuration.nix) for anyone curious.
It was a pretty tough ride the first time I tried to use this distribution, but once you get the ball rolling everything gets easier. And since it is fully declarative I don't really have to do any maintenance of the server, it's nearly fully autonomous.
## Neovim
I've decided to ditch fully-featured IDEs such as IntelliJ and lighter editors such as VS Code, instead I use Neovim. Neovim is really nice, but it's a modal, terminal based editor, which does take some time to get used to. I use it partially because all the cool guys use Neovim or Emacs, but also because I like it a lot! It has a lot of useful keybinding, it's very fast, very light, it takes nearly no resources to run.
I also like the fact that the entire config for Neovim can be stored in a git repository. I uploaded mine to a [GitHub repository](https://github.com/kamoshi/dotfiles/tree/main/nvim) for anyone curious. You can use Lua to configure this editor instead of Vimscript, which is pretty cool, I like Lua.
![Neovim screengrab](../../assets/posts/neovim.png)
## Arch Linux
Btw, I moved from Kubuntu to Arch Linux. Kubuntu is a really sweet distribution which I would wholeheartedly recommend to anyone dipping their toes in the GNU/Linux world. It's very beginner-friendly like Ubuntu, but also features KDE Plasma and KDE apps. KDE is in my opinion the best desktop environment, it is also similar to Windows, which means it will be pretty intuitive for anyone coming from that world.
People say that installing Arch is hard, but honestly it really isn't. It just doesn't have a graphical installer that will do it all for you, and you also need to know how to use the command line interface. Some people don't know how to use terminals, if you're that person you shouldn't be using GNU/Linux in the first place... or you should start using it right now, because you're missing out!!!
Below is an obligatory neofetch screenshot.
![Obligatory neofetch screengrab](../../assets/posts/arch.png)
For some time I probably won't be writing anything new in here. It's really ironic, but now that I do have a lot of time, I don't really have anything interesting to write about. I have a ton of things to do, which I couldn't really do while I was studying full time at a university.
So thanks and until next time! :wave:

View file

@ -13,4 +13,5 @@ Unfortunately, the main issue with fonts built into browsers is their dependence
![Nimbus Sans](/static/wiki/nimbus-sans2.png)
As a consequence, this misalignment causes the user interface to appear broken on Chrome, with the button texts not properly centered.
As a consequence, this misalignment causes the user interface to appear broken on Chrome, with the button texts not properly centered.

View file

@ -52,10 +52,16 @@
}
}
img:not([class]) {
max-width: 100%;
height: auto;
margin-block: 1em;
}
blockquote {
position: relative;
margin: 1em 2em;
&::before {
content: "";
display: block;
@ -77,7 +83,7 @@
padding: 0.2em 0.5em;
border: 1px solid #dbdbdb;
}
th {
background-color: #f3f3f3;
}
@ -126,7 +132,7 @@
padding-block: 0.5em;
border-block: 1px dashed gray;
color: gray;
@media (min-width: 38em) {
float: right;
clear: right;
@ -135,7 +141,7 @@
text-align: justify;
hyphens: auto;
}
@media (min-width: 80em) {
margin: 2em -17rem;
}
@ -152,7 +158,7 @@
width: auto;
vertical-align: middle;
margin: 0.1em 0;
&.big {
height: 4em;
}