Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
echo "which b2: $(which b2)"
b2 version 2>&1 || b2 --version 2>&1
echo "ID length: ${#BKEY_ID}, first 4: ${BKEY_ID:0:4}"
echo "KEY length: ${#BAPP_KEY}"
[[ "$BKEY_ID$BAPP_KEY" == *$'\r'* ]] && echo "WARNING: carriage return found"
[[ "$BKEY_ID$BAPP_KEY" =~ [[:space:]] ]] && echo "WARNING: whitespace found"
b2 account authorize "$BKEY_ID" "$BAPP_KEY" 2>&1 | head -5
@AmerXz
AmerXz / Crave-Build.sh
Last active November 2, 2026 17:20
my Crave build script
#!/bin/bash
set -e -x
rm -rf .repo/local_manifests/
repo init -u https://github.com/crDroid11/android.git -b 11.0 --git-lfs --depth 1
mkdir -p .repo/local_manifests
rm -rf .repo/local_manifests/* || true
curl -L -o .repo/local_manifests/local_manifest.xml https://raw.githubusercontent.com/AmerXz/local_manifests/patch-1/manifest.xml
@AmerXz
AmerXz / 20-intel.conf
Created July 30, 2025 12:57
My nvidia + intel i915 Hybrid setup X11(With Async flips fix)
Section "Device"
Identifier "Intel Graphics"
Driver "modesetting"
BusID "PCI:0:2:0" # Adjust to your Intel GPU's bus ID
Option "PageFlip" "false"
Option "TearFree" "false"
EndSection