From 034313e113a48a42a1fad3e070b3a19ad89c57ab Mon Sep 17 00:00:00 2001
From: Shav Kinderlehrer
Date: Tue, 9 Apr 2024 15:09:52 -0400
Subject: [PATCH] Add new article
---
.gitignore | 0
.npmrc | 0
README | 0
articles/A Loveletter to the Internet.md | 0
articles/All the Manpages.md | 0
articles/Color Themes From Images.md | 0
articles/Creating The Curio.md | 0
articles/Journaling as a Programmer.md | 0
articles/Learning to Code.md | 0
articles/Linkpage.md | 0
articles/Programmer Pastimes.md | 0
articles/Programming Languages.md | 0
articles/Routing in Svelte.md | 0
articles/Updated URL Shortener.md | 24 ++++++++++
...iting Your First Kakoune Config (kakrc).md | 0
articles/Writing a URL Shortener.md | 0
articles/img/kakrc-guide/default-kakrc.png | Bin
articles/img/kakrc-guide/final-kakrc.png | Bin
.../img/kakrc-guide/show-matching-after.png | Bin
.../img/kakrc-guide/show-matching-before.png | Bin
feeds/makeFeeds.ts | 0
feeds/package.json | 0
feeds/yarn.lock | 0
package.json | 0
src/app.d.ts | 0
src/app.html | 0
src/lib/index.ts | 0
src/lib/util/article.ts | 0
src/lib/util/firebase.ts | 0
src/lib/util/store.ts | 0
src/routes/+layout.svelte | 0
src/routes/+page.svelte | 0
src/routes/+page.ts | 0
src/routes/app.css | 0
src/routes/articles/[slug]/+layout.svelte | 0
src/routes/articles/[slug]/+layout.ts | 0
src/routes/articles/[slug]/+page.svelte | 0
src/routes/articles/[slug]/+page.ts | 0
static/favicon.png | Bin
static/rss.xml | 43 +++++++++++++++++-
svelte.config.js | 0
tsconfig.json | 0
vite.config.ts | 0
yarn.lock | 0
44 files changed, 65 insertions(+), 2 deletions(-)
mode change 100644 => 100755 .gitignore
mode change 100644 => 100755 .npmrc
mode change 100644 => 100755 README
mode change 100644 => 100755 articles/A Loveletter to the Internet.md
mode change 100644 => 100755 articles/All the Manpages.md
mode change 100644 => 100755 articles/Color Themes From Images.md
mode change 100644 => 100755 articles/Creating The Curio.md
mode change 100644 => 100755 articles/Journaling as a Programmer.md
mode change 100644 => 100755 articles/Learning to Code.md
mode change 100644 => 100755 articles/Linkpage.md
mode change 100644 => 100755 articles/Programmer Pastimes.md
mode change 100644 => 100755 articles/Programming Languages.md
mode change 100644 => 100755 articles/Routing in Svelte.md
create mode 100644 articles/Updated URL Shortener.md
mode change 100644 => 100755 articles/Writing Your First Kakoune Config (kakrc).md
mode change 100644 => 100755 articles/Writing a URL Shortener.md
mode change 100644 => 100755 articles/img/kakrc-guide/default-kakrc.png
mode change 100644 => 100755 articles/img/kakrc-guide/final-kakrc.png
mode change 100644 => 100755 articles/img/kakrc-guide/show-matching-after.png
mode change 100644 => 100755 articles/img/kakrc-guide/show-matching-before.png
mode change 100644 => 100755 feeds/makeFeeds.ts
mode change 100644 => 100755 feeds/package.json
mode change 100644 => 100755 feeds/yarn.lock
mode change 100644 => 100755 package.json
mode change 100644 => 100755 src/app.d.ts
mode change 100644 => 100755 src/app.html
mode change 100644 => 100755 src/lib/index.ts
mode change 100644 => 100755 src/lib/util/article.ts
mode change 100644 => 100755 src/lib/util/firebase.ts
mode change 100644 => 100755 src/lib/util/store.ts
mode change 100644 => 100755 src/routes/+layout.svelte
mode change 100644 => 100755 src/routes/+page.svelte
mode change 100644 => 100755 src/routes/+page.ts
mode change 100644 => 100755 src/routes/app.css
mode change 100644 => 100755 src/routes/articles/[slug]/+layout.svelte
mode change 100644 => 100755 src/routes/articles/[slug]/+layout.ts
mode change 100644 => 100755 src/routes/articles/[slug]/+page.svelte
mode change 100644 => 100755 src/routes/articles/[slug]/+page.ts
mode change 100644 => 100755 static/favicon.png
mode change 100644 => 100755 static/rss.xml
mode change 100644 => 100755 svelte.config.js
mode change 100644 => 100755 tsconfig.json
mode change 100644 => 100755 vite.config.ts
mode change 100644 => 100755 yarn.lock
diff --git a/.gitignore b/.gitignore
old mode 100644
new mode 100755
diff --git a/.npmrc b/.npmrc
old mode 100644
new mode 100755
diff --git a/README b/README
old mode 100644
new mode 100755
diff --git a/articles/A Loveletter to the Internet.md b/articles/A Loveletter to the Internet.md
old mode 100644
new mode 100755
diff --git a/articles/All the Manpages.md b/articles/All the Manpages.md
old mode 100644
new mode 100755
diff --git a/articles/Color Themes From Images.md b/articles/Color Themes From Images.md
old mode 100644
new mode 100755
diff --git a/articles/Creating The Curio.md b/articles/Creating The Curio.md
old mode 100644
new mode 100755
diff --git a/articles/Journaling as a Programmer.md b/articles/Journaling as a Programmer.md
old mode 100644
new mode 100755
diff --git a/articles/Learning to Code.md b/articles/Learning to Code.md
old mode 100644
new mode 100755
diff --git a/articles/Linkpage.md b/articles/Linkpage.md
old mode 100644
new mode 100755
diff --git a/articles/Programmer Pastimes.md b/articles/Programmer Pastimes.md
old mode 100644
new mode 100755
diff --git a/articles/Programming Languages.md b/articles/Programming Languages.md
old mode 100644
new mode 100755
diff --git a/articles/Routing in Svelte.md b/articles/Routing in Svelte.md
old mode 100644
new mode 100755
diff --git a/articles/Updated URL Shortener.md b/articles/Updated URL Shortener.md
new file mode 100644
index 0000000..2c246c8
--- /dev/null
+++ b/articles/Updated URL Shortener.md
@@ -0,0 +1,24 @@
+Lately, I've been interested in improving my URL shortener hosted at [https://trkt.in](https://trkt.in). So I did!
+
+I present.. **Chela!**
+
+I named Chela off of the small claw on crabs because it's like the little claw compared to the big one. Ok, I admit the name is vague but I think it's cute.
+
+I built Chela in Rust using Axum as a server framework. It runs off of a Postgres database. It's very simple by design and also very fast. Using `curl`, I get a response in around a millisecond typically.
+
+In my previous iteration of this project, I rather lazily generated IDs by hashing the URLs and then taking the first four or so letters. It was ugly and at increasing risk of collision.
+
+In this new iteration, I'm using [Sqids](https://sqids.org/) to generate IDs. It's better, faster (I think), and it looks prettier.
+
+For example,
+
+- [https://trkt.in/2614aab104d](https://trkt.in/2614aab104d)
+- [https://trkt.in/WX](https://trkt.in/WX)
+
+These both link to the same website (my previous blog post), but one of them is a whole lot easier to remember.
+
+Also, this new version supports the `+` feature from bit.ly, where if you put a plus sign at the end of a URL it will show you what it links to. Try it!
+
+I made the Docker image for Chela as small as I could without going off the deep end. The Chela binary is around 5Mb, and the full Docker image is just about 14Mb not including the Postgres dependency.
+
+If you're interested, feel free to check it out here: [https://trkt.in/oz](https://trkt.in/oz).
diff --git a/articles/Writing Your First Kakoune Config (kakrc).md b/articles/Writing Your First Kakoune Config (kakrc).md
old mode 100644
new mode 100755
diff --git a/articles/Writing a URL Shortener.md b/articles/Writing a URL Shortener.md
old mode 100644
new mode 100755
diff --git a/articles/img/kakrc-guide/default-kakrc.png b/articles/img/kakrc-guide/default-kakrc.png
old mode 100644
new mode 100755
diff --git a/articles/img/kakrc-guide/final-kakrc.png b/articles/img/kakrc-guide/final-kakrc.png
old mode 100644
new mode 100755
diff --git a/articles/img/kakrc-guide/show-matching-after.png b/articles/img/kakrc-guide/show-matching-after.png
old mode 100644
new mode 100755
diff --git a/articles/img/kakrc-guide/show-matching-before.png b/articles/img/kakrc-guide/show-matching-before.png
old mode 100644
new mode 100755
diff --git a/feeds/makeFeeds.ts b/feeds/makeFeeds.ts
old mode 100644
new mode 100755
diff --git a/feeds/package.json b/feeds/package.json
old mode 100644
new mode 100755
diff --git a/feeds/yarn.lock b/feeds/yarn.lock
old mode 100644
new mode 100755
diff --git a/package.json b/package.json
old mode 100644
new mode 100755
diff --git a/src/app.d.ts b/src/app.d.ts
old mode 100644
new mode 100755
diff --git a/src/app.html b/src/app.html
old mode 100644
new mode 100755
diff --git a/src/lib/index.ts b/src/lib/index.ts
old mode 100644
new mode 100755
diff --git a/src/lib/util/article.ts b/src/lib/util/article.ts
old mode 100644
new mode 100755
diff --git a/src/lib/util/firebase.ts b/src/lib/util/firebase.ts
old mode 100644
new mode 100755
diff --git a/src/lib/util/store.ts b/src/lib/util/store.ts
old mode 100644
new mode 100755
diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte
old mode 100644
new mode 100755
diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte
old mode 100644
new mode 100755
diff --git a/src/routes/+page.ts b/src/routes/+page.ts
old mode 100644
new mode 100755
diff --git a/src/routes/app.css b/src/routes/app.css
old mode 100644
new mode 100755
diff --git a/src/routes/articles/[slug]/+layout.svelte b/src/routes/articles/[slug]/+layout.svelte
old mode 100644
new mode 100755
diff --git a/src/routes/articles/[slug]/+layout.ts b/src/routes/articles/[slug]/+layout.ts
old mode 100644
new mode 100755
diff --git a/src/routes/articles/[slug]/+page.svelte b/src/routes/articles/[slug]/+page.svelte
old mode 100644
new mode 100755
diff --git a/src/routes/articles/[slug]/+page.ts b/src/routes/articles/[slug]/+page.ts
old mode 100644
new mode 100755
diff --git a/static/favicon.png b/static/favicon.png
old mode 100644
new mode 100755
diff --git a/static/rss.xml b/static/rss.xml
old mode 100644
new mode 100755
index b29e85d..aaa7a85
--- a/static/rss.xml
+++ b/static/rss.xml
@@ -6,8 +6,8 @@
https://blog.trinket.icu
Light Blog - My tech ramblings about everything under the sun.
en-us
- © 2023 Shav Kinderlehrer
- Sun, 15 Oct 2023 19:00:00 GMT
+ © 2024 Shav Kinderlehrer
+ Tue, 09 Apr 2024 19:00:00 GMT
jsonfeed-to-rss 3.0.7 (https://github.com/bcomnes/jsonfeed-to-rss#readme)
http://www.rssboard.org/rss-specification
@@ -15,6 +15,45 @@
https://blog.trinket.icu
Light Blog
+ -
+
Updated URL Shortener
+ https://lightblog.dev/articles/updated-url-shortener
+ Shav Kinderlehrer
+ Lately, I've been interested in improving my URL shortener hosted at https://trkt.in. So I did!
+I present.. Chela!
+I named Chela off of the small claw on crabs because it's like the little claw compared to the big one. Ok, I admit the name is vague but I think it's cute.
+I built Chela in Rust using Axum as a server framework. It runs off of a Postgres database. It's very simple by design and also very fast. Using curl, I get a response in around a millisecond typically.
+In my previous iteration of this project, I rather lazily generated IDs by hashing the URLs and then taking the first four or so letters. It was ugly and at increasing risk of collision.
+In this new iteration, I'm using Sqids to generate IDs. It's better, faster (I think), and it looks prettier.
+For example,
+
+https://trkt.in/2614aab104d
+https://trkt.in/WX
+
+These both link to the same website (my previous blog post), but one of them is a whole lot easier to remember.
+Also, this new version supports the + feature from bit.ly, where if you put a plus sign at the end of a URL it will show you what it links to. Try it!
+I made the Docker image for Chela as small as I could without going off the deep end. The Chela binary is around 5Mb, and the full Docker image is just about 14Mb not including the Postgres dependency.
+If you're interested, feel free to check it out here: https://trkt.in/oz.
+
+ Lately, I've been interested in improving my URL shortener hosted at https://trkt.in . So I did!
+I present.. Chela!
+I named Chela off of the small claw on crabs because it's like the little claw compared to the big one. Ok, I admit the name is vague but I think it's cute.
+I built Chela in Rust using Axum as a server framework. It runs off of a Postgres database. It's very simple by design and also very fast. Using curl
, I get a response in around a millisecond typically.
+In my previous iteration of this project, I rather lazily generated IDs by hashing the URLs and then taking the first four or so letters. It was ugly and at increasing risk of collision.
+In this new iteration, I'm using Sqids to generate IDs. It's better, faster (I think), and it looks prettier.
+For example,
+
+These both link to the same website (my previous blog post), but one of them is a whole lot easier to remember.
+Also, this new version supports the +
feature from bit.ly, where if you put a plus sign at the end of a URL it will show you what it links to. Try it!
+I made the Docker image for Chela as small as I could without going off the deep end. The Chela binary is around 5Mb, and the full Docker image is just about 14Mb not including the Postgres dependency.
+If you're interested, feel free to check it out here: https://trkt.in/oz .
+]]>
+ updated-url-shortener
+ Tue, 09 Apr 2024 19:00:00 GMT
+
-
Writing a URL Shortener
https://lightblog.dev/articles/writing-a-url-shortener
diff --git a/svelte.config.js b/svelte.config.js
old mode 100644
new mode 100755
diff --git a/tsconfig.json b/tsconfig.json
old mode 100644
new mode 100755
diff --git a/vite.config.ts b/vite.config.ts
old mode 100644
new mode 100755
diff --git a/yarn.lock b/yarn.lock
old mode 100644
new mode 100755