Skip to content

Instantly share code, notes, and snippets.

View adithya2306's full-sized avatar

Adithya R adithya2306

  • India
  • 07:50 (UTC +05:30)
View GitHub Profile
@adithya2306
adithya2306 / RTW89-fixes.md
Last active May 17, 2026 00:48
RTW89 / RTL8852CE wifi and bluetooth instability issues

RTL8852CE Linux Stability Notes

These are the fixes and tweaks that significantly improved wifi and bluetooth of my PC running linux, with motherboard built-in RTL8852CE wifi card, which uses rtw89 driver.

The main issue was bluetooth audio crackling/stuttering noticeably when network traffic on wifi is high (I was able to verify it by running a speedtest), especially on hi-res codecs (LDAC, aptx HD or SBC-XQ)

System:

  • M/b: Gigabyte B850 Gaming X
  • OS: Kubuntu 26.04
@adithya2306
adithya2306 / dvmkv2mp4.sh
Created April 17, 2026 12:38
Convert MKV with Dolby Vision video to MP4 + (ENG) SRTs
#!/bin/bash
# Convert DV MKV to MP4 + (ENG) SRTs
# Pre-req: ffmpeg, ffprobe
# Check input
if [ -z "$1" ]; then
echo "Usage: $0 [-s subtitle_index] <input.mkv>"
exit 1
fi
#!/bin/bash
# Forked from https://github.com/osm0sis/PlayIntegrityFork/blob/main/module/autopif2.sh
FORCE_DEPTH=1
until [ -z "$1" ]; do
case "$1" in
-h|--help|help) echo -e "./autopif2.sh [-p] [-d #] [-m device]"; exit 0;;
-p|--preview|preview) FORCE_PREVIEW=1; shift;;
-d|--depth|depth) echo -e "$2" | grep -q '^[1-9]$' || exit 1; FORCE_DEPTH=$2; shift 2;;
-m|--device) DEVICE_OVERRIDE="$2"; shift 2;;
#!/bin/bash
#
# Script to set up an Ubuntu 22.04+ server
# (with minimum 16GB RAM, 8 threads CPU) for android platform, linux builds and more
#
# Sudo access is mandatory to run this script.
# Recommended to apply personal dotfiles afterwards.
#
# Usage:
# ./ubuntu-setup.sh
Windows Registry Editor Version 5.00
; Add "Open with VS Code" to folder context menu
[HKEY_CLASSES_ROOT\Directory\shell\Open with VS Code]
@="Open with VS Code"
"Icon"="\"C:\\Program Files\\Microsoft VS Code\\Code.exe\""
[HKEY_CLASSES_ROOT\Directory\shell\Open with VS Code\command]
@="\"C:\\Program Files\\Microsoft VS Code\\Code.exe\" \"%V\""
#!/usr/bin/env python3
import re
import sys
import xml.etree.ElementTree as ET
from typing import Dict, List, Union
# pip install cryptography
from cryptography.hazmat.primitives import serialization
from cryptography.hazmat.backends import default_backend
@adithya2306
adithya2306 / dvconvert.sh
Last active April 26, 2025 15:21
Convert dolby vision profile 8 mkv to dolby vision profile 5 mp4
#!/bin/bash
# Script to convert MKV files with dolby vision video (any profile), dolby audio (AC3 or EAC3)
# and subtitles, to MP4 with dolby vision profile 5 and SRT file.
# Default settings
video_id=0
audio_id=0
subtitle_id=0
skip_extraction=false
audio_codec="eac3"
#!/usr/bin/env python3
"""
SPDX-FileCopyrightText: 2025 Adithya R
SPDX-License-Identifier: MIT
"""
import sys
import xml.etree.ElementTree as ET
#!/bin/bash
ulimit -n $(ulimit -Hn)
push() {
BRANCH="vauxite"
repo="$1"
name=$(grep -m 1 "path=\"$repo\"" manifest/{aospa,system,vendor}.xml .repo/local_manifests/baristablend.xml | head -n 1 | sed -e 's/.*name="//' -e 's/".*//')
if [[ -z $name ]]; then
name=$(grep -m 1 "name=\"$repo\"" manifest/{aospa,system,vendor}.xml .repo/local_manifests/baristablend.xml | head -n 1 | sed -e 's/.*name="//' -e 's/".*//')
#!/bin/bash
export BRANCH="vauxite"
ulimit -n $(ulimit -Hn)
list() {
if ! git -C $1 diff m/$BRANCH > /dev/null; then
echo -e "Error in $1\n"
echo $1 >> .failed_list