← Pablo Murad

Notes

Short posts without a title, numbered as they come. Also as a feed.

IV

First day of vacation, and I already miss my natural habitat. It has a keyboard, a screen, and no out-of-office reply.

So, with nothing to do, I did what any reasonable person on vacation does: I started opening random repositories to see what was inside. That's how I ran into cobalt, a media downloader. You paste a link from YouTube, TikTok, Instagram, Reddit, SoundCloud or a pile of other places, and it hands the file back.

The cobalt web app on a black background: a sidebar with save, remux, settings, donate, updates and about, a line-drawn cat in the middle, a box that says "paste the link here", the buttons auto, audio, mute and paste, and at the bottom "by continuing, you agree to terms and ethics of use".

The sad part: it doesn't work as advertised. Self-hosted, about half of the YouTube downloads failed, with 0-byte files and an error saying the "file tunnel is empty", which is a very poetic way of saying nothing came out.

The community noticed long ago. There are forks that fix the video sites' APIs, YouTube included.1 The catch is the treasure hunt: a fork here, a patch there, a setting nobody wrote down, and the vacation quietly turns into an assembly job.

So I put all the pieces in one place, an apparent fork, or almost a fork, at code.pablomurad.com/cobalt.git. It doesn't carry cobalt's code, only everything around it: Docker Compose for the API and the web app, a community fork that gets YouTube right, a daily timer that follows that fork and rebuilds only when something changes, and fixes for the two errors that showed up along the way.

$ git clone --recursive https://code.pablomurad.com/cobalt.git
$ cd cobalt && cp .env.example .env
$ ./build-api.sh && ./build-web.sh
$ docker compose up -d
Source
$ git clone --recursive https://code.pablomurad.com/cobalt.git
$ cd cobalt && cp .env.example .env
$ ./build-api.sh && ./build-web.sh
$ docker compose up -d

Fill in the addresses in .env before building. If the instance faces the internet, lock it down too, or the whole neighborhood ends up downloading through your connection.2

It's a shame the original doesn't work out of the box, because it's a really cool project. But we saved it. Now, back to vacation. Probably.

Notes

  1. The one in the repo is zImPatrick/cobalt. It generates the proof of origin (PO) tokens YouTube asks for to check that a request comes from a real player, and that's what ends the empty files. ↩

  2. cobalt's API is under AGPL-3.0 and its web app under CC BY-NC-SA 4.0. A public instance has to publish its changes and stay non-commercial. ↩

· note · cobalt · self-hosting · docker · downloader

III

Back when I started this blog, I was wandering around Octothorpes1 and ended up on the pages of a few artists who make ANSI art. Not long after, someone on a forum was talking about sitemaps, and that gave me the idea: draw the map of this site in ANSI.

So I made one. Then I forgot to link it anywhere or tell anyone, and it has been sitting there quietly ever since.

The sitemap is a house, and each room is a page. The Bedroom holds About, the fridge door in the Kitchen is Now, the Pantry keeps the Neat Finds and the Cellar has the Colophon. There is also a staircase to nowhere, a bathroom door that is really a wall, and a trapdoor for whoever goes looking.

If your terminal handles colors, the same house lives at sitemap.ans:

$ curl https://pablomurad.com/sitemap.ans
Source
$ curl https://pablomurad.com/sitemap.ans
A terminal window showing the command curl https://pablomurad.com/sitemap.ans and the top of the same ANSI house drawn in terminal colors: the rainbow title, the UFO beaming twtxt, an RSS box, a small stick figure, "STAIRS TO NOWHERE", the Attic with the Changelog and a ladder, the Observatory with Numbers, and the first row of rooms: Bedroom, Bath and Darkroom, Hall and Kitchen.

It was a fun one to make.

Notes

  1. Octothorpes is a ring of personal websites that share tags, backlinks and bookmarks with each other. ↩

· note · ansi-art · sitemap · smallweb · terminal

II

I was looking for IRC clients for Android that work well with soju, the bouncer that stays connected to IRC for you and keeps the history while your phone is asleep. Along the way I came across motd, on F-Droid, and I'm liking it.

It's a native Android IRC client with a modern chat interface. You can connect straight to an IRC network, but the part that caught my eye is how it handles soju: it pulls the history from the bouncer, keeps read markers in sync between devices and lets you manage soju's networks from inside the app. ZNC playback works too.

A conversation in the #guix channel in motd, half in light and half in dark theme, with chat bubbles, small sprite avatars, join and nick change notices, and the message box at the bottom

A few other things worth knowing:

  • Local history with full-text search, across all chats or inside one, with a jump to the message.
  • Replies, reactions, typing indicators, nick completion and slash commands, when the server supports them.
  • Inline images, link previews and file uploads.
  • TLS, SASL PLAIN and EXTERNAL, and client certificates.
  • Optional routing per network through SOCKS5 or Tor with Orbot.
  • No Google inside. Push notifications go through UnifiedPush instead of Firebase, which needs a compatible server or bouncer and a UnifiedPush distributor on the phone. A persistent connection is also an option.

It's free software under the GPL v3 or later, the source is on GitHub and the developer ships updates often. It needs Android 8.0 or newer and a 64-bit ARM phone.

For the record: I'm not affiliated with the project and nobody sponsored this note. I just found a client that plays well with soju and wanted to share it.

· irc · soju · android · f-droid · open-source · note

I

One day someone asked me how I manage to produce so much. I thought about giving the real answer, and just as I was about to start, I stopped. I let it go and said it was willpower. That wasn't a lie, but on its own it wasn't the whole answer either.

The truth is a little darker than I'd like.

It's a huge lack of social skills.

I run a pretty great company here in Brazil, one that's known across the country, and still I have no tact at all when it comes to dealing with people.

I have a monstrous attention deficit, and for part of my life it kept me in a depressive state. Yes, that's the part.

So I chose to step away from everything. When I say everything, people think I'm exaggerating, but my trusted circle, what some would call a comfort zone, is tiny. It doesn't include the people I deal with at work, the meetings I run or the events I go to. I won't lie: I hate being in those places.

Crowded places fill me with a dread I can't describe. More than three people at the party? For me, that's packed.

It's hard to explain, but it feels as if I hear everything, every sensory stimulus at once.

What I do have, in place of so many other skills, is the ability to turn a problem into a solution. Nassim Taleb, the author of The Black Swan, has a word for things that get stronger with disorder: antifragile. That's close to what I learned to do with chaos, something past what I could call plain resilience. How I got there is a story for another day.

So, to sum it up.

Take a head that can't focus but can't rest either. One that never stops, with an absurd, almost superhuman need to take in information, plus an enormous hyperfocus on technology and computing. What do you get? Output, and more output.

Most of the posts on this blog were written months ago, some even longer. Others started as notes in Notesnook and were quickly adapted to explain things to someone else. All of it comes from months, sometimes years, of work and observation, and from a deep kind of isolation.

That's it.

· personal · life · reflection · note