Skip to content

Instantly share code, notes, and snippets.

@ahmedalhulaibi
ahmedalhulaibi / docker-compose.yml
Last active May 10, 2026 18:51
minimal qbittorrent+vpn networking docker-compose file
# =============================================================================
# MINIMAL SETUP: qBittorrent routed through VPN via Gluetun
# =============================================================================
#
# HOW TO USE:
# 1. Fill in the VPN credentials below (see NordVPN setup instructions in comments)
# 2. Fill in your volume paths (see volume section comments)
# 3. Run: docker compose up -d where ever the file is saved
# 4. Access qBittorrent web UI at: http://localhost:8080
# Default credentials: admin / adminadmin (change these after first login!)
@ahmedalhulaibi
ahmedalhulaibi / crystalball.go
Last active October 12, 2021 22:00
TinyGo Crystal Ball
package main
import (
"errors"
"io"
"machine"
"os"
"time"
)
@ahmedalhulaibi
ahmedalhulaibi / push-git-good.sh
Created February 8, 2020 05:33
Git push with salt-n-pepa for zsh using preexec hook
# install coreutils to get timeout cmd
# install sox to get play cmd
# install libsox-fmt-mp3 to play mp3 files
# legally obtain Push It by Salt-n-Pepa, or get a band and recording studio and re-perform the first 4 seconds and save it in a music file
# add the below function to .zshrc
# this hook will play the music in the background so as to not interrupt your workflow
function preexec() {
[[ "$1" =~ "^git push.*" ]] && timeout -k 10s 4s play ~/Music/pushit.mp3 > /dev/null 2>&1 < /dev/null &
disown