Skip to content

Instantly share code, notes, and snippets.

View madkoding's full-sized avatar
🧩
Back to your reality

madKoding madkoding

🧩
Back to your reality
View GitHub Profile
@madkoding
madkoding / fix-libc-config-problem.md
Last active December 10, 2023 21:17
Fix libc config problems (/sbin/ldconfig.real: Path `/usr/lib/x86_64-linux-gnu' given more than once)

Troubleshooting libc-bin on Debian/Ubuntu Systems

This document provides instructions for addressing issues with the libc-bin package on Debian or Ubuntu-based systems.

Problem Description

The error dpkg: error processing package libc-bin (--configure): installed libc-bin package post-installation script subprocess returned error exit status 134 indicates a problem during the configuration of the libc-bin package.

Also the error /sbin/ldconfig.real: Path '/usr/lib/x86_64-linux-gnu' given more than once is also related

@madkoding
madkoding / pair-dual-boot-bluetooth.md
Last active August 12, 2025 13:40
Pairing bluetooth devices in dual boot with Linux Ubuntu and Windows 10/11

Pairing Bluetooth Devices in Dual Boot with Linux Ubuntu and Windows 10/11

Introduction

This guide provides updated instructions for pairing Bluetooth devices (such as keyboards or mice) in a dual-boot environment with Linux Ubuntu and Windows 10/11, incorporating community feedback and suggestions.

Instructions

1. Pair in Linux First

  • Pair your Bluetooth device in Linux. This is crucial to ensure the LinkKey remains consistent.
  • Note: Do not re-pair the device in Linux after completing the pairing in Windows.
@madkoding
madkoding / install-docker-deepin.sh
Last active June 28, 2025 11:03
Install Docker-CE script for Deepin Linux
#!/bin/bash
echo "Starting Docker installation on Deepin Linux..."
# Define a mapping from Deepin version to Debian version
map_deepin_to_debian() {
if [ "$1" -lt 20 ]; then
echo "stretch"
elif [ "$1" -ge 20 ]; then
echo "buster"
@madkoding
madkoding / namecheap-ddns.sh
Last active December 10, 2023 21:01 — forked from dalhundal/namecheap-ddns.sh
Shell script to update namecheap.com dynamic dns for a domain with your external IP address every certain minutes
#!/bin/bash
# Shell script to update Namecheap.com dynamic DNS
# for a domain to your external IP address
# Configuration - replace these with your details or read from a secure location
HOSTNAME=yoursubdomain
DOMAIN=yourdomainname.com
PASSWORD=y0urp455w0rd