Skip to content

Instantly share code, notes, and snippets.

View ValentinColin's full-sized avatar
🐙

Valentin Colin ValentinColin

🐙
View GitHub Profile
@ValentinColin
ValentinColin / detectSystemCapabilities.sh
Created September 30, 2021 09:49
A short script to detect the features of the current device (OS, CPU features, CPU flags)
#!/bin/bash
OS=$(uname -s)
#CPU flag detection
echo "****Getting CPU flag capabilities and number of cores"
if [ "$OS" = "Linux" ]; then
cat /proc/cpuinfo | egrep "(flags|model name|vendor)" | sort | uniq -c
elif [ "$OS" = "Darwin" ]; then
sysctl -a | grep machdep.cpu.features
fi

Inspired by parmentf/GitCommitEmoji.md

See also gitmoji.

Commit type Emoji
Initial commit 🎉 :tada:
Version tag 🔖 :bookmark:
New feature :sparkles:
Bugfix 🐛 :bug: