Jan 8Member-onlyWhy I Stopped Hosting my Blog on AWSI originally set up this blog as a place to document some of my findings and learnings while working in the tech industry. A place to put things that I found hard to find on Google, like my post on using Typing NoReturn incorrectly. I then started using this as…DevOps5 min readDevOps5 min read
Jan 5Member-onlyHow to set GitHub SSH key for a particular repoI often have multiple GitHub accounts on a single computer, for a range of different reasons; personal account, side project accounts, work accounts etc. and I often run into the issue of having access denied when trying to clone or push commits. After I had followed all the instructions here…Git2 min readGit2 min read
Jan 3Member-onlyReset Dev branch to MainThere are a few situations where you want to reset your develop/test branches back to main; Breaking changes have been introduced into the dev/test branch. There are merge conflicts in dev/test for a branch based off main. Like there are multiple ways that this problem occurs there are also multiple…Git2 min readGit2 min read
Feb 22, 2022Member-onlyStop being asked for your ssh key passwordIntroduction I have been using ssh keys to access my GitHub and GitLab for a while now, but one thing that has always annoyed me was how if I have a password on my ssh key I need to re-enter my password each time I use it. Now, I hear you…Ssh Keys2 min readSsh Keys2 min read
Dec 3, 2021Member-onlyPython3.8 Positional-only argumentsI have always been of the mind that explicit is much better than implicit. For this reason, I have almost always included Python’s keyword-only arguments when defining a function. My reasoning behind this is I feel that I should always know what I am passing into a function and how…Python3 min readPython3 min read
Nov 25, 2021Member-onlyI have been using Python typing’s ‘NoReturn’ wrongI am a huge fan of python’s new typing module which was introduced in version 3.5. The addition of this module gives us a range of tools to help people read and understand your code in the future. Since I have started using typing I have been adding argument types…Python2 min readPython2 min read
Nov 25, 2021Member-onlyPython’s Walrus OperatorThe Walrus operator was introduced to Python in 3.8, here is a quick overview of the operator and how you can use it. The Walrus operator := goal is to allow a user to name variables and use them in expressions with ease. It takes the form of NAME := expr…Python2 min readPython2 min read
Nov 21, 2021Member-onlyQuick look at Python 3’s Stared ExpressionsA starred expression is when you add a “*” in front of a variable. It can also be called “Extended Iterable Unpacking” This has the effect of acting as a “catch all” for lists. The idea behind this is to replace this “messy” line: first, rest = li[0], li[1:] It…3 min read3 min read