RSSAmplifier

Blog

Musings of something or another

Technology for good, like yesterday.

jc00ke.comRSS feed ↗10 posts

Latest posts

Forward SMS to email via Twilio and Mailgun

Back in 2017 Phil Nash wrote a very nice blog post for Twilio called Forward incoming SMS messages to email with Node.js, SendGrid and Twilio Functions . I used this exact setup this year for Ratio because I wanted a dedicated phone number for the business. Voice calls are forwarded directly to my mobile using TwiML Bins via the following simple bin: <?xml version="1.0" encoding="UTF-8"?>…

Automatically sort Tailwind classes in Neovim with rustywind and efm-langserver

Neovim 0.5 has a built-in language server client (LSP) that’s easily extensible with the efm-langserver . Inspired by Dr. Nic’s recent post on dev.to I wanted to get rustywind working with efm-langserver. I don’t even use Tailwind… yet, but I’ve been a fan for quite a while. I’ll leave it to the reader to get efm-langserver installed, but I wanted to share my config. I use…

Setting your Hex org auth key with the Heroku Elixir buildpack

I’ve been working on an Elixir application for the last year, and overall it’s been a smooth, pleasant experience. I’ve been meaning to write more, so here we go. Hex , the package manager for Elixir is very well thought out, but there are things I’m still being introduced to, like private organizations . There’s a beta I’m trying out, and it requires me to use a hex org key, which is fine, but…

Replacing Nginx with Træfik for local development

At $work most of the team uses Docker to develop our core Rails app. Before that, they used Vagrant. This is fine, for them. I strongly dislike working with these tools, so I always set up my projects to also run locally. Using processes. And commands. And things that are not black boxes. But this can be a bit of a PITA when you work on an app that requires both subdomains and SSL. Previously I…

Securely connecting to XFINITY hotspot on Linux

I’ve been coming to this coffee shop with this same network and same laptop for almost 2 years now. Today, for some reason, my laptop decided it didn’t want to play nicely with the network. I could connect to both the 2.4 and 5GHz networks but I couldn’t ping anything… DNS issue? The first thing I tried was setting my connection to use Google’s DNS: 8.8.8.8 and 8.8.4.4 for ipv4 and…

Testing Elixir Mix tasks

What’s the best way to test your Mix tasks ? I needed to write a custom Mix task yesterday, and I wanted to start off right by writing a test. I wanted to reuse some code that generates & verifies a JWT and spits it out in the terminal. The code has always been relatively simple: defmodule Mix . Tasks . Jwt . Gen do use Mix . Task @shortdoc "Generates a JWT" @moduledoc """ Generates a JWT far far…

Primitive obsession

I’ve been wanting to write about primitive obsession, specifically in Ruby, for a long time. A bug that made its way to production last week has given me the kick I need to get this post out. So, what is primitive obsession? Taken from C2 Wiki Primitive Obsession is using primitive data types to represent domain ideas. For example, we use a String to represent a message, an Integer to represent an…

Going native: Pidgin, Geary and California

For years I’ve had 2 Gmail tabs pinned in Chrome: personal and work. This took care of email, IM and calendar, which was quite convenient. I’m tired of waiting for those 2 tabs to load when I spin up my browser, and I also WANT MY RAM BACK! So, I’ve decided to go native for a bit. 3 concerns: Instant Message Pidgin is king here, especially on Linux. While the buddy list is overpopulated with…

Fixing preferred browser in XFCE

At some point my preferred browser got out of sync. By this I mean I installed Chrome unstable and Firefox, and different apps would open different browsers. Clicking on a link in the terminal would open Firefox even though (stable) Chrome was my preferred browser. After a little digging I found this comment on the Ubuntu bug tracker and it helped sort out my preferences. ---…

Patching xdg-open for magnet links

xdg-open doesn’t set the correct $DE variable, so the wrong open function gets called. Here’s a simple patch to /usr/bin/xdg-open to fix it. Apologies for the image, I could’t figure out how to embed just the relevant diff. Here’s the whole shebang.