Full Width [alt+shift+f] Shortcuts [alt+shift+k]
Sign Up [alt+shift+s] Log In [alt+shift+l]
1

Serializing and deserializing a Cookie Jar

from Yazin Alirhayim [alt+shift+b] in technology

I needed a way to "freeze" a Faraday connection, and then recover it .. but the cookie jar was getting in the way.
1st Jan 2020

Stay updated

Get a weekly newsletter with the top 5 articles worth reading every week.

More from Yazin Alirhayim

Building a mobile app in 1 day: Thunoob

Is it even possible to make an app in just 1 day? Well, let's find out!

1st Dec 2025 • 1 votes
Hour 10: Updating the website

We're back! Instead of working on something brand new, I'll be updating the existing website hosted at eyadquaibi.com

25th Nov 2025 • 1 votes
Hour 9: Categorizing the content

Now that we've cracked the API, we need to save all the content and categorize it.

24th Jun 2025 • 1 votes
Hour 5: Getting the mobile app content

My 2nd attempt to reverse engineer the mobile app to get the content. Getting the content from the app would unlock access to everything we need!

10th May 2025 • 1 votes
Finding Killer Domain Names Using LLMs

A contrarian approach to finding great domain names by leveraging dropped domains and LLMs, instead of the traditional domain search and negotiation process.

1st Apr 2025 • 1 votes

More in technology

MichTron ProText

The Last Word Processor You'll Ever Need

3 hours ago • 1 votes
Fixing Letterboxd's cast list on the web

I love Letterboxd, but I hate how they show you the cast on the web app. Here's the cast of The Batman on the web. I mean, that's them, but I'm often going to this page wondering who played someone, and that is an

3 hours ago • 1 votes
Day of the Dead in Mexico City

If you visit, someone someone will inevitably tell you: “The Day of the Dead parade isn’t a real tradition!

4 hours ago • 1 votes
A Mastodon bot powered by iOS Shortcuts

In short: I use iOS Shortcuts to run a Mastodon bot. I run a Mastodon bot that posts random quotes from The Legend of Zelda: Link’s Awakening. (The writing in that game is so charming!) I used to run it off a server, but for the past few days, it’s used an iOS Shortcut on my phone. How it works The bot is called Ulrira, named after a beloved Link’s Awakening character. Ulrira (the bot, not the character) samples a line from the text dump, then makes an HTTP request to post it. Here’s a screenshot of the full thing: As you can see, everything here is hard-coded, from the server credentials to the file name. (It probably wouldn’t be hard to make this more generic, but I didn’t bother.) This used to be a short, hand-written Bash script. I used the new AI-powered Shortcut creator and prompted this into existence. I said something like, “Here’s a Bash script. Turn this into a Shortcut.” Like a lot of LLM output, it wasn’t quite right, but it was useful for getting started. Shortcuts doesn’t seem to have an elegant way to express something like “run this every 6 hours”, so I created four additional scheduler Shortcuts that call the main one. They run at 12am, 6am, 12pm, and 6pm. That means there are five shortcuts in total: one to actually make the post, and four to schedule the main Shortcut at different times. Why do it this way? I didn’t want to pay for my server anymore, nor did I want to maintain it. When I went looking for alternatives, they either (1) cost money (2) had some significant limitation (for example, GitHub Actions requires me to update the repo every 60 days). This solution runs on a device with high uptime and is effectively free. If you’re a pro software genius, you might complain that this is not reliable! It doesn’t work if my phone is offline, for example. Or what if I change timezones? But in the words of Link’s Awakening: You’re good! You’re a pro, aren’t you? ………… Well, beat it! Pros aren’t allowed in here! Follow the bot here.

7 hours ago • 1 votes
Digital minimalism
yesterday • 1 votes
📚 BoredReading

You seem to be enjoying this.

Join free to unlock everything.

Create free account

Already have an account? Sign in