Skip to content

Commit

Permalink
Fixed a ton of blog formatting issues, added nuxt typography
Browse files Browse the repository at this point in the history
  • Loading branch information
Xithrius committed Jul 18, 2024
1 parent 65eb48f commit f91dbbc
Show file tree
Hide file tree
Showing 13 changed files with 45 additions and 164 deletions.
Binary file modified site/bun.lockb
Binary file not shown.
16 changes: 8 additions & 8 deletions site/content/posts/arch-linux-customization.md
Original file line number Diff line number Diff line change
@@ -1,45 +1,45 @@
---
title: "Customization of Arch Linux"
title: "Arch Linux Customization"
date: "2022-10-16"
---

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

# [i3wm](https://github.com/i3/i3)
## [i3wm](https://github.com/i3/i3)

A tiling window manager, since minimalism is cool.

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.

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

# [polybar](https://github.com/polybar/polybar)
## [polybar](https://github.com/polybar/polybar)

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

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

# [rofi](https://github.com/davatorium/rofi)
## [rofi](https://github.com/davatorium/rofi)

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.

# [kitty](https://github.com/kovidgoyal/kitty)
## [kitty](https://github.com/kovidgoyal/kitty)

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.

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

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.

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

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

Works well enough for now.

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

# Ending notes
## Ending notes

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

Expand Down
18 changes: 0 additions & 18 deletions site/content/posts/factorio-blueprints.md

This file was deleted.

17 changes: 9 additions & 8 deletions site/content/posts/fixing-libvirtd-networking.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
---
title: "Possible solution to fixing libvirt disconnects"
date: "2024-06-18"
title: "Fixing virtmanager virtualized network not connecting"
date: "2024-07-14"
---

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.
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:

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

```bash
sudo systemctl start iptables.service
sudo systemctl enable iptables.service
If you want to be extra sure in your changes, restart the `iptables` and `libvirtd` services:

```sh
sudo systemctl restart libvirtd.service
sudo systemctl restart iptables.service
```

source: https://bbs.archlinux.org/viewtopic.php?id=296590
source: https://bbs.archlinux.org/viewtopic.php?id=291898
2 changes: 1 addition & 1 deletion site/content/posts/i3wm-flashbang-fix.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ So, I decided to avoid this for the time being. The next thing is to use a compo

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:

```
```toml
fading = true;
fade-in-step = 1;
fade-out-step = 1;
Expand Down
6 changes: 3 additions & 3 deletions site/content/posts/neat-docker-commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ date: "2023-01-22"

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.

```
```sh
docker run -it -v "$PWD:/workspace" -w /workspace ubuntu:20.04 /bin/bash
```

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

```
```sh
docker exec -it a-postgres-container psql -U postgres
```

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.

```
```sh
docker exec -it a-container /bin/bash
```
85 changes: 0 additions & 85 deletions site/content/posts/some-algorithms-in-one-place.md

This file was deleted.

