This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Usage: renovate_log_grep renovate-job-pod-f43jn my-app | |
renovate_log_grep() { | |
repo_txt="(repository=bidstack/${2:?repo name required as arg 2})" | |
tmp_file=${1:?pod name required as arg 1}.log | |
kubectl logs ${1} > $tmp_file | |
START=$(grep -n "started ${repo_txt}" $tmp_file | cut -f1 -d:) | |
FINISH=$(grep -n "finished ${repo_txt}" $tmp_file | cut -f1 -d:) | |
sed -n "$START, $FINISH p" $tmp_file || echo "repo not found" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tell application "System Preferences" | |
reveal anchor "keyboardTab" of pane "com.apple.preference.keyboard" | |
end tell | |
tell application "System Events" to tell process "System Preferences" | |
click checkbox 1 of tab group 1 of window 1 | |
end tell | |
quit application "System Preferences" |