Python 2.7 end-of-life - The time to upgrade is upon us

Note: Python 2.7 EOL has now passed. This article is kept for historical reference — if you’re still running Python 2.7 in production, the migration guidance here remains relevant, but the urgency framing is dated. 1st January 2020 marked the official end of python 2.7 development, including feature support and security fixes. Python 2.7 was over 9 years old in development years, making it the longest supported version to date. The code freeze is no in place, with the final release – 2.7.18 – scheduled for an April 2020 release. So yes there will be one more version to come down the tubes but it’s probably best that the new python project you were thinking of starting is written in 3.7 or above. ...

5 January 2020 · 2 min · Tom

Kasa home automation with IFTTT and python webhooks

They say that the long tail page titles are best for SEO, well this one certainly should be up there with the best of them. In this post, I am going to explain how easy it is to control Kasa a HS100 / HS110 with IFTTT and python webhooks. Using this basic code, you expand into building a very powerful home automation system which fits your needs and take your Kasa home automation to the next level. ...

4 December 2019 · 3 min · Tom

AWUS036AC (rtl8812au) driver setup in Kali Linux

Note: This guide was written for Kali Linux 2019.4. The core dkms build method still works on current Kali, but package names and kernel headers may differ slightly on newer releases. I am planning a number of articles which focus on using aircrack-ng and hashcast to recover WPA wireless security passwords. However to get into that you need to have a specific wireless device which supports monitor mode and packet injection. I decided on the Alfa AWUS036AC, but some work was required to get the drivers installed. ...

3 December 2019 · 3 min · Tom

Kali Linux - How to upgrade python 2.7 to python 3.7

Note: Python 2.7 reached end-of-life in January 2020 and Python 3.7 followed in June 2023. On current Kali Linux, Python 3 is the default — python3 is available out of the box and python typically symlinks to it already. This article is kept for historical reference and for anyone on older installations. I have covered changing the default version of python in Debian, however for those looking to Google for a quick fix on Kali, I hope that this reaches you well. ...

26 November 2019 · 2 min · Tom

Ubuntu 19.10 - How to upgrade python 2.7 to python 3.7

Note: This article covers Ubuntu 19.10 and Python 2.7, both of which are end-of-life. Ubuntu 19.10 reached EOL in July 2020; Python 2.7 reached EOL in January 2020. If you’re on a current Ubuntu LTS (22.04 or 24.04), Python 3 is the default — no changes needed. This article is kept for historical reference. Much to my surprise, I found that a fresh install of Ubuntu 19.10 was set to use python 2.7 as the default python instance. ...

24 November 2019 · 2 min · Tom

Getting started with Python 3 - a beginner's cheat sheet

Python.Org I have been getting started with python 3 – I want to make this my primary scripting language. One way I like to assist myself whilst I learn the rope is to maintain a crib sheet filled with all the trivial things I would otherwise forget. Python 3 Cheat Sheet #Define Variables programming_languages: "Python", "VB", "C++", "C#" #Print Variables print(programming_languages) print('--------------------') #Basic for loop + variables for language in programming_languages: print(language) print('--------------------') #Basic Function def FuncExample(): i: 1 for language in programming_languages: #Concatinate Strings and Integers in print statements print("Language " + str(i) + ":" + language) #Increment Integer i += 1 FuncExample() print('--------------------') #Functions with Variables #1 - Strings def FuncVarExample1(fname, lname): #Print with CRLF print("First Name: " + fname + "\r\n" + "Last Name: " + lname) FuncVarExample1("Joe","Bloggs") print('--------------------') #Functions with Variables #2 - Integers + Returning Values def FuncVarExample2(x, y): #Basic integer maths return x+y #Concatenating Strings and Integers print("33 + 42: " + str(FuncVarExample2(33,42))) print('--------------------') You can also find more code snippets here: https://exitcode0.net/code-samples/

23 November 2019 · 1 min · Tom

Clipboard and Shared Folders on Kali Linux with VirtualBox

I spent more time that care to admit trying to setup a shared folder between my windows host and Kali VirtualBox VM. So hopefully the Google algos pick this one up and save you the time trying to find the right packages to fix this a clipboard sync. apt-get update apt-get install -y virtualbox-guest-x11 Go for a quick reboot once the above commands are complete and you should have clipboard sync (text) and shared folders should mount successfully. ...

21 November 2019 · 1 min · Tom

[SOLVED] - Running Docker on a Raspberry Pi 4

The Raspberry Pi 4 has now been released offering up to 4GB of RAM! All of the horsepower required for an excellent lower power, docker host. However, there are currently issues undergoing work which prevent docker from running on the only Rasbian image currently available for the Pi 4 – ‘Rasbian Buster‘. Details of these issues can been found here on the GitHub thread – https://github.com/docker/for-linux/issues/709 Current Working Solution Fear not, for there is a simple way to fool your docker installation and successfully getting it to run on the Pi 4. ...

10 July 2019 · 1 min · Tom

Changing the default python version in Debian

In a previous post, I explained how to upgrade from Python3.5 to Python3.7, however is is still the case in most fresh Debian installs that the default python version is 2.7. This post is going to show you the simple steps you need to take when changing the default python version in Debian. This guide is based on a Debian 9 installation, but work for multiple releases. Check you default version First we need to check our current default version of python. This is the version of python that you Debian OS will try to execute python scripts with unless otherwise specified. ...

17 June 2019 · 2 min · Tom

Using a DHT11 sensor with a raspberry pi

This post is going to share how to use DHT11 sensors with a the raspberry pi , using the GPIO pins. Furthermore the particular sensor that I am going to be discussing requires zero soldering and is purely plug and play. The Sensor: The sensor that we will be using is the DHT11 – the exact variant is the 3 pin version. You can find the exact version that I used here ...

24 February 2019 · 1 min · Tom