8 changes: 4 additions & 4 deletions site/content/posts/ssh-key-caching.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@ This is a basically an even shorter read of [this](https://wiki.archlinux.org/ti

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

### `~/.ssh/config`
## `~/.ssh/config`

```
```properties
Host *
AddKeysToAgent yes
```

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

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

```toml
[Unit]
Expand All @@ -34,7 +34,7 @@ WantedBy=default.target

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

```
```sh
systemctl enable --user ssh-agent.service
systemctl start --user ssh-agent.service
```
11 changes: 1 addition & 10 deletions site/content/posts/utterly-broken-pip.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,7 @@ title: "Utterly broken pip"
date: "2022-07-31"
---

The following blog shows a (possibly not _the_) solution to the error I once encountered below, while installing a PyPI package.

<details>
<summary>
<code>
ImportError: cannot import name 'PythonVersion' from 'pip._vendor.packaging.tags'
</code>
</summary>
The following blog shows *a* solution to the error I once encountered below, while installing a PyPI package.

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

</details>

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.

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).
16 changes: 0 additions & 16 deletions site/content/posts/vscode-settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,37 +4,21 @@ date: "2023-03-04"
---

- [Error Lens](https://marketplace.visualstudio.com/items?itemName=usernamehw.errorlens): Improve highlighting of errors, warnings and other language diagnostics.

- [Atom Keymap](https://marketplace.visualstudio.com/items?itemName=ms-vscode.atom-keybindings): Popular Atom keybindings for Visual Studio Code

- [CodeLLDB](https://marketplace.visualstudio.com/items?itemName=vadimcn.vscode-lldb): A native debugger powered by LLDB. Debug C++, Rust and other compiled languages.

- [Crates](https://marketplace.visualstudio.com/items?itemName=serayuzgur.crates): Helps Rust developers managing dependencies with Cargo.toml.

- [Docker](https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-docker): Makes it easy to create, manage, and debug containerized applications.

- [Doxygen Documentation Generator](https://marketplace.visualstudio.com/items?itemName=cschlosser.doxdocgen): Let me generate Doxygen documentation from your source code for you.

- [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.

- [IntelliCode](https://marketplace.visualstudio.com/items?itemName=VisualStudioExptTeam.vscodeintellicode): AI-assisted development.

- [Material Icon Theme](https://marketplace.visualstudio.com/items?itemName=PKief.material-icon-theme): Material Design Icons for Visual Studio Code.

- [One Dark Pro](https://marketplace.visualstudio.com/items?itemName=zhuangtongfa.Material-theme): Atom‘s iconic One Dark theme for Visual Studio Code.

- [Prettier - Code formatter](https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode): Code formatter using prettier.

- [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.

- [rust-analyzer](https://marketplace.visualstudio.com/items?itemName=rust-lang.rust-analyzer): Rust language support for Visual Studio Code.

- [Tailwind CSS IntelliSense](https://marketplace.visualstudio.com/items?itemName=bradlc.vscode-tailwindcss): Intelligent Tailwind CSS tooling for VS Code.

- [Open in GitHub](https://marketplace.visualstudio.com/items?itemName=fabiospampinato.vscode-open-in-github): Open the current project or file in github.com.

- [Ruff](https://marketplace.visualstudio.com/items?itemName=charliermarsh.ruff): A Visual Studio Code extension with support for the Ruff linter.

- [Even Better TOML](https://marketplace.visualstudio.com/items?itemName=tamasfe.even-better-toml): Fully-featured TOML support

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.
Expand Down
3 changes: 0 additions & 3 deletions site/content/todo/2024.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@
{
"desc": "Automate repetitive workflow setups for i3wm"
},
{
"desc": "Kitty terminal framework for setting up projects via config files"
},
{
"desc": "Complete a modern C++ course"
},
Expand Down
10 changes: 10 additions & 0 deletions site/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export default defineNuxtConfig({
"@vueuse/motion/nuxt",
"@nuxtjs/color-mode",
],

app: {
pageTransition: { name: "page", mode: "out-in", duration: 150 },
head: {
Expand All @@ -23,11 +24,13 @@ export default defineNuxtConfig({
viewport: "width=device-width, initial-scale=1",
},
},

content: {
highlight: {
theme: "github-dark",
},
},

googleFonts: {
display: "swap",
families: {
Expand All @@ -37,6 +40,7 @@ export default defineNuxtConfig({
},
download: true,
},

colorMode: {
preference: "system",
fallback: "light",
Expand All @@ -47,4 +51,10 @@ export default defineNuxtConfig({
classSuffix: "",
storageKey: "nuxt-color-mode",
},

mdc: {
highlight: {
langs: ["toml", "cpp", "bash", "sh", "properties", "json", "yaml", "lua"],
},
},
});
17 changes: 9 additions & 8 deletions site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,20 @@
"ci": "biome ci ./"
},
"dependencies": {
"@nuxt/content": "^2.12.1",
"@nuxt-themes/typography": "^1.0.1",
"@nuxt/content": "^2.13.1",
"@nuxt/image": "^1.7.0",
"@nuxt/ui": "^2.16.0",
"@nuxtjs/color-mode": "^3.4.1",
"@nuxtjs/fontaine": "^0.4.1",
"@nuxt/ui": "^2.17.0",
"@nuxtjs/color-mode": "^3.4.2",
"@nuxtjs/fontaine": "^0.4.3",
"@nuxtjs/google-fonts": "^3.2.0",
"@vueuse/motion": "^2.1.0",
"nuxt": "^3.11.2",
"@vueuse/motion": "^2.2.3",
"nuxt": "^3.12.3",
"vue-use-fixed-header": "^2.0.3"
},
"devDependencies": {
"@biomejs/biome": "1.7.3",
"typescript": "^5.4.5",
"vue-tsc": "^2.0.17"
"typescript": "^5.5.3",
"vue-tsc": "^2.0.26"
}
}

0 comments on commit f91dbbc

Please sign in to comment.