Authenticating Git and GitHub CLI over SSH

Prerequisites Install GitHub CLI if you haven’t already brew install gh Check that you are logged out. gh auth status You are not logged into any GitHub hosts. Run gh auth login to authenticate. If you’re still logged in, logout. gh auth status ✓ Logged in to as tobyscott25 (keyring) ✓ Git operations for configured to use https protocol. ✓ Token: gho_************************************ ✓ Token scopes: gist, read:org, repo, workflow gh auth logout ✓ Logged out of github....

8 January 2024 · 4 min · Toby Scott
Kubuntu desktop screenshot

Configuring Kubuntu

Until recently, Arch Linux has been my daily driver. I love the rolling release model and you really can’t fault the AUR. But always getting the latest features and patches is a double edged sword because along with those benefits come the latest bugs and issues. I considered the benefits to outweigh the short comings up until one dreadful day… # Updating my system with an AUR helper as per normal paru # Things started playing up so I restarted my machine sudo reboot now And my system was bricked....

7 November 2023 · 4 min · Toby Scott
Touch ID on MacBook

How to configure Touch ID to authorise sudo commands on macOS

The other day I was watching one of NetworkChuck’s recent videos where he was running through a bunch of shell commands for Mac, and one stuck out to me in particular… The ability to configure Touch ID to authorise sudo commands! 🤯 Edit the following file: sudo vim /etc/pam.d/sudo Add this line auth sufficient to the top of the file, below the comment. It should look something like: # sudo: auth account password session auth sufficient pam_tid....

8 February 2023 · 1 min · Toby Scott
Typing on a keyboard

How to fix an unresponsive keyboard on Lenovo Yoga running Linux

I recently installed Ubuntu Linux on a Lenovo Yoga Slim 7 Pro, although I had to connect an external keyboard to go through the installation process because the built-in keyboard was completely unresponsive! Luckily I came across this Stack Overflow answer which did the trick for me. Once the installation was complete I needed to edit the GRUB config to fix this. sudo vim /etc/default/grub Add these parameters to GRUB_CMDLINE_LINUX like so:...

14 January 2023 · 1 min · Toby Scott
MacOS Sierra

How to extract an old macOS installer from PKG on a newer version of macOS

Background I have an old 2016 Intel MacBook Pro that I’ve had running Ubuntu for a while but could never get the sound to work in Linux so I decided to reinstall macOS on it. Should be easy right? Wrong… Instead of setting up a dual boot situation, I cleverly decided to wipe the whole hard drive in favour of Ubuntu, recovery partitions and all. But no matter, Intel Macs can boot into an internet recovery system without the recovery partition by holding ⌘ R on power....

1 January 2023 · 5 min · Toby Scott