Skip to content

Instantly share code, notes, and snippets.

"LD_* scout runtime" information:
{
"steam-runtime-system-info" : {
"version" : "0.20240301.0+srt1",
"path" : "/home/bunkbail/.steam/debian-installation/ubuntu12_32/steam-runtime/amd64/usr/bin/steam-runtime-system-info"
},
"can-write-uinput" : false,
"steam-installation" : {
"path" : "/home/bunkbail/.steam/debian-installation",
"data_path" : "/home/bunkbail/.steam/debian-installation",
Computer Information:
Manufacturer: ASRock
Model: B550M Phantom Gaming 4
Form Factor: Desktop
No Touch Input Detected
Processor Information:
CPU Vendor: AuthenticAMD
CPU Brand: AMD Ryzen 5 5600X 6-Core Processor
CPU Family: 0x19
@bunkbail
bunkbail / adb_pull_sdcard.sh
Last active February 1, 2024 17:55
Pull everything from your android internal storage (default folder: /storage/emulated/0)
#!/bin/bash
cleanup() {
echo "Cleaning up..."
kill -TERM "$ADB_PULL_PID" # Send SIGTERM to adb pull
wait "$ADB_PULL_PID" # Wait for adb pull to exit
rm -rf "${OUTPUT_DIR}"
exit 1
}
#!/bin/bash
REPO="pineappleEA/pineapple-src"
LOCATION=$(curl -s https://api.github.com/repos/$REPO/releases/latest \
| grep "browser_download_url" \
| awk '{print substr($2, 2, length($2)-2)}' \
| grep "Linux-Yuzu-EA" )
FILENAME=$(basename $LOCATION)
# KDE Plasma theme switch to default (user mode)
if pacman -Qq | grep -q plasma-desktop; then
/usr/lib/plasma-changeicons breeze-dark 2>/dev/null
lookandfeeltool --apply "org.kde.breezedark.desktop" 2>/dev/null
fi
[ -f $HOME/.config/i3/config ] && sed -i '/endeavouros-i3wm-setup/d' ~/.config/i3/config
printf "Would you like to reboot? (y/N)"
read -r reboot
#Thanks to YTG1234 for this line.
# If we're already using Bash (#!/usr/bin/env bash), why not make use of its neat features
# Run `pacman -Qq` and grep a pattern quietly
grepPacmanQuery() { # $1 - Pattern to grep for in the output of `pacman -Qq`
pacman -Qq | grep "$1" -q
}
# Remove a package if it matched `pacman -Qq`
removeIfMatched() { # $1 - Pattern
grepPacmanQuery "$1" && pacman -Rsdd "$1" --noconfirm
true
}
@bunkbail
bunkbail / .zprofile
Last active November 22, 2022 09:11
ZSH + ohmyzsh + Powerlevel10k on debian
if [ -d /etc/profile.d ]; then
for i in /etc/profile.d/*.sh; do
if [ -r $i ]; then
. $i
fi
done
unset i
fi
@bunkbail
bunkbail / how-to-download-from-pan-baidu.md
Created July 21, 2021 18:03
How to download from pan.baidu without account

How to download from pan.baidu.com

Disclaimer:

  • This methods uses a 3rd party website: https://baidu.kinh.cc/.
  • I don't know chinese and after one day of searching for a method I finally found this. I don't know how safe this website is but it does the job.
  • Do it on your own responsibility. I have no idea about possible copyright (if there is such a thing in China) and other stuff regarding to this.

Steps

1. Open the website mentioned above and fill out fields as following:

@bunkbail
bunkbail / index.html
Created April 2, 2021 15:10
Simple CSS Waves | Mobile & Full width
<!--Hey! This is the original version
of Simple CSS Waves-->
<div class="header">
<!--Content before waves-->
<div class="inner-header flex">
<!--Just the logo.. Don't mind this-->
<svg version="1.1" class="logo" baseProfile="tiny" id="Layer_1" xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 500 500" xml:space="preserve">
@bunkbail
bunkbail / Uninstall Updates.bat
Created February 19, 2019 15:30
Windows Update Uninstaller
@ECHO OFF
SETLOCAL ENABLEDELAYEDEXPANSION
SET /P REVIEW="Would you like to review each update before attempting uninstall ([Y]/N)? "
IF /I "!REVIEW!" EQU "N" (
REM AUTO UNINSTALL
FOR /F "EOL=; DELIMS=| TOKENS=1" %%I IN (updates_list.txt) DO (
SETLOCAL
ECHO Uninstalling [%%I]...
SET U=%%I
SET KB=!U:~2!