Skip to content

Instantly share code, notes, and snippets.

View aghArdeshir's full-sized avatar
🐢
Slow and Steady

Ardeshir Izadi aghArdeshir

🐢
Slow and Steady
View GitHub Profile
@raspi
raspi / imagemagick_identify_json.sh
Last active September 15, 2025 12:18
Output JSON from ImageMagick magick identify command
#!/bin/bash -e
# Output JSON from ImageMagick magick identify command
if [[ $# -eq 0 ]] ; then
echo "Usage:"
echo " $0 <filename>"
echo ""
exit 0
fi
@willurd
willurd / web-servers.md
Last active December 5, 2025 14:02
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@amitchhajer
amitchhajer / Count Code lines
Created January 5, 2013 11:08
Count number of code lines in git repository per user
git ls-files -z | xargs -0n1 git blame -w | perl -n -e '/^.*\((.*?)\s*[\d]{4}/; print $1,"\n"' | sort -f | uniq -c | sort -n