Skip to content

Instantly share code, notes, and snippets.

@KernelGhost
KernelGhost / HDD Testing on Linux and macOS.md
Last active January 1, 2026 01:29
HDD Testing on GNU/Linux & macOS

HDD Testing on GNU/Linux & macOS

Author: Rohan Barar
Date: 10/09/2024

@KernelGhost
KernelGhost / Dual Boot Debian 12 (Bookworm) and macOS Big Sur on a MacBookAir6,1 (11-inch, Early 2014).md
Last active January 7, 2024 22:55
Dual Boot Debian 12 (Bookworm) and macOS Big Sur on a MacBookAir6,1 (11-inch, Early 2014)

Dual Boot Debian 12 (Bookworm) and macOS Big Sur on a MacBookAir6,1 (11-inch, Early 2014)

Author: Rohan Barar
Date: 03/09/2023

@KernelGhost
KernelGhost / SSH and SCP on Android.md
Last active August 5, 2026 10:02
This guide provides step-by-step instructions for setting up and utilising SSH and SCP on an Android device using Termux.

SSH and SCP on Android

Author: Rohan Barar
Date: 03/03/2024

@KernelGhost
KernelGhost / Removing PDF Metadata.md
Last active August 5, 2026 10:03
This guide offers concise steps to remove metadata from PDF files on Linux, macOS and Windows.

Removing PDF Metadata

Author: Rohan Barar
Date: 16/12/2023

@KernelGhost
KernelGhost / Installing Nody Greeter on Fedora Linux 40.md
Last active December 1, 2024 12:31
This guide provides step-by-step instructions for compiling, packaging, and installing Nody Greeter on Fedora Linux 40 using podman containers.

Installing Nody Greeter on Fedora Linux 40

Author: Rohan Barar
Date: 29/03/2024

@KernelGhost
KernelGhost / keybase.md
Created October 7, 2024 09:39
Keybase - Proof of Identity

Keybase proof

I hereby claim:

  • I am kernelghost on github.
  • I am kernelghost (https://keybase.io/kernelghost) on keybase.
  • I have a public key ASBq2JToBzjIusQ8CX7m36XgUiDJGMfEwnHq0bq8JWkmJgo

To claim this, I am signing this object:

@KernelGhost
KernelGhost / RemoveAppleDoubleFiles.sh
Created October 8, 2024 08:55
Recursively delete Apple Double Files (ADFs) and '.DS_Store' files from a specified directory.
#!/usr/bin/env bash
#--------------------------------------------------------------------------------------------------------
# Name: RemoveAppleDoubleFiles.sh
# Purpose: Recursively remove Apple Double Files (ADFs) and '.DS_Store' files from a specified directory.
# Compatability: GNU/Linux & macOS
# Usage: ./RemoveAppleDoubleFiles.sh [/path/to/dir]
# Notes:
# - ADFs have file names beginning with '._'.
# - ADFs begin with the 'magic' sequence '0x00051607'.
@KernelGhost
KernelGhost / rockbox_converter.sh
Last active August 24, 2026 23:18
A bash script that produces MP3 files containing track metadata and embedded album art in a format compatible with iPod Classics running Rockbox.
#!/usr/bin/env bash
################################################################################
# Name: rockbox_converter.sh
# Authors: Rohan Barar
# Revision: 19/11/2025 (DD/MM/YYYY)
# Purpose: Recursively traverse a given input directory to convert all supported
# audio files to 'Rockbox' compatible MP3 files, with a focus on
# ensuring both track metadata (e.g. Title, Artist, Album, etc.) as
# well as embedded album/cover are displayed correctly by Rockbox.
# Usage: ./rockbox_converter.sh <input_dir> <output_dir>
@KernelGhost
KernelGhost / FCV.sh
Last active December 29, 2025 00:25
This Bash script performs a checksum-based comparison of two directories, identifying missing, extra and modified files.
#!/usr/bin/env bash
set -euo pipefail
# Enforce C locale globally to ensure 'sort' and 'join' behavior is identical
export LC_ALL=C
# Define the delimiter
readonly DELIM=$'\x1F' # ASCII Unit Separator
# Create a temporary directory