summaryrefslogtreecommitdiffstats
path: root/indieweb-micro
diff options
context:
space:
mode:
authorPinapelz <yukais@pinapelz.com>2025-12-02 01:23:35 -0800
committerPinapelz <yukais@pinapelz.com>2025-12-02 01:29:53 -0800
commit747e44b5462e8cbedbabfd287e4d41318ada31a8 (patch)
tree4bd200aa069a8301df7b6cd2d678ae7c4fbdc74e /indieweb-micro
parent58f8caeca47fed501720bcaa61c12b032bc5953d (diff)
02: ctf
Diffstat (limited to 'indieweb-micro')
-rw-r--r--indieweb-micro/content/posts/china-town-fair/gloves.webpbin0 -> 431668 bytes
-rw-r--r--indieweb-micro/content/posts/china-town-fair/index.md30
-rw-r--r--indieweb-micro/content/posts/china-town-fair/inside-ctf.webpbin0 -> 1020876 bytes
-rw-r--r--indieweb-micro/content/posts/china-town-fair/outside-ctf.webpbin0 -> 355348 bytes
-rwxr-xr-xindieweb-micro/prep-images.sh38
-rw-r--r--indieweb-micro/themes/MinIndie/layouts/partials/webmentions.html21
6 files changed, 87 insertions, 2 deletions
diff --git a/indieweb-micro/content/posts/china-town-fair/gloves.webp b/indieweb-micro/content/posts/china-town-fair/gloves.webp
new file mode 100644
index 0000000..fd42b6c
--- /dev/null
+++ b/indieweb-micro/content/posts/china-town-fair/gloves.webp
Binary files differ
diff --git a/indieweb-micro/content/posts/china-town-fair/index.md b/indieweb-micro/content/posts/china-town-fair/index.md
new file mode 100644
index 0000000..1773450
--- /dev/null
+++ b/indieweb-micro/content/posts/china-town-fair/index.md
@@ -0,0 +1,30 @@
+---
+title: "China Town Fair"
+date: 2025-12-02T00:22:32-08:00
+slug: 2025-12-02-china-town-fair
+type: posts
+draft: false
+categories:
+ - life
+tags:
+ - arcade
+---
+Visited New York during the Thanksgiving break and had a chance to stopped by one of the most legendary landmarks North American arcade gaming history.
+
+{{< figure src="outside-ctf.webp" alt="China Town Fair Outside" >}}
+
+Also yep you're reading that right, it indeed once home to a [dancing chicken as well as one that played tic tac toe](https://davidpotorti.substack.com/p/the-dancing-chicken).
+
+But apart from just being an old arcade, it was also home to one of the largest competitive arcade game fighting scene (Marven vs Capcom, Street Fighter, etc.). Many of NAs top players frequented this arcade. However, as we all already know video arcades began to die down during the early 2000s and China Town Fair was no exeception having closed in 2011.
+
+Then it re-opened under new management and became a complete shell of its former self. These days its pretty much all redemption slop in there. Very few actual "games" in there; there's a DDR A3 cab, PIU, a singular jubeat with a broken audio mod, a fully broken down SDVX Nemsys, and 3 Wangan 5DX+ (not sure what happened to the 4th one).
+
+{{< figure src="inside-ctf.webp" alt="China Town Fair Inside" >}}
+
+Anyways, its pretty tiny in there and feels like its not doing amazing. A single credit for jubeat was like 3-4 USD I think, and one of the machines to reload cards was fully broken down (tbh just go to Round1 and play).
+
+If you want some actual rhythm games though, walk like 6 minutes and the newly opened "Akiba House" store has private networked maimai DX, WACCA (modded), and CHUNITHM.
+
+{{< figure src="gloves.webp" alt="Chinese maimai gloves" width="300" >}}
+
+Also I was absolutely not ready for the New York winter temps. Thankfully I always keep my rhythm game gloves on me which saved my hands from freezing.
diff --git a/indieweb-micro/content/posts/china-town-fair/inside-ctf.webp b/indieweb-micro/content/posts/china-town-fair/inside-ctf.webp
new file mode 100644
index 0000000..d08d15f
--- /dev/null
+++ b/indieweb-micro/content/posts/china-town-fair/inside-ctf.webp
Binary files differ
diff --git a/indieweb-micro/content/posts/china-town-fair/outside-ctf.webp b/indieweb-micro/content/posts/china-town-fair/outside-ctf.webp
new file mode 100644
index 0000000..aacc4e2
--- /dev/null
+++ b/indieweb-micro/content/posts/china-town-fair/outside-ctf.webp
Binary files differ
diff --git a/indieweb-micro/prep-images.sh b/indieweb-micro/prep-images.sh
new file mode 100755
index 0000000..e478348
--- /dev/null
+++ b/indieweb-micro/prep-images.sh
@@ -0,0 +1,38 @@
+#!/usr/bin/env bash
+
+# Usage:
+# ./overwrite-to-webp.sh /path/to/folder jpg
+#
+# Arguments:
+# 1 = folder containing images
+# 2 = file extension to convert (jpg, jpeg, png, etc.)
+
+SRC_DIR="$1"
+EXT="$2"
+
+if [ -z "$SRC_DIR" ] || [ -z "$EXT" ]; then
+ echo "Usage: $0 <folder> <extension>"
+ echo "Example: ./overwrite-to-webp.sh ./photos jpg"
+ exit 1
+fi
+
+for file in "$SRC_DIR"/*."$EXT"; do
+ [ -e "$file" ] || continue
+
+ filename=$(basename "$file")
+ name="${filename%.*}"
+ newfile="$SRC_DIR/$name.webp"
+
+ echo "Converting: $filename → $name.webp"
+
+ # Convert to WebP (lossy quality ~80)
+ ffmpeg -i "$file" \
+ -compression_level 6 \
+ -quality 80 \
+ "$newfile" -y
+
+ # Delete original file
+ rm -f "$file"
+done
+
+echo "Done! All .$EXT files have been replaced with .webp"
diff --git a/indieweb-micro/themes/MinIndie/layouts/partials/webmentions.html b/indieweb-micro/themes/MinIndie/layouts/partials/webmentions.html
index 56a12d7..ff572c7 100644
--- a/indieweb-micro/themes/MinIndie/layouts/partials/webmentions.html
+++ b/indieweb-micro/themes/MinIndie/layouts/partials/webmentions.html
@@ -92,6 +92,7 @@
</style>
<script>
+const PAGE_URL = "{{ .Permalink }}";
async function loadMentions() {
const url =
"https://webmention.io/api/mentions.jf2?domain=micro.pinapelz.moe&token=hdjQAqlZwgJmSuPSiU8h8w";
@@ -102,12 +103,28 @@ async function loadMentions() {
const container = document.getElementById("mentions");
container.innerHTML = "";
- if (!data.children || data.children.length === 0) {
+ const mentions = data.children.filter(m => {
+ const t = m["wm-target"];
+ const inReply = m["in-reply-to"];
+ const likeOf = m["like-of"];
+ const repostOf = m["repost-of"];
+ const mentionOf = m["mention-of"];
+
+ return (
+ t === PAGE_URL ||
+ inReply === PAGE_URL ||
+ likeOf === PAGE_URL ||
+ repostOf === PAGE_URL ||
+ mentionOf === PAGE_URL
+ );
+ });
+
+ if (!mentions.length) {
container.innerHTML = "<p>No webmentions yet.</p>";
return;
}
- data.children.forEach(m => {
+ mentions.forEach(m => {
const div = document.createElement("div");
div.className = "wm";
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage