Skip to content

Instantly share code, notes, and snippets.

View HasanKhatib's full-sized avatar
🕵️‍♂️
seeking the truth

Hasan Alkhatib HasanKhatib

🕵️‍♂️
seeking the truth
  • IKEA Sweden
  • Malmö, Sweden
View GitHub Profile
@HasanKhatib
HasanKhatib / global-git-hooks.sh
Created September 28, 2023 13:18
🔗 Universal Git Hook: Auto-detect your project type and run tests before every commit! Keep your codebase clean and bug-free. 🚀
#!/bin/bash
set -e
# Create global git hooks directory and configure git
mkdir -p ~/.git-hooks && git config --global core.hooksPath ~/.git-hooks
# Create the pre-commit hook
cat > ~/.git-hooks/pre-commit << 'EOF'
#!/bin/sh
@HasanKhatib
HasanKhatib / spring-and-jaeger.yaml
Created November 7, 2022 17:07
SpringBoot + Jaeger docker-compose file
version: '3.3'
services:
observability:
image: jaegertracing/all-in-one:1.38
ports:
- "6831:6831/udp"
- "6832:6832/udp"
- "5778:5778"
- "16686:16686"
- "4317:4317"