Все Новый

user:thomas фрагментов создано пользователем

title:mygist фрагментов с указанным заголовком

description:sync gists with given description

filename:myfile.txt фрагменты содержащие файлы с указанным именем

extension:yml фрагменты, содержащие файлы с указанным расширением

language:go фрагменты, содержащие файлы с указанным языком

topic:homelab фрагменты с заданной темой

all:systemctl search all fields

Регистрация

Войти

Все Новый Регистрация Войти

nuno

Зарегистрирован 6 months ago

Свежие сверху по дате создания
Свежие снизу по дате создания
Свежие сверху по дате обновления
Свежие снизу по дате обновления
Все фрагменты 584

nuno / gistfile1.txt

0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность 5 months ago
1 WireGuard Events
2 ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
3 26/05 12:14 phone-helena 148.69.37.36 handshake ↑ 32m offline
4 26/05 12:04 laptop-nuno 94.63.0.129 → nuno-home handshake
5 26/05 11:42 phone-helena 148.69.37.36 handshake ↑ 9m
6 26/05 11:32 phone-helena 148.69.37.36 handshake ↑ 20m offline
7 26/05 11:11 phone-helena 148.69.37.36 handshake ↑ 33m offline
8 26/05 10:37 phone-helena 148.69.37.36 handshake ↑ 8m
9 26/05 10:29 phone-helena 148.69.37.36 handshake ↑ 5m
10 26/05 10:23 phone-helena 148.69.37.36 handshake ↑ 27m offline

nuno / gistfile1.txt

