Category: Open Source + Macbooks

01 Sep 2022 Macbooks 👁 10 views

Mac Terminal: Check DNS Nameservers in 2 Commands

To view the list of nameservers your mac is using, simply open Terminal and paste the following: Alternatively, you can copy the DNS servers to clipboard directly from the command line (using pbcopy):

Read more →
01 Sep 2022 Macbooks 👁 6 views

How to Flush DNS Cache on MacBook: Terminal Command

I am not going to tell you why you would need to flush your DNS cache (you will know if you need to). So, to flush DNS on a mac simply fire up Terminal and run the following sudo command:

Read more →
25 Aug 2022 Macbooks 👁 28 views

Mac Command+Tab: Restore Minimised Windows Like Windows

For those who like to maximise or minimise their windows on a Mac, you will likely be frustrated by the default behaviour of your Macbook (in that it doesn’t restore/focus minimised or maximised screens). Below are a few steps to make your mac screen restores behave like Microsoft Windows: Install Homebrew (if you dont have): […]

Read more →
24 Aug 2022 Macbooks 👁 20 views

Auto-Toggle Bluetooth on MacBook Lid Open/Close

If you’re like me, little things bother you. When I turn on my bluetooth headset and it connects to my Macbook when its closed/sleeping, I get very frustrated. So I wrote a simple script to fix this behaviour. After running the script below, when you close the lid on your Macbook it will automatically turn […]

Read more →
03 May 2022 Macbooks 👁 11 views

Enable Apps From Anywhere on Mac: Terminal Command Guide

Previously Macs would allow you to install software from anywhere. Now you will see the error message “NMAPxx.mpkg cannot be opened because its from an unidentified developer“. If you want to fix this and enable apps to be install from anywhere, you will need to run the following command line: Once you have run the […]

Read more →
18 Aug 2021 Open Source 👁 29 views

How to Iterate the COM Running Objects Table in C#

Back in the day I had to do quite a bit of COM / .Net interop. For some reason (and I cannot remember what it was), I need to be able to enumerate the COM running objects table (ROT). I think it was to do with createboject/getobject and trying to synthesis a singleton for an […]

Read more →
10 Mar 2021 Open Source 👁 17 views

Linux CD Command Guide: Navigation Tips for Windows Users

Ok, so I am a windows dude and only after docker and K8 came along did I start to get all they hype around Linux. To be fair, Linux is special and I have been blown away with the engineering effort behind this OS (and also glad to leave my book of Daniel Appleman win32 […]

Read more →
25 Feb 2021 Cyber 👁 12 views

SYN Flood Testing with hping3: A Practical Guide

Getting an application knocked out with a simple SYN flood is both embarrassing and avoidable. Its also very easy to create a SYN flood and so its something you should design against. Below is the hping3 command line that I use to test my services against SYN floods. I have used quite a few mods, […]

Read more →
22 Jan 2021 Networking 👁 6 views

K8GB: Cloud Native GSLB for Kubernetes Explained

Today I am a happy bunny!!!! Yury Tsarev (a very clever dude) did a presentation to one of the Kubernetes co-founders Tim Hockin. The demo was one of absa banks opensource projects called K8GB (a cloud native GSLB for K8s): https://www.k8gb.io/ Why do I like K8GB? Because it uses a single CRD that integrates to […]

Read more →
31 Jan 2015 Open Source 👁 6 views

High Performance Timer Class: C++ Implementation Guide

Below is a sample class containing a high performance timer. Example usuage: }

Read more →
1789