Skip to content

Commit d22f937

Browse files
committed
restructure to use page bundles
also fix post thumbnail embeds
1 parent 2f8f81d commit d22f937

File tree

28 files changed

+21
-20
lines changed

28 files changed

+21
-20
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
node_modules
22
*.lock
33
resources/_gen
4-
public
4+
public
5+
draft.md

content/blog/custom-partial-nix-store-path.md renamed to content/blog/custom-partial-nix-store-path/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: "Brute forcing NixOS store paths for no particular reason"
44
description: "This is the second dumbest thing I've ever done."
55
date: 2022-02-07
66
tags: ["nixos", "memes"]
7-
thumbnail: /taiga-this-is-dumb-thumb.jpg
7+
thumbnail: cover.jpg
88
---
99

1010
## The Nix store

content/blog/custom-syncthing-id.md renamed to content/blog/custom-syncthing-id/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: "Generating a custom Syncthing device ID"
44
description: "Et tu, Brute-force?"
55
date: 2024-05-22
66
tags: ["syncthing", "openssl"]
7-
thumbnail: /syncthing-device-id.jpg
7+
thumbnail: cover.jpg
88
---
99

1010
## What's a Syncthing?
@@ -38,7 +38,7 @@ It is in the format `xxxxxxx-xxxxxxA-xxxxxxx-xxxxxxB-xxxxxxx-xxxxxxC-xxxxxxx-xxx
3838
where `A`, `B`, `C`, and `D` are check digits using [a slightly altered version of the Luhn mod N algorithm](https://forum.syncthing.net/t/v0-9-0-new-node-id-format/478/5), and the `x`s are characters from the hash represented in base32.
3939

4040
Each group of the ID is 7 characters long, and the first group is displayed in the GUI in the identification section:
41-
{{< figure src="/syncthing-device-gui.png" title="A device in Syncthing's GUI" >}}
41+
{{< figure src="device-gui.png" title="A device in Syncthing's GUI" >}}
4242

4343

4444
## A dumb idea
@@ -279,4 +279,4 @@ $ openssl x509 -inform DER -in 2327237.der -out cert.pem
279279
```
280280

281281
And after replacing the `cert.pem` and `key.pem` files and restarting Syncthing (as well as re-accepting every share on every device):
282-
{{< figure src="/syncthing-device-alice.jpg" title="The custom device ID now matches the device name, how chic!" >}}
282+
{{< figure src="device-alice.jpg" title="The custom device ID now matches the device name, how chic!" >}}
File renamed without changes.
File renamed without changes.

content/blog/exfat-data-recovery/index.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: "exFAT data recovery"
44
date: 2023-04-15
55
description: "Recovering data from a damaged exFAT filesystem"
66
tags: ["misc", "data recovery"]
7-
thumbnail: /vitarec.jpg
7+
thumbnail: cover.jpg
88
---
99

1010
## A simple mistake
@@ -51,11 +51,11 @@ The size of the blocks is at the beginning of the drive, along with other import
5151