0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность 5 months ago
1 function ui::logs::fw_row() {
2 local ts="${1:-}" client="${2:-}" dest_ip="${3:-}" dest_port="${4:-}" \
3 proto="${5:-}" svc_name="${6:-}" count="${7:-1}" \
4 w_client="${8:-20}" w_dest="${9:-30}" \
5 src_endpoint="${10:-}" src_resolved="${11:-}" \
6 w_endpoint="${12:-0}" resolved_only="${13:-false}"
7
8 local ts_pad client_pad
9 ts_pad=$(printf "%-11s" "$ts")
10 client_pad=$(printf "%-${w_client}s" "$client")

nuno / gistfile1.txt

0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность 5 months ago
1 function cmd::logs::show_fw_events() {
2 local filter_ip="${1:-}" filter_name="${2:-}" filter_type="${3:-}" \
3 limit="${4:-50}" net_file="${5:-}" collapse="${6:-1}" \
4 since="${7:-}" filter_dest_ip="${8:-}" filter_dest_port="${9:-}" \
5 sort_order="${10:-desc}" resolved_only="${11:-false}"
6
7 [[ ! -f "$FW_EVENTS_LOG" ]] && return 0
8
9 local data
10 data=$(json::fw_events \

nuno / gistfile1.txt

0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность 5 months ago
1 function ui::logs::fw_row() {
2 local ts="${1:-}" client="${2:-}" dest_ip="${3:-}" dest_port="${4:-}" \
3 proto="${5:-}" svc_name="${6:-}" count="${7:-1}" \
4 w_client="${8:-20}" w_dest="${9:-30}" \
5 src_endpoint="${10:-}" src_resolved="${11:-}"
6 w_endpoint="${12:-0}" resolved_only="${13:-false}"
7
8 local ts_pad client_pad
9 ts_pad=$(printf "%-11s" "$ts")
10 client_pad=$(printf "%-${w_client}s" "$client")

nuno / gistfile1.txt

0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность 5 months ago
1 function cmd::logs::on_load() {
2 flag::register --name
3 flag::register --type
4 flag::register --since
5 flag::register --limit
6 flag::register --fw
7 flag::register --wg
8 flag::register --follow
9 flag::register --merged
10 flag::register --all

nuno / gistfile1.txt

0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность 5 months ago
1 function ui::logs::fw_row() {
2 local ts="${1:-}" client="${2:-}" dest_ip="${3:-}" dest_port="${4:-}" \
3 proto="${5:-}" svc_name="${6:-}" count="${7:-1}" \
4 w_client="${8:-20}" w_dest="${9:-30}" \
5 src_endpoint="${10:-}" w_endpoint="${11:-0}"
6
7 local ts_pad client_pad
8 ts_pad=$(printf "%-11s" "$ts")
9 client_pad=$(printf "%-${w_client}s" "$client")
10

nuno / gistfile1.txt

0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность 5 months ago
1 26/05 02:00 laptop-nuno 94.63.0.129 → nuno-home → npm/tcp (10.0.0.101:3260) (x64)
2 26/05 01:00 laptop-nuno 94.63.0.129 → nuno-home → npm/tcp (10.0.0.101:3260) (x93)
3 26/05 00:00 laptop-nuno 94.63.0.129 → nuno-home → npm/tcp (10.0.0.101:3260) (x90)
4 25/05 23:00 phone-helena-2 → pihole (icmp) (10.0.0.103)
5 25/05 23:00 laptop-nuno 94.63.0.129 → nuno-home → npm/tcp (10.0.0.101:3260) (x91)
6 25/05 22:00 laptop-nuno 94.63.0.129 → nuno-home → npm:web-ui-https/tcp (10.0.0.101:443)
7 25/05 22:00 laptop-nuno 94.63.0.129 → nuno-home → npm/tcp (10.0.0.101:3260) (x90)
8 25/05 21:00 phone-helena-2 → pihole (icmp) (10.0.0.103)
9 25/05 21:00 phone-nuno 94.63.0.129 → nuno-home → pihole (icmp) (10.0.0.103)
10 25/05 21:00 laptop-nuno 94.63.0.129 → nuno-home → npm/tcp (10.0.0.101:3260) (x92)

nuno / gistfile1.txt

0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность 5 months ago
1 function cmd::logs::show_wg_events() {
2 local filter_ip="${1:-}" filter_name="${2:-}" filter_type="${3:-}" \
3 limit="${4:-50}" collapse="${5:-1}" \
4 since="${6:-}" filter_event="${7:-}" sort_order="${8:-desc}"
5
6 [[ ! -f "$WG_EVENTS_LOG" ]] && return 0
7
8 local data
9 data=$(json::wg_events \
10 "$WG_EVENTS_LOG" "$filter_name" "$filter_type" \

nuno / gistfile1.txt

0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность 5 months ago
1 function ui::logs::wg_row() {
2 local ts="${1:-}" client="${2:-}" endpoint="${3:-}" event="${4:-}" \
3 count="${5:-1}" w_client="${6:-20}" w_endpoint="${7:-20}" \
4 gap_seconds="${8:-}" resolved="${9:-}"
5
6 local event_color
7 case "$event" in
8 handshake) event_color="\033[1;32m" ;;
9 attempt) event_color="\033[1;31m" ;;
10 *) event_color="\033[0;37m" ;;

nuno / gistfile1.txt

0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность 5 months ago
1 WireGuard Events
2 ──────────────────────────────────────────
3 26/05 02:28 phone-nuno 94.63.0.129 → nuno-home handshake ↑ 39m offline
4 26/05 02:27 phone-helena-2 - handshake ↑ 15m offline
5 26/05 02:16 phone-helena 148.69.37.36 handshake ↑ 10m
6 26/05 02:12 phone-helena-2 - handshake ↑ 9m
7 26/05 02:06 phone-helena 148.69.37.36 handshake ↑ 5m
8 26/05 02:02 phone-helena-2 - handshake ↑ 15m offline
9 26/05 02:01 phone-helena 148.69.37.36 handshake ↑ 5m
10 26/05 01:56 phone-helena 148.69.37.36 handshake ↑ 20m offline
Новее Позже

Работает на Opengist ⋅ Load: 99ms⋅

Русский
Čeština Deutsch English Español Français Magyar Italiano 日本語 Polski Português Русский Türkçe Українська 中文 繁體中文
⋅ KrilHub