All posts by Oliver Radwell

Go Program for a Unique Twitter Profile Banner

Do you think your Twitter profile banner is boring? Do you wish there was something that could rotate your Twitter banner images? Maybe what you want is to brag about your Twitter account statistics on your profile banner to make a unique Twitter profile banner. This article showcases a Go program that does just that.

Landscape image showing clouds and grass generated by the program. Statistics: 217 Following, 68 Followers, 461 Tweets, In 0 lists, Located in London, UK, 2021-11-26 23:27 UTC, https://git.io/JMOjc
A Twitter Banner generated and uploaded by the program

Retrieve User Statistics from Twitter

We will authenticate with Twitter API using OAuth 2.0 to retrieve the statistics for the given Twitter profile. To achieve this, we need the Go oauth2 package.

You can find the code for user data in user_data.go.

Continue reading Go Program for a Unique Twitter Profile Banner

Install Mozilla VPN RPM from Binary on Fedora

Mozilla VPN is a VPN solution that uses the WireGuard protocol. Unfortunately for Fedora users, there’s no official guide on installing it for Fedora. That said, since 6th July 2021 there are Mozilla VPN RPM packages on GitHub Actions. This article will show you how to get these RPMs.

Mozilla VPN screenshot showing location selection and VPN switch
Continue reading Install Mozilla VPN RPM from Binary on Fedora

DNF Trying to Use SQLite Backend Warning

If you keep getting the following warning after upgrading to Fedora 33:

warning: Found bdb Packages database while attempting sqlite backend: using bdb backend.

Try rebuilding RPM database:

rpmdb --rebuilddb

If that results in:

error: can't create transaction lock on /var/lib/rpm/.rpm.lock (Permission denied)
Continue reading DNF Trying to Use SQLite Backend Warning

Silly but This Is a WordPress Blog Running on Kubernetes

You probably think it’s overkill to use Kubernetes for a WordPress blog with less than a thousand monthly visitors. While this may be true, it’s totally worth using Kubernetes for the bragging rights. This is a WordPress blog running on Kubernetes!

Kubernetes running WordPress and MariaDB
Sources: https://pixabay.com/images/id-5718352/ and https://www.freepik.com/free-vector/cargo-freight-container_3795063.htm
Continue reading Silly but This Is a WordPress Blog Running on Kubernetes

Famous Vegans You May Know

People don’t often reveal their diet but some celebrities are very vocal about their views on animal welfare. Scroll down to see 10 famous vegans you may not know were vegans.

Mayim Bialik

Bialik is known for playing neuroscientist Amy Farrah Fowler in Big Bang Theory. Handy for Bialik’s role in the series, she’s also a neuroscientist in real life. Not only is she a vegan, but she has also written a vegan cookbook too. Her book is called Mayim’s Vegan Table which contains 100 plant-based recipes.

Continue reading Famous Vegans You May Know

Expert Update Statements with Joins on MariaDB

You can use UPDATE statement in Structured Query Language (SQL) to modify values in the matching rows. However, only some people know that you can use JOINs in UPDATE queries. For example, by using JOINs we can retrieve additional data from other tables or exclude some rows from our update. Soon you will learn how to write update statements with joins on MariaDB / MySQL.

Update statement with multiple joins shown in a database manager
Continue reading Expert Update Statements with Joins on MariaDB

Ultimate Way of Installing Metrics Server for Production Kubernetes Clusters

Metrics are very important in your Kubernetes cluster because you need them to monitor the pod resource usage. You also need metrics to trigger an autoscale using an Horizontal Pod Autoscaler (HPA). Metrics Server provides CPU and memory metrics so you can see them in Kubernetes Dashboard’s fancy graphs.

Kubernetes dashboard showing CPU and memory metrics in graphs
CPU and memory metrics in Kubernetes Dashboard
Continue reading Ultimate Way of Installing Metrics Server for Production Kubernetes Clusters

Hidden Method of Sharing Another User’s Video on Twitter

Do you hate that videos in quote tweets are smaller on Twitter? You may also want to remove the text of the tweet and share the video only. If you noticed a text “From <user>” under some posts with videos, you have seen these kinds of posts already. We can call this directly sharing a video on Twitter.

Screenshot of a Tweet directly sharing a video from BBC Archive
Tweet containing a video from BBC Archive
Continue reading Hidden Method of Sharing Another User’s Video on Twitter