5252
I found a metadata block in [ImHex](https://github.com/WerWolv/ImHex/), after it ends there are a bunch of zeros, and the next block looks like the start of a PNG file:
5353

54-
{{< figure src="/vitarec-metadata.png" title="A metadata block" >}}
54+
{{< figure src="metadata.png" title="A metadata block" >}}
5555

56-
{{< figure src="/vitarec-end-of-metadata.png" title="The end of the metadata block's data" >}}
56+
{{< figure src="end-of-metadata.png" title="The end of the metadata block's data" >}}
5757

58-
{{< figure src="/vitarec-a-wild-png.png" title="The start of the next block" >}}
58+
{{< figure src="a-wild-png.png" title="The start of the next block" >}}
5959

6060
This lets me calculate the block size of the filesystem:
6161
`0x16ECE78000` - `0x16ECE70000` = `0x8000` (32 KiB)
@@ -216,7 +216,7 @@ offset which will let me know the address of any block number.
216216

217217
I ran the game and made a new save (after watching all the unskippable cutscenes again) to get a look at the the file structure:
218218

219-
{{< figure src="/vitarec-ffx-saves.png" title="FFX saves (directories are blue, files are green)" >}}
219+
{{< figure src="ffx-saves.png" title="FFX saves (directories are blue, files are green)" >}}
220220

221221
Surprisingly, the filename `data0000.bin` is only shared with Gravity Rush (another [PhyreEngine](https://en.wikipedia.org/wiki/PhyreEngine) game). So I repeated the same file name search as before:
222222

@@ -297,7 +297,7 @@ I guess that the file was fragmented when part of it was changed. So I combined
297297

298298
I then threw the recovered files onto my Vita and:
299299

300-
{{< figure src="/vitarec-ffx.png" title="It works!" >}}
300+
{{< figure src="ffx.png" title="It works!" >}}
301301

302302
(I got insanely lucky)
303303

@@ -576,7 +576,7 @@ with open('unknown.txt', 'w') as f:
576576
{{< /details >}}
577577
578578
I plotted the blocks to see what the candidates look like:
579-
{{< figure src="/vitarec-plot-unknown.png" title="Each pixel is a block, green ones are not in my backups" >}}
579+
{{< figure src="plot-unknown.png" title="Each pixel is a block, green ones are not in my backups" >}}
580580
581581
Out of the 7806338 blocks:
582582
- 4866578 are unique **(62.34%)**
@@ -724,4 +724,4 @@ I don't know what the name of each file should be, so I will just have to guess:
724724
5463477.32k -> SAVE255.DAT
725725
```
726726
727-
{{< figure src="/vitarec-cold-steel.png" title="Success? The fragmented thumbnail doesn't seem to decrypt correctly, but the save does." >}}
727+
{{< figure src="cold-steel.png" title="Success? The fragmented thumbnail doesn't seem to decrypt correctly, but the save does." >}}

content/blog/nixos-deterministic-ids.md renamed to content/blog/nixos-deterministic-ids/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: "Making user IDs deterministic on NixOS"
44
description: "Now with $100% more containers!"
55
date: 2021-07-18
66
tags: ["nixos", "containerisation"]
7-
thumbnail: /kuroneko-deterministic.png
7+
thumbnail: cover.png
88
---
99

1010
## Why?

content/blog/nixos-path-restart-trigger.markdown renamed to content/blog/nixos-path-restart-trigger/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: "NixOS - Automatically restarting a systemd unit when a local config file
44
description: "A simple fix for a simple problem."
55
date: 2022-03-15
66
tags: ["nixos", "guide"]
7-
thumbnail: /nixos-auto-restart-service.jpg
7+
thumbnail: cover.jpg
88
---
99

1010
## The Setup

content/blog/nixos-systemd-local-script.md renamed to content/blog/nixos-systemd-local-script/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: "How to run a local script as a systemd service on NixOS"
44
description: "No packaging necessary."
55
date: 2022-02-07
66
tags: ["nixos", "guide"]
7-
thumbnail: /nixos-local-script-service.jpg
7+
thumbnail: cover.jpg
88
---
99

1010
If your script is small and using shell, then your service definition could look like this:

content/blog/social-anxiety-nixos-install.markdown renamed to content/blog/social-anxiety-nixos-install/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: "Setting up NixOS on a dedicated server"
44
description: "No human interaction needed."
55
date: 2021-02-09
66
tags: ["nixos", "devops"]
7-
thumbnail: /feed-me-a-server.jpg
7+
thumbnail: cover.jpg
88
---
99

1010
## Preamble
@@ -71,6 +71,6 @@ So what can we do? [Build our own ISO](https://nixos.wiki/wiki/Creating_a_NixOS_
7171
And that's about it, so I crossed my fingers and rebooted the system.
7272

7373
...and it worked!
74-
{{< figure src="/nixos-iso-hanzo-boot.jpg" title="You have no idea how happy I am" >}}
74+
{{< figure src="nixos-iso-hanzo-boot.jpg" title="You have no idea how happy I am" >}}
7575

7676
That's about the end of everything that [the excellent NixOS wiki](https://nixos.wiki/wiki/NixOS_Installation_Guide) can't explain.

content/blog/systemd-docker-compose.md renamed to content/blog/systemd-docker-compose/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: "In-place rebuilding of a docker compose project with systemd"
44
description: "Did you just restart prod again?"
55
date: 2024-05-15
66
tags: ["containerisation", "docker", "systemd"]
7-
thumbnail: /docker-systemd.jpg
7+
thumbnail: cover.jpg
88
---
99

1010
## The usual approach

themes/blist

0 commit comments

Comments
 (0)