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 / 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
@madkoding
madkoding / install-docker-deepin.sh
Last active May 23, 2024 10:08
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 / pair-dual-boot-bluetooth.md
Last active June 27, 2024 17:48
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 / 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 / install-docker-wsl2.sh
Last active December 10, 2023 20:37
Install Docker and Docker Compose in WSL2
#!/bin/bash
# Check if running in WSL
if grep -qEi "(Microsoft|WSL)" /proc/version &> /dev/null ; then
echo "WSL detected, proceeding with Docker installation..."
else
echo "This script is intended to be run in WSL. Exiting."
exit 1
fi
@madkoding
madkoding / anticors-proxy-server.js
Last active December 10, 2023 20:35
Create proxy server for CORS issues (http-proxy package)
// Import required modules
const http = require("http");
const httpProxy = require("http-proxy");
// API target and proxy port configuration
const API_TARGET = 'https://pokeapi.co/api/v2/';
const PROXY_PORT = 8080;
// Create a proxy server
const proxy = httpProxy.createProxyServer({});
@madkoding
madkoding / install-zsh-powerline-ubuntu.md
Last active December 10, 2023 20:32
Install ZSH and Oh-my-zsh (powerline like) in Ubuntu

Install ZSH and Oh-my-zsh (Powerline-like) in Ubuntu

Introduction

This guide provides instructions on how to install ZSH and Oh-my-zsh with a Powerline-like theme in Ubuntu

Instructions

1. Install Powerline Fonts

  • First, install Powerline fonts. You can find them here.
@madkoding
madkoding / semantic-emoji-commit-messages.md
Last active July 21, 2021 21:50
Semantic Emoji Commit Messages for Git

Semantic Emoji Commit Messages

Helps to keep a better order and keep easy to understand every change in the git log history Emojis looks nice, and i chose the most easy to remember ones

Syntax

type [scope] subject
emoji section (optional) Summary (present tense)
@madkoding
madkoding / fix-hyperv-udp-packet-loss.md
Last active December 10, 2023 20:56
Fix Hyper-V UDP packet loss in linux (Minecraft Bedrock server issues)

Persistent Disabling of TCP/UDP Checksum Offloading in a Virtual Machine

This guide provides a method to persistently disable TCP/UDP checksum offloading on eth0 in a virtual machine, ensuring the changes remain effective even after a reboot. (Usually to fix issues for Minecraft Bedrock Server)

Steps

1. Install ethtool

First, ensure that ethtool is installed. If it's not installed, you can install it using the following command:

@madkoding
madkoding / playstore-in-chromeos-flex-ESP.md
Last active April 25, 2024 05:29
Obtener PlayStore en ChromeOS Flex

Obtener PlayStore en ChromeOS Flex

Requisitos Básicos

  • Computadora basada en x86_64 con soporte de arranque UEFI.
  • Privilegios administrativos en el dispositivo.
  • Un entendimiento básico del terminal de Linux.

Compatibilidad de CPU

  • CPUs Intel desde Haswell (4ta Gen) / CPUs Celeron desde Braswell.
  • AMD Ryzen.