All New

user:thomas gists created by user

title:mygist gists with given title

description:sync gists with given description

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

topic:homelab gists with given topic

all:systemctl search all fields

Register

Login

All New Register Login

All gists

Recently created
Least recently created
Recently updated
Least recently updated

nuno / gistfile1.txt

0 likes
0 forks
1 files
Last active 5 months ago
1 #!/usr/bin/env bash
2
3 function cmd::inspect::on_load() {
4 flag::register --name
5 flag::register --type
6 }
7
8 function cmd::inspect::help() {
9 cat <<EOF
10 Usage: wgctl inspect --name <name> [--type <type>]

nuno / gistfile1.txt

0 likes
0 forks
1 files
Last active 5 months ago
1 #!/usr/bin/env bash
2
3 # ============================================
4 # Core
5 # ============================================
6
7 LOG_LEVEL=${LOG_LEVEL:-INFO}
8
9 # ============================================
10 # Internal

nuno / gistfile1.txt

0 likes
0 forks
1 files
Last active 5 months ago
1 root@wireguard:/# wgctl group block --name family
2
3 ────────────────────────────────────────────────
4 Blocking group: family
5 ────────────────────────────────────────────────
6 => SUCCESS: ✅ 🔒 phone-nuno has been blocked.
7 => SUCCESS: ✅ 🔒 tablet-nuno has been blocked.
8 => INFO: 🚫 🔒 All peers from family have been blocked (2 peers).
9 root@wireguard:/# wgctl group unblock --name family

nuno / gistfile1.txt

0 likes
0 forks
1 files
Last active 5 months ago
1 ────────────────────────────────────────────────
2 Groups
3 ────────────────────────────────────────────────
4
5 NAME DESCRIPTION PEERS STATUS
6 ───────────────────────────────────────────────────────────────────────────
7 family Family 2 active
8
9 root@wireguard:/# wgctl group show --name family

nuno / gistfile1.txt

0 likes
0 forks
1 files
Last active 5 months ago
1 root@wireguard:/# wgctl group list
2
3 ────────────────────────────────────────────────
4 Groups
5 ────────────────────────────────────────────────
6
7 NAME DESCRIPTION PEERS STATUS
8 ───────────────────────────────────────────────────────────────────────────
9 family Family 2 active

nuno / gistfile1.txt

0 likes
0 forks
1 files
Last active 5 months ago
1 root@wireguard:/# wgctl group add --name family --desc "Family"
2 => SUCCESS: ✅ 🔒 Group created: family
3 root@wireguard:/# wgctl group list
4
5 ────────────────────────────────────────────────
6 Groups
7 ────────────────────────────────────────────────
8
9 NAME DESCRIPTION PEERS STATUS
10 ───────────────────────────────────────────────────────────────────────────

nuno / gistfile1.txt

0 likes
0 forks
1 files
Last active 5 months ago
1 root@wireguard:/# wgctl audit --peer phone-nuno
2
3 ────────────────────────────────────────────────
4 WireGuard Audit
5 ────────────────────────────────────────────────
6
7 Peer Rules
8 ──────────────────────────────────────────────────
9 ✅ phone-nuno rule=admin fw: 0/0

nuno / gistfile1.txt

0 likes
0 forks
1 files
Last active 5 months ago
1 # Create client config
2 peers::create_client_config "$full_name" "$effective_type" "$ip" "$allowed_ips" || return 1
3
4 # Store subtype in meta
5 if [[ -n "$subtype" ]]; then
6 peers::set_meta "$full_name" "subtype" "$subtype"
7 fi
8
9 # Add peer to server config
10 local public_key

nuno / gistfile1.txt

0 likes
0 forks
1 files
Last active 5 months ago
1 function cmd::remove::run() {
2 local name=""
3 local type=""
4 local force=false
5
6 while [[ $# -gt 0 ]]; do
7 case "$1" in
8 --name) name="$2"; shift 2 ;;
9 --type) type="$2"; shift 2 ;;
10 --force) force=true; shift ;;

nuno / gistfile1.txt

0 likes
0 forks
1 files
Last active 5 months ago
1
2 Collection Complete Stats
3 =============== Dungeon ===============
4 Lake in Dusk I: HP +20
5 Lake in Dusk II: HP +100
6 Ruina Station I: HP +25
7 Ruina Station II: All Attack UP +10
8 Tower of Undead B1F I: HP +30
9 Tower of Undead B1F II: Defense +20
10 Volcanic Citadel I: Attack Rate +20
Newer Older

Powered by Opengist ⋅ Load: 124ms⋅

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