Skip to content

Instantly share code, notes, and snippets.

View bitscoper's full-sized avatar
💻
Building

Abdullah As-Sadeed bitscoper

💻
Building
View GitHub Profile
@bitscoper
bitscoper / Dockerfile
Last active June 21, 2024 05:20
Mixxx inside Docker to Use Icecast TLS
# By Abdullah As-Sadeed
# Start from an Ubuntu 22.04 image
FROM ubuntu:22.04
# Update package list, upgrade installed packages, and install required packages
RUN apt update && apt dist-upgrade -y && apt install -y gdebi-core ca-certificates
# Go to: https://github.com/mixxxdj/mixxx/actions/runs/9238476537?pr=13285
# Download and Extract "Ubuntu 22.04 Qt6 DEB.zip": https://github.com/mixxxdj/mixxx/actions/runs/9238476537/artifacts/1537877751
@bitscoper
bitscoper / Bulk_pacman_Optional_Dependency_Checker.sh
Created June 3, 2024 02:59
Bulk pacman Optional Dependency Checker
#!/bin/bash
# By Abdullah As-Sadeed
while read p; do
opt_deps=$(pacman -Qi $p | awk '/Optional Deps/{flag=1;next}/Required By/{flag=0}flag' | grep -v "None" | sed 's/\[installed\]/\x1b[32m&\x1b[0m/g' | sed '/\[installed\]/!s/.*/\x1b[33m&\x1b[0m/')
if [ -n "$opt_deps" ]; then
echo -e "\x1b[31mPackage: $p\x1b[0m"
echo -e "$opt_deps"
echo -e "\n"
@bitscoper
bitscoper / Git_Commit_History_Cleaner.sh
Last active June 3, 2024 03:01
Git Commit History Cleaner
#!/bin/bash
# By Abdullah As-Sadeed
git checkout --orphan cleaned-history && git add -A && git commit -am "Cleaned commit history" && git branch -D main && git branch -m main && git push -f origin main
@bitscoper
bitscoper / Bulk_MP3_Metadata_Cleaner.sh
Last active June 3, 2024 03:01
Bulk MP3 Metadata Cleaner
#!/bin/bash
# By Abdullah As-Sadeed
find ~ -type f -iname "*.mp3" -exec eyeD3 --remove-all {} \;
@bitscoper
bitscoper / Bulk_Git_Repository_Cleaner.sh
Last active June 3, 2024 03:00
Bulk Git Repository Cleaner
#!/bin/bash
# By Abdullah As-Sadeed
find ~/Software\ Laboratory -type d -name ".git" -execdir sh -c 'git remote prune origin && git repack && git prune-packed && git gc --aggressive --prune=now' \;
@bitscoper
bitscoper / Microsoft_Windows_11_on_QEMU_KVM.xml
Last active June 22, 2024 10:45
Microsoft Windows 11 Pro for Workstations on QEMU KVM using libvirt on Arch Linux
<domain type="kvm">
<name>Microsoft_Windows_11_Pro_for_Workstations</name>
<uuid>eb772f48-e3c3-4652-b0b8-3a8cc9f5716b</uuid>
<metadata>
<libosinfo:libosinfo xmlns:libosinfo="http://libosinfo.org/xmlns/libvirt/domain/1.0">
<libosinfo:os id="http://microsoft.com/win/11" />
</libosinfo:libosinfo>
</metadata>
<memory unit="KiB">6291456</memory>
<currentMemory unit="KiB">6291456</currentMemory>