-
Continue reading →: Using Ansible With AWS – Creating EC2 Instances (AWS / Ansible)So far most of my Ansible blog posts have been deploying or configuring local devices (i.e. normally one of my Raspberry Pis), but the whole idea of Ansible is that it can build whole infrastructures as code (well, YAML files in my incase). The best place to see infrastructure as…
-
Continue reading →: Caching Requests (Python)Python’s Requests module is a great way for interacting with data over the internet, however when designing/building a Python program that uses Requests that can mean lots (and lots) of Request calls to test a function. This is not too great if you are testing over a poor internet connection,…
-
Continue reading →: Installing Go Compiler On Raspberry Pi 4 (Raspberry Pi OS 32-Bit)Go (Golang) requires a compiler to build it’s code and it only takes a few lines to install that compiler on the Raspberry Pi. I’m using a Raspberry Pi 4 with Raspberry Pi OS (32-bit). Download the appropriate binary release The binaries are available from https://golang.org/dl/ . The Raspberry Pi…
-
Continue reading →: Grafana, Prometheus and Node Exporter On Raspberry Pi via Ansible (Raspberry Pi and Linux)If you want to see metrics in real time and look at web dashboards then Grafana and Prometheus may be the tools you are looking for, and if you are anything like me then you probably want to automate as much of the install as possible via Ansible. My Set…
-
Continue reading →: UK Covid-19 / Coronavirus Data (Python)The UK recently lowered the alert level for Covid-19 / Coronavirus pandemic, with the UK at level 3 (at time of writing this blog, 24th June 2020) and there has been discussion in the media about R levels differing at local levels and of the possibility of local lock downs.…
-
Continue reading →: Trying To Write More Pythonic With PEP-8 (Python)The Python language has a list of Python Enhancement Proposals (PEPs) that have been suggested as ways to improve Python. In this blog post I am going to look briefly at PEP-8. The Index Of PEPs Python.org keeps a list of all the PEPs at: https://www.python.org/dev/peps/ once a PEP has…
-
Continue reading →: Linux Root Directory (Linux)Have you ever run the ls command on the root of a Linux system and wonder what all the directories are and what they contain? The root directory layout of a Linux system can initially seem a little confusing, with directories like /usr being name user but not really being…
-
Continue reading →: AttributeError: partially initialized module has no attribute…(Python)Less of a blog post and more of a reminder to myself that when Python says: AttributeError: partially initialized module ‘MODULE_NAME’ has no attribute ‘ATTRIBUTE_NAME’ (most likely due to a circular import) It is normally because I have named my Python file the same as the module I am importing…
-
Continue reading →: Using A Raspberry Pi As A Syslog-ng Server (Raspberry Pi)After many years of using my ISPs provided router I have finally upgraded to a higher spec router which has several features the ISP provided one did not. One of these features is the option to send logs from the router to a syslog server. For this project I am…
-
Continue reading →: Deleting Old Files With BASH / Removing Old Log Files with BASH (Linux)Log files are a brilliant feature of any piece of software / operating system. However, over time they can take up space and become a pain to remove. In this blog post I am going to look at a quick bash script that can be used via cron to delete…



You must be logged in to post a comment.