Skip to content

Instantly share code, notes, and snippets.

View Bugaddr's full-sized avatar

Pranay Bugaddr

View GitHub Profile
@Bugaddr
Bugaddr / daily-whatis.sh
Created May 26, 2024 17:25
Shell script for printing whatis for executables in /usr/bin folder randomly, just to make you curious and maybe you will find some new command :)
#!/usr/bin/env bash
# File to store previously printed commands
printed_commands_file=~/.local/share/daily-whatis/databases/printed_commands_db.txt
# Check if the file exists, if not create it
if [ ! -f "$printed_commands_file" ]; then
mkdir -p "$(dirname "$printed_commands_file")" # Ensure directory exists
touch "$printed_commands_file" # Create the file
fi

TO disable a key in xfce-desktop-env

  • To disable up key
xmodmap -e 'keycode 98='
  • To enable up key
xmodmap -e 'keycode 98=Up'
@Bugaddr
Bugaddr / poco-m2-pro-debloat.sh
Last active May 26, 2024 17:28
POCO M2 PRO (GRAM) MIUI 12.5 debloater
#!/bin/bash
# MIaccount will not work
# Stock ROM Samsung MIUI 12.5
apps=(
'com.miui.analytics' # Mi-anal
'com.xiaomi.glgm' # Migames
'com.xiaomi.mipicks' # Miappstore
'com.miui.compass' # MICompass
'com.miui.yellowpage' # Yellowpagevirus
'com.android.stk' # SimToolkit