`
break;
case "span":
output += `${token.content}`;
- break
+ break;
case "bold":
output += `${token.content}`
break;
@@ -305,7 +302,7 @@ const tokens2html = (tokens) => {
output += `${token.content}`
break;
case "header":
- output += `${token.content}`
+ output += `${token.content}`
if (token.level == 2) output += "";
break;
case "hline":
diff --git a/public/posts/openbirch/openbirch.png b/public/posts/My language is 700x slower than python/openbirch.png
similarity index 100%
rename from public/posts/openbirch/openbirch.png
rename to public/posts/My language is 700x slower than python/openbirch.png
diff --git a/public/posts/How I made a programming language 700x slower than python.md b/public/posts/My language is 700x slower than python/post.md
similarity index 100%
rename from public/posts/How I made a programming language 700x slower than python.md
rename to public/posts/My language is 700x slower than python/post.md
diff --git a/public/posts/My language is 700x slower than python/thumbnail.png b/public/posts/My language is 700x slower than python/thumbnail.png
new file mode 100644
index 0000000..27833da
Binary files /dev/null and b/public/posts/My language is 700x slower than python/thumbnail.png differ
diff --git a/public/posts/minecraft-proxy/hibernating.png b/public/posts/Putting hungry minecraft servers to sleep/hibernating.png
similarity index 100%
rename from public/posts/minecraft-proxy/hibernating.png
rename to public/posts/Putting hungry minecraft servers to sleep/hibernating.png
diff --git a/public/posts/Putting hungry minecraft servers to sleep.md b/public/posts/Putting hungry minecraft servers to sleep/post.md
similarity index 66%
rename from public/posts/Putting hungry minecraft servers to sleep.md
rename to public/posts/Putting hungry minecraft servers to sleep/post.md
index 894bd7b..c437ea3 100644
--- a/public/posts/Putting hungry minecraft servers to sleep.md
+++ b/public/posts/Putting hungry minecraft servers to sleep/post.md
@@ -2,32 +2,49 @@
Minecraft Rust Async Networking Proxy CRIU
# Minecraft servers are HUNGRY
-They hunger for your ram and your cpu. This makes it either expensive or laggy to try and host multiple servers at once.
-This was something I encountered when my friend built a homeserver out of spare computer parts that was barely powerful enough to run a minecraft server.
-The problem was that soon multiple people wanted a minecraft server hosted by him (which included us wanting to play modded minecraft).
+They hunger for your ram and your cpu. This makes it either expensive or
+laggy to try and host multiple servers at once.
-It was a hassle to ssh into the server and start and stop the various servers depending on who wanted to play,
-especially since a lot of people only played very rarily.
+This was something I encountered when my friend built a homeserver out of
+spare computer parts that was barely powerful enough to run a minecraft
+server.
-I remembered that I'd seen [a project](https://github.com/gekware/minecraft-server-hibernation) that claimed to be able to hibernate a minecraft server if nobody was playing on it.
-The only issue was that it worked for a single server, and did so by starting and stopping the server process.
+The problem was that soon multiple people wanted a minecraft server
+hosted by him (which included us wanting to play modded minecraft).
-This meant that if we wanted to join a modded server the hundreds of mods could make us wait for several minutes before we could play.
+It was a hassle to ssh into the server and start and stop the various
+servers depending on who wanted to play, especially since a lot of people
+only played very rarily.
-Another issue was the fact that it could only host a single server. This meant that we would have to run multiple intances of the watcher,
-and that each server would be assigned to an arbitrary port that would be needed when connecting.
+I remembered that I'd seen
+[a project](https://github.com/gekware/minecraft-server-hibernation)
+that claimed to be able to hibernate a minecraft server if nobody was
+playing on it. The only issue was that it worked for a single server, and
+did so by starting and stopping the server process.
+
+This meant that if we wanted to join a modded server the hundreds of mods
+could make us wait for several minutes before we could play.
+
+Another issue was the fact that it could only host a single server. This
+meant that we would have to run multiple intances of the watcher, and that
+each server would be assigned to an arbitrary port that would be needed
+when connecting.
# Building a reverse proxy for minecraft
-Since my friends server was accessible through a domain we thought it would be cool if instead of supplying a port
-you could connect to a subdomain and be sent to a specific server.
+Since my friends server was accessible through a domain we thought it
+would be cool if instead of supplying a port you could connect to a
+subdomain and be sent to a specific server.
-The simplest way to do this would be to create a dhcp record for each subdomain to point to a server,
-but that would be slow and tedious to set up for every server.
+The simplest way to do this would be to create a dhcp record for each
+subdomain to point to a server, but that would be slow and tedious to set
+up for every server.
-We then tried nginx, as it seemingly could magically redirect traffic to an internal port based on the subdomain.
-I quickly found out that this did *not* work for minecraft servers (who would have guessed), but after doing some research
-I decided on creating my own reverse proxy that spoke the minecraft protocol instead of HTTP.
+We then tried nginx, as it seemingly could magically redirect traffic to
+an internal port based on the subdomain. I quickly found out that this did
+*not* work for minecraft servers (who would have guessed), but after doing
+some research I decided on creating my own reverse proxy that spoke the
+minecraft protocol instead of HTTP.
# The Minecraft protocol
diff --git a/public/posts/minecraft-proxy/starting.png b/public/posts/Putting hungry minecraft servers to sleep/starting.png
similarity index 100%
rename from public/posts/minecraft-proxy/starting.png
rename to public/posts/Putting hungry minecraft servers to sleep/starting.png
diff --git a/public/posts/Putting hungry minecraft servers to sleep/thumbnail.png b/public/posts/Putting hungry minecraft servers to sleep/thumbnail.png
new file mode 100644
index 0000000..32593ab
Binary files /dev/null and b/public/posts/Putting hungry minecraft servers to sleep/thumbnail.png differ
diff --git a/public/posts/index.html b/public/posts/index.html
index 808844c..279e98b 100644
--- a/public/posts/index.html
+++ b/public/posts/index.html
@@ -2,6 +2,7 @@
+