Skip to content

Commit f91dbbc

Browse files
committed
Fixed a ton of blog formatting issues, added nuxt typography
1 parent 65eb48f commit f91dbbc

13 files changed

+45
-164
lines changed

site/bun.lockb

131 KB
Binary file not shown.

site/content/posts/arch-linux-customization.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,45 @@
11
---
2-
title: "Customization of Arch Linux"
2+
title: "Arch Linux Customization"
33
date: "2022-10-16"
44
---
55

66
My dotfiles are located [here](https://github.com/Xithrius/dotfiles).
77

8-
# [i3wm](https://github.com/i3/i3)
8+
## [i3wm](https://github.com/i3/i3)
99

1010
A tiling window manager, since minimalism is cool.
1111

1212
Why not [i3-gaps](https://github.com/Airblader/i3)? You waste space on your monitor(s). Although it is cool to look at, and I have nothing against it if you have too much monitor.
1313

1414
You can find a bunch of useful tips and such on the Arch Linux Wiki [i3 page](https://wiki.archlinux.org/title/I3).
1515

16-
# [polybar](https://github.com/polybar/polybar)
16+
## [polybar](https://github.com/polybar/polybar)
1717

1818
It looks nicer than i3-bar, or i3-status.
1919

2020
You can find themes in the [polybar-themes](https://github.com/adi1090x/polybar-themes) repository.
2121

22-
# [rofi](https://github.com/davatorium/rofi)
22+
## [rofi](https://github.com/davatorium/rofi)
2323

2424
The default launcher for i3 is sufficient for launching programs, but I wanted to have a keybind for connecting to ssh servers, or switching to a different workspace by searching for a window name.
2525

26-
# [kitty](https://github.com/kovidgoyal/kitty)
26+
## [kitty](https://github.com/kovidgoyal/kitty)
2727

2828
Another terminal emulator. This one's pretty darn fast, and I had to decide between it and [Alacritty](https://github.com/alacritty/alacritty). I eventually settled with Kitty for the ligature support.
2929

30-
# [fish-shell](https://github.com/fish-shell/fish-shell)
30+
## [fish-shell](https://github.com/fish-shell/fish-shell)
3131

3232
The shell that I use within kitty. Since functions are so easy to make, with a [large amount of in-depth documentation](https://fishshell.com/), I wish I found this repository sooner.
3333

3434
Along with this, I recommend using [starship](https://github.com/starship/starship), since it makes the prompt that much better.
3535

36-
# [Visaul Studio Code](https://github.com/Microsoft/vscode)
36+
## [Visaul Studio Code](https://github.com/Microsoft/vscode)
3737

3838
Works well enough for now.
3939

4040
The extensions and settings that I have configured can be found [here](https://xithrius.cloud/blog/posts/vscode-settings).
4141

42-
# Ending notes
42+
## Ending notes
4343

4444
In the future, I may create a blog with a step-by-step guide on how to get all of this working together.
4545

site/content/posts/factorio-blueprints.md

Lines changed: 0 additions & 18 deletions
This file was deleted.
Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
---
2-
title: "Possible solution to fixing libvirt disconnects"
3-
date: "2024-06-18"
2+
title: "Fixing virtmanager virtualized network not connecting"
3+
date: "2024-07-14"
44
---
55

6-
Although the virtual network may be working in your KVM/QEMU instance manager, you still might not get a connection through. This is a recent problem on (at least) arch, possibly due to some package upgrade.
6+
Although the virtual network may be working in your KVM/QEMU instance manager, you still might not get a connection through. Here is a solution:
77

8-
This might solve the issue:
8+
On your host system, change `firewall_backend` in `/etc/libvirt/network.conf` from `nftables` to `iptables`.
99

10-
```bash
11-
sudo systemctl start iptables.service
12-
sudo systemctl enable iptables.service
10+
If you want to be extra sure in your changes, restart the `iptables` and `libvirtd` services:
11+
12+
```sh
1313
sudo systemctl restart libvirtd.service
14+
sudo systemctl restart iptables.service
1415
```
1516

16-
source: https://bbs.archlinux.org/viewtopic.php?id=296590
17+
source: https://bbs.archlinux.org/viewtopic.php?id=291898

site/content/posts/i3wm-flashbang-fix.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ So, I decided to avoid this for the time being. The next thing is to use a compo
1111

1212
There are two solutions using picom. Either turn on fading in your config at (most likely) `~/.config/picom/picom.conf` in the fading section with whatever delays of steps you like, or the following, which makes transitioning between windows "instant" (50ms), so no flashbang is included:
1313

14-
```
14+
```toml
1515
fading = true;
1616
fade-in-step = 1;
1717
fade-out-step = 1;

site/content/posts/neat-docker-commands.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ date: "2023-01-22"
55

66
With the docker command below, you're able to create an Ubuntu shell with the files contained in the current working directory. This is neat for quickly testing out something like a shell script on a different version of Ubuntu, or just seeing if your C program compiles at all somewhere else.
77

8-
```
8+
```sh
99
docker run -it -v "$PWD:/workspace" -w /workspace ubuntu:20.04 /bin/bash
1010
```
1111

@@ -31,12 +31,12 @@ services:
3131
3232
Then we'd be able to execute what's below to be able to get that `psql` shell, as the user `postgres`.
3333

34-
```
34+
```sh
3535
docker exec -it a-postgres-container psql -U postgres
3636
```
3737

3838
Not all containers support this, but sometimes you're able to create a bash shell within a container with the following, where `a-container` is the name of a container with an image, such as gitlab.
3939

40-
```
40+
```sh
4141
docker exec -it a-container /bin/bash
4242
```

site/content/posts/some-algorithms-in-one-place.md

Lines changed: 0 additions & 85 deletions
This file was deleted.

site/content/posts/ssh-key-caching.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,16 @@ This is a basically an even shorter read of [this](https://wiki.archlinux.org/ti
77

88
To have your ssh agent remember keys throughout your current session, do the following:
99

10-
### `~/.ssh/config`
10+
## `~/.ssh/config`
1111

12-
```
12+
```properties
1313
Host *
1414
AddKeysToAgent yes
1515
```
1616

1717
If your ssh agent isn't initiated at startup, here's what I prefer to use as a config file with `systemd`.
1818

19-
### `~/.config/systemd/user/ssh-agent.service`
19+
## `~/.config/systemd/user/ssh-agent.service`
2020

2121
```toml
2222
[Unit]
@@ -34,7 +34,7 @@ WantedBy=default.target
3434

3535
Do the following to start the agent now, and enable it on startup.
3636

37-
```
37+
```sh
3838
systemctl enable --user ssh-agent.service
3939
systemctl start --user ssh-agent.service
4040
```

site/content/posts/utterly-broken-pip.md

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,7 @@ title: "Utterly broken pip"
33
date: "2022-07-31"
44
---
55

6-
The following blog shows a (possibly not _the_) solution to the error I once encountered below, while installing a PyPI package.
7-
8-
<details>
9-
<summary>
10-
<code>
11-
ImportError: cannot import name 'PythonVersion' from 'pip._vendor.packaging.tags'
12-
</code>
13-
</summary>
6+
The following blog shows *a* solution to the error I once encountered below, while installing a PyPI package.
147

158
```
169
Traceback (most recent call last):
@@ -31,8 +24,6 @@ Traceback (most recent call last):
3124
ImportError: cannot import name 'PythonVersion' from 'pip._vendor.packaging.tags' (/home/xithrius/.local/lib/python3.10/site-packages/packaging/tags.py)
3225
```
3326

34-
</details>
35-
3627
Head to [this](https://pip.pypa.io/en/stable/installation/#get-pip-py) section of the pip installation site, download then run the `get-pip.py` script.
3728

3829
If the script runs without error, then you should be fine. Otherwise, I wish you luck on your journey. If you find another solution to this problem, be sure to contribute to this post by posting an issue [here](https://github.com/Xithrius/xithrius.cloud/issues/new).

site/content/posts/vscode-settings.md

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,37 +4,21 @@ date: "2023-03-04"
44
---
55

66
- [Error Lens](https://marketplace.visualstudio.com/items?itemName=usernamehw.errorlens): Improve highlighting of errors, warnings and other language diagnostics.
7-
87
- [Atom Keymap](https://marketplace.visualstudio.com/items?itemName=ms-vscode.atom-keybindings): Popular Atom keybindings for Visual Studio Code
9-
108
- [CodeLLDB](https://marketplace.visualstudio.com/items?itemName=vadimcn.vscode-lldb): A native debugger powered by LLDB. Debug C++, Rust and other compiled languages.
11-
129
- [Crates](https://marketplace.visualstudio.com/items?itemName=serayuzgur.crates): Helps Rust developers managing dependencies with Cargo.toml.
13-
1410
- [Docker](https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-docker): Makes it easy to create, manage, and debug containerized applications.
15-
1611
- [Doxygen Documentation Generator](https://marketplace.visualstudio.com/items?itemName=cschlosser.doxdocgen): Let me generate Doxygen documentation from your source code for you.
17-
1812
- [Git Graph](https://marketplace.visualstudio.com/items?itemName=mhutchie.git-graph): View a Git Graph of your repository, and perform Git actions from the graph.
19-
2013
- [IntelliCode](https://marketplace.visualstudio.com/items?itemName=VisualStudioExptTeam.vscodeintellicode): AI-assisted development.
21-
2214
- [Material Icon Theme](https://marketplace.visualstudio.com/items?itemName=PKief.material-icon-theme): Material Design Icons for Visual Studio Code.
23-
2415
- [One Dark Pro](https://marketplace.visualstudio.com/items?itemName=zhuangtongfa.Material-theme): Atom‘s iconic One Dark theme for Visual Studio Code.
25-
2616
- [Prettier - Code formatter](https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode): Code formatter using prettier.
27-
2817
- [Remote - Containers](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers): Open any folder or repository inside a Docker container and take advantage of Visual Studio Code's full feature set.
29-
3018
- [rust-analyzer](https://marketplace.visualstudio.com/items?itemName=rust-lang.rust-analyzer): Rust language support for Visual Studio Code.
31-
3219
- [Tailwind CSS IntelliSense](https://marketplace.visualstudio.com/items?itemName=bradlc.vscode-tailwindcss): Intelligent Tailwind CSS tooling for VS Code.
33-
3420
- [Open in GitHub](https://marketplace.visualstudio.com/items?itemName=fabiospampinato.vscode-open-in-github): Open the current project or file in github.com.
35-
3621
- [Ruff](https://marketplace.visualstudio.com/items?itemName=charliermarsh.ruff): A Visual Studio Code extension with support for the Ruff linter.
37-
3822
- [Even Better TOML](https://marketplace.visualstudio.com/items?itemName=tamasfe.even-better-toml): Fully-featured TOML support
3923

4024
Below is the JSON file for general settings, and the extensions from above. I use zen mode (similar to distraction-free mode in JetBrains products) so there's less unecessary components on the screen.

site/content/todo/2024.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@
2323
{
2424
"desc": "Automate repetitive workflow setups for i3wm"
2525
},
26-
{
27-
"desc": "Kitty terminal framework for setting up projects via config files"
28-
},
2926
{
3027
"desc": "Complete a modern C++ course"
3128
},

site/nuxt.config.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export default defineNuxtConfig({
99
"@vueuse/motion/nuxt",
1010
"@nuxtjs/color-mode",
1111
],
12+
1213
app: {
1314
pageTransition: { name: "page", mode: "out-in", duration: 150 },
1415
head: {
@@ -23,11 +24,13 @@ export default defineNuxtConfig({
2324
viewport: "width=device-width, initial-scale=1",
2425
},
2526
},
27+
2628
content: {
2729
highlight: {
2830
theme: "github-dark",
2931
},
3032
},
33+
3134
googleFonts: {
3235
display: "swap",
3336
families: {
@@ -37,6 +40,7 @@ export default defineNuxtConfig({
3740
},
3841
download: true,
3942
},
43+
4044
colorMode: {
4145
preference: "system",
4246
fallback: "light",
@@ -47,4 +51,10 @@ export default defineNuxtConfig({
4751
classSuffix: "",
4852
storageKey: "nuxt-color-mode",
4953
},
54+
55+
mdc: {
56+
highlight: {
57+
langs: ["toml", "cpp", "bash", "sh", "properties", "json", "yaml", "lua"],
58+
},
59+
},
5060
});

site/package.json

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,20 @@
1616
"ci": "biome ci ./"
1717
},
1818
"dependencies": {
19-
"@nuxt/content": "^2.12.1",
19+
"@nuxt-themes/typography": "^1.0.1",
20+
"@nuxt/content": "^2.13.1",
2021
"@nuxt/image": "^1.7.0",
21-
"@nuxt/ui": "^2.16.0",
22-
"@nuxtjs/color-mode": "^3.4.1",
23-
"@nuxtjs/fontaine": "^0.4.1",
22+
"@nuxt/ui": "^2.17.0",
23+
"@nuxtjs/color-mode": "^3.4.2",
24+
"@nuxtjs/fontaine": "^0.4.3",
2425
"@nuxtjs/google-fonts": "^3.2.0",
25-
"@vueuse/motion": "^2.1.0",
26-
"nuxt": "^3.11.2",
26+
"@vueuse/motion": "^2.2.3",
27+
"nuxt": "^3.12.3",
2728
"vue-use-fixed-header": "^2.0.3"
2829
},
2930
"devDependencies": {
3031
"@biomejs/biome": "1.7.3",
31-
"typescript": "^5.4.5",
32-
"vue-tsc": "^2.0.17"
32+
"typescript": "^5.5.3",
33+
"vue-tsc": "^2.0.26"
3334
}
3435
}

0 commit comments

Comments
 (0)