Posts tagged todayilearned
Dictionary Merge and Update Operators in Python 3.9
- 04 June 2021
When it comes to merging two dictinaries in Python, I find myself googling “how to merge two dictionaries” very often. Every time I land on this StackOverflow answer. This answers recommends using the dictionary unpacking feature:
How to Generate Wildcard SSL Certificate using Let’s Encrypt/Certbot on CentOS
- 27 February 2021
Today I wanted to generate a wildcard SSL certificate for a service I was working on. Luckily, Let’s Encrypt’s ACME v2 production endpoint makes it so easy to generate wilcard certificates (for more details on this feature, see this post). Below are the steps I used to generate a wildcard certificate.
Freedom of Cryptography
- 21 February 2021
Today I learned that if you could travel back to the early 1990s with the contents of this git repository, you would have had to become a licensed arms dealer 😮 —the govt certainly would have denied you an export license— before you could post the source code (or any work that featured the source code) on the internet.
Function Expressions in JavaScript
- 14 January 2021
I’m currently learning JavaScript, and here are a few things I learned about function expressions in JavaScript ;)
How to set up a wildcard subdomain on Google Domains
- 09 January 2021
Today, I was working with dokku, and I found myself in need of a wildcard subdomain. A wildcard DNS record is a record that will match requests for non-existent subdomains. For instance, if you set a wildcard DNS record to *.example.com
, and a user requests random.example.com
or foo.example.com
, etc.. the requests will be forwarded to whichever server *.example.com
points to.
How to merge two or more disk partitions on Centos 7
- 07 January 2021
I’ve been working with centos 7 virtual machine provisioned via VMware’s vrealize suite. One thing I particulary dislike is how the storage disk gets partitioned into tiny partititions during the VM provisioning: