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