Skip to content

Instantly share code, notes, and snippets.

View abdulwaheedsyed's full-sized avatar
🎯
Focusing

Syed Abdul Waheed abdulwaheedsyed

🎯
Focusing
View GitHub Profile
@abdulwaheedsyed
abdulwaheedsyed / oneliners.md
Last active March 9, 2026 14:02
One Liners

Install Docker on Linux:

curl -fsSL https://get.docker.com | sh

Docker Prune stuff (💀 Danger, removes all stopped containers and volumes):

docker builder prune -f; docker system prune --all --volumes -f

SysRq reset a Linux box:

@abdulwaheedsyed
abdulwaheedsyed / Ext4_XFS_Btrfs_ZFS.md
Created August 20, 2025 11:07
Ext4 vs XFS vs Btrfs vs ZFS

Here’s a cheat-sheet table comparing Ext4, XFS, Btrfs, and ZFS at a glance:


📊 Filesystem Comparison

Feature / FS Ext4 XFS Btrfs ZFS
Stability Very stable, default in many distros Very stable, enterprise-grade Stable (except RAID5/6) Very stable, but out-of-tree
Performance Good all-around Excellent for large files, parallel I/O Good, but COW can slow DB/VM workloads Good, but heavier resource usage
@abdulwaheedsyed
abdulwaheedsyed / caddy_apt_repo.sh
Last active March 14, 2024 07:55
Caddy APT Repo
#!/bin/bash
sudo apt update
sudo apt install -y debian-keyring debian-archive-keyring apt-transport-https curl
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | sudo gpg --dearmor -o /usr/share/keyrings/caddy-stable-archive-keyring.gpg
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' | sudo tee /etc/apt/sources.list.d/caddy-stable.list
sudo apt update
sudo apt install -y caddy
@abdulwaheedsyed
abdulwaheedsyed / mysql8_unlock_root_localhost.sql
Created March 12, 2024 09:26
MySQL 8 Unlock root@localhost
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'P@ssw0rd';
FLUSH PRIVILEGES;