Skip to content

Instantly share code, notes, and snippets.

View orx57's full-sized avatar
🤖
automates

Olivier Raggi orx57

🤖
automates
View GitHub Profile
@cloudnull
cloudnull / ara.bash
Last active March 2, 2023 12:49
Using the ARA CLI Client, return unique hosts where a task is found and in a defined state.
function ara-task-uniq-hosts () {
# Scans across all tasks within 1 million records and returns all of the unique hosts where the task
# meets a certain state. Default state is "ok"
# When looking for the "changed" state the special CLI modifier is used.
TASK_NAME=$1
TASK_STATE=${2:-ok}
if [ ${TASK_STATE} == "changed" ]; then
TASK_MODIFY="--changed"
else
TASK_MODIFY="--status ${TASK_STATE}"
@phips
phips / week1.yml
Last active April 5, 2020 19:22
#TopTipTuesday
ansible tag_type_web -b -m shell -a 'awk "{print \$9}" /var/log/nginx/access.log | sort | uniq -c | sort -k1,1nr 2>/dev/null | column -t'
@tuxfight3r
tuxfight3r / 01.bash_shortcuts_v2.md
Last active March 16, 2026 18:55
Bash keyboard shortcuts

Bash Shortcuts

visual cheetsheet

Moving

command description
ctrl + a Goto BEGINNING of command line