diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-09-27 11:13:28 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-09-27 11:13:28 +0900 |
| commit | 6edeeaeb1cdaac6b3ce0cff366aa82f3db13d6b3 (patch) | |
| tree | 8713fafa950ec868345cff56bb9a2da64b0230f8 /mac/.local/bin/ylog | |
| parent | cbe4041526958056233208bf390114f49f40f9ba (diff) | |
deleted com.colliderli.iina/input_conf", created bin/hugow, created bin/ylog, created bin/hugow, created bin/ylog
Diffstat (limited to 'mac/.local/bin/ylog')
| -rwxr-xr-x | mac/.local/bin/ylog | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/mac/.local/bin/ylog b/mac/.local/bin/ylog new file mode 100755 index 0000000..ff4083e --- /dev/null +++ b/mac/.local/bin/ylog @@ -0,0 +1,25 @@ +#!/bin/sh + +HOST="root@thesiah.xyz" +LOG_DIR="/var/log/nginx" +target="${1:-207.96.105.230}" + +esc_target=$(printf '%s' "$target" | sed -E 's/[][^$.*/+?(){}|\\]/\\&/g') + +ssh "$HOST" " + for f in $LOG_DIR/recordings* $LOG_DIR/access*; do + [ -e \"\$f\" ] || continue + case \"\$f\" in + *.gz) + zgrep -E \"${esc_target}[[:space:]]\" \"\$f\" \ + | grep -v '59.19.56.8' \ + | grep -vi 'firefox' + ;; + *) + grep -E \"${esc_target}[[:space:]]\" \"\$f\" \ + | grep -v '59.19.56.8' \ + | grep -vi 'firefox' + ;; + esac + done +" |
