Affichage des articles du 2020

My experience with Win by Inwi

In my previous post, I mentioned how I was using a data plan that amounts to 10 DH per gigabyte. Being a relatively light streamer, I can usually get by with 10 gigabytes per month. These days however, I often find myself abusing my data plan for calls and screen sharing and whatnot. This month for example, I spent 250 DH on internet alone. With a monthly spending like that, I realized that I might as well get ADSL or a cheap optical fiber subscription.So why didn't I ? Well, for one, I don't want to get tied down by a monthly subscription. Secondly, I don't want something that requires a heavy installation with all the fees and the time that it implies. And finally, I want to have the option of carrying it with me wherever I want.When I was searching for alternatives, a friend of mine suggested Win by Inwi. I looked into it and it seemed to satisfy my needs of portability and ease of use. In short, you can customize your plan as you wish, handle the paperwork online and o…

Life during the COVID-19 lockdown

Given the state that the world is in right now, many companies, mine included, offered their employees the option of working from home. I decided to jump on the "working from home" bandwagon and write an entry describing how I personally managed it.HardwareA few days before the state of emergency took effect, I bought an HP monitor, a Logitech keyboard and the cheapest mouse I could find. With this, I set up an impromptu workstation for the days to come.I chose this monitor because it supports both HDMI and Display Port. I use the former with my work issued laptop and the latter with my own Thinkpad. The choice of keyboard was driven by the lack of an alternative. Most of the keyboards I was shown looked like cheap knockoffs of popular brands. As for the mouse, I picked the cheapest one because I'm not a heavy mouse user, and I figured any mouse would do the trick. I regretted this decision when I found out that the mouse sometimes releases mid-click, which results in so…

Decoding JWTs in the terminal

These past few days, I have been working on integrating IBM App ID into our Java backend and Android frontend codebases. Because of this, I would find myself going back and forth between the terminal and whenever I need to inspect a JWT's payload. I don't want to call it a "JWT token" because that would be a bad case of RAS and I'm pedantic like that, but I digress.Instead of relying on a website to do that for me, I figured why not just do it from the terminal. I did some reading and it turns out that JWTs are relatively easy to parse :Split the token using the dot character as a delimiterBase 64 decode the first portion to get the headerBase 64 decode the second portion to get the payloadThe third portion serves as a signing mechanism for the token. I chose to ignore the signing logic for the script I intended to write because it was irrelevant for my use case.I ended up writing a command line tool in D to help me inspect JWTs. The main requirement was f…