From 6edeeaeb1cdaac6b3ce0cff366aa82f3db13d6b3 Mon Sep 17 00:00:00 2001 From: TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> Date: Sat, 27 Sep 2025 11:13:28 +0900 Subject: deleted com.colliderli.iina/input_conf", created bin/hugow, created bin/ylog, created bin/hugow, created bin/ylog --- mac/.local/bin/ylog | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100755 mac/.local/bin/ylog (limited to 'mac/.local/bin/ylog') 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 +" -- cgit v1.2.3