Build a highly scalable REST API in 100 lines

Posted on Wed 02 December 2020 in programming • Tagged with serverless, javascript

Today I'll be walking through how to build a REST API endpoint with the following features:

  • Automatic TLS/SSL encryption
  • Accessible by both front and back-end applications
  • Horizontally scalable
  • API key validation and limiting
  • Persistent storage
  • Automated deployments

All in about 100 lines of code. It can be a bit …


Continue reading

Cozy coding sessions

Posted on Mon 30 November 2020 in programming

or: hygge, and why I spend so much time theming my computer


Continue reading

Encrypting files using PGP/GPG

Posted on Sun 08 November 2020 in programming • Tagged with security

This past week I had to encrypt several sensitive files before transmitting them to a third party vendor we were working with. It being my first time doing such a thing, I read up on the PGP encryption algorithm and and learned how to work with GnuPG (gpg), the open …


Continue reading

Reducing zsh startup time by 400%

Posted on Thu 08 October 2020 in Programming • Tagged with shell, performance

As part of the nature of my work, I have to interact with a lot of systems and tools. My .zshrc file has slowly grown in order to support this multi-project workflow. So, too, has the startup time for my shell.

Want to know how long it takes right now …


Continue reading

I analyzed over 3 gigabytes of email (my own)

Posted on Fri 02 October 2020 in programming • Tagged with python, data

How often do you get excited when your phone vibrates and an email notification shows up? If you're like me, not very. Much like how I only seem to receive spam calls on my phone, almost all of the emails I receive on a daily basis are not important to …


Continue reading

Installing Arch Linux

Posted on Wed 23 September 2020 in Programming • Tagged with linux, command line

I'm installing Arch Linux on my computer.

This shouldn't come as a surprise. If you've known me for long enough, you'll know that every six months or so I get the urge to wipe my system and do a clean install. For me, it's that same clean feeling you get …


Continue reading

CascadiaJS 2020

Posted on Fri 04 September 2020 in Programming • Tagged with javascript, conferences

I attended my first JavaScript conference, CascadiaJS, this year. It was an amazing experience and, if given the chance, I will definitely attend the next one. For future reference, here are the speakers and the talks they gave.

Highlights

  • Jim Liu, for volunteering his time to organize, and for gifting …


Continue reading

Project Euler Problem 22

Posted on Thu 12 December 2019 in programming • Tagged with python

This is a short post, showcasing my solution to problem 22 on Project Euler. I worked on this problem over lunch with a few co-workers, and they found the solution useful. If you find this article, I hope it is useful to you as well.

The prompt for this exercise …


Continue reading

Breaking my Advent of Code 2019, day 1 solution

Posted on Wed 04 December 2019 in programming • Tagged with python

The Advent of Code 2019 challenge is open. These are my solutions to the problems presented on day 1.

Part one

Asks us to figure out how much fuel is required to lift a given spacecraft module if we know its' mass.

import math
import sys

def calculate_fuel_cost(mass):
    return …

Continue reading

Vim folds helped me write a markdown presentation

Posted on Wed 27 November 2019 in Programming • Tagged with vim, markdown

Vim. For a program that was released in 1991, I am still amazed at the vast amount of features that I both know, and have yet to learn.

One such example are folds. In vim, folds are a concept that allows you to collapse parts of code based on rules …


Continue reading