Skip to content

Instantly share code, notes, and snippets.

View diffficult's full-sized avatar
💽
the big switcharoo

reese diffficult

💽
the big switcharoo
View GitHub Profile
@diffficult
diffficult / bluetoothdoubledipping.md
Last active January 24, 2026 16:57
Bluetooth Pairing one device on Dual Boot of Windows & Linux - Stop having to Pair Devices

Bluetooth Pairing one device on Dual Boot of Windows & Linux - Stop having to Pair Devices

You may have experienced when dual booting that you need to re-pair your bluetooth devices (ie., Headphones, mouse, keyboard, etc) this usually happens because you have already paired the device with another operating system using the same bluetooth adapter when dual booting (either Linux or Windows).

Some devices cannot handle multiple pairings associated with the same MAC address (ie., bluetooth adapter). As per suggested on the ArchWiki you can fix this by re-pairing the device each time, but there's actually another solution to not do so each time you choose to use your device on a different OS.

How can we accomplish this?

Easy, just pair the device on a OS and copy the bluetooth keys generated to the other OS so our device doesn't notice the difference.

@diffficult
diffficult / AX200_Bluetooth_issues.md
Last active January 11, 2026 02:27
AX200 Intel Chipset Bluetooth issues on powerloss

Intel AX200 Bluetooth Issues on ASUS X570 Motherboards: Findings, Problems, and Solutions

Last Updated: February 27, 2025


Overview

The Intel Wi-Fi 6 AX200 chipset, commonly integrated into motherboards like the ASUS ROG Strix X570-I Gaming or added as an M.2 module, promises robust Wi-Fi and Bluetooth 5.2 connectivity. However, a recurring issue across both Windows and Linux systems, including Arch Linux, is the Bluetooth controller failing to initialize or function after a system reboot. This document synthesizes findings from community forums, official documentation, and user experiences to detail the problem, its potential impacts, and actionable solutions.

@diffficult
diffficult / mpv.conf
Created November 1, 2016 04:41
basic MPV config with high settings and ytdl settings
# Video settings
vo=opengl-hq
tscale=linear
scale=ewa_lanczossharp
cscale=ewa_lanczossoft
dscale=mitchell
scale-antiring=0.7
cscale-antiring=0.7
dither-depth=auto
@diffficult
diffficult / ledger_nano_s_on_linux.md
Last active January 2, 2026 18:28
Ledger Nano S on Arch

Ledger Nano S on Linux

Requirement:

  • Ledger Nano
  • Ledger HW1
  • Ledger Nano S
  • Ledger Blue
  • Special Edition

You need to create a set of udev rules to allow access to the device on Linux. This can be done easily by running the following command:

@diffficult
diffficult / stow_4_idiots.md
Last active December 13, 2025 09:54
Basic stow guide for idiots

KISS instructions on how stow works and how to easily set it up

Create a git repo directly in your home folder, .g. ~/dotfiles

In this directory, you create a folder with a "package name" and in it the exact folder structure this app has it's config files in your home folder.

Let's take i3 for example, which has its config file in ~/.config/i3/config

Move this file into ~/dotfiles/i3/.config/i3/config. Now you can git add and git commit it, like usual.

@diffficult
diffficult / installing_virt_manager.md
Last active October 17, 2025 20:12
Easy instructions to get virt-manager qemuv/kvm running on Arch

Easy instructions to get QEMU/KVM and virt-manager up and running on Arch

  1. Make sure your cpu support kvm with below command:

     grep -E "(vmx|svm)" --color=always /proc/cpuinfo
    
  2. Make sure BIOS have enable “Virtualization Technology”.

  3. User access to /dev/kvm so add your account into kvm(78) group:

@diffficult
diffficult / raspberrypi0_headless_setup.md
Last active October 3, 2025 18:40
Get your Pi 0 W up and running headless with Arch Linux

Installing Arch Linux ARM on a SD card for Raspberry Pi 0 W and loading wifi credentials for headless usage


Advice

Before starting I highly suggest you create a new directory on your /home/user directory with an appropiate name for this task like rpi0alarm so you can change directory to /home/user/rpi0alarm and go through the following steps.

As I wrote this guide after collecting info from different sources (listed at the end) be mindful of your current path and the commands you are running to not damage your current installation on the host computer you are creating the SD Card.


@diffficult
diffficult / w10_bcd_error_0xc0000098.md
Last active May 29, 2025 20:21
Windows 10 Error: BCD missing - error 0xc0000098

Fixing Boot Error 0xc0000098 on Windows 10 (8 & 7)

Method 1: Run Automatic/Startup Repair

  1. Insert the Windows 10 bootable installation DVD and restart your PC.

  2. When prompted to Press any key to boot from CD or DVD, press any key to continue.

  3. Select your language preferences, and click Next. Click Repair your computer in the bottom-left.

@diffficult
diffficult / WD_My_Cloud_EX2.txt
Created April 16, 2017 07:42
Fan control notes for WD My Cloud EX2 Ultra
~ # fan_control -?
*** Fan Cobtrol Help Message ***
fan_control b c: for NAS booting
fan_control 0 d : [auto: low/medium/high/max] open debug msg
fan_control 0 c : [auto: low/medium/high/max] close debug msg
fan_control -L [value] : set Lower (THYST)
fan_control -H [value] : set Upper(TOS)
fan_control -g 0 : get current temperature
fan_control -g 1 : get Lower temperature
fan_control -g 2 : get Upper temperature
@diffficult
diffficult / README-TAPO-Linux.md
Created November 30, 2024 19:30 — forked from schauveau/README-TAPO-Linux.md
Notes about TP-Link Tapo C500 and Linux

TP-Link Tapo C500 and Linux

Those are my notes about using the TP-Link Tapo C500 camera in my Linux environment.

More precisely, my Linux system are

  • a Debian Testing desktop pc
  • a few raspberry pi
  • an Asustor NAS that is running a highly customized Linux

Tapo C500 technical summary