Skip to content

Instantly share code, notes, and snippets.

View OneCDOnly's full-sized avatar
🕶️
just geekin' out

OneCD OneCDOnly

🕶️
just geekin' out
  • ... there, behind that sofa!
  • 00:19 (UTC +10:00)
View GitHub Profile
@OneCDOnly
OneCDOnly / gist:f0a756e33d82ede0f2f7de1b0ecdb511
Created October 9, 2020 03:45
find unused BASH functions in script
#!/usr/bin/env bash
target_pathfile="$1"
target_func=''
for target_func in $(grep '()$' "$target_pathfile" | grep -v '=\|\$' | sed 's|()||g'); do
[[ $(grep -ow "$target_func" < "$target_pathfile" | wc -l) -eq 1 ]] && echo "$target_func()"
done
@OneCDOnly
OneCDOnly / gist:947404ecd6efe48d763bf5c4b3761665
Created January 3, 2021 03:09
Kate highlighted keywords
# These demonstrate available words for syntax highlighting on Kate (makes it easier to pick a word that stands-out):
# ALERT ATTENTION DANGER HACK SECURITY
# BUG FIXME DEPRECATED TASK TODO TBD WARNING CAUTION NOLINT
# ### NOTE NOTICE TEST TESTING