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 / poll.ts

0 likes
0 forks
1 files
Last active 3 months ago
1 import {
2 EmbedBuilder,
3 ButtonBuilder,
4 ButtonStyle,
5 ActionRowBuilder,
6 TextChannel,
7 GuildMember,
8 } from "discord.js";
9 import { PollState, VoteEntry, Nation, TGSlot } from "../types";
10 import { cfg } from "./config";

nuno / gistfile1.txt

0 likes
0 forks
1 files
Last active 3 months ago
1 import {
2 EmbedBuilder,
3 ButtonBuilder,
4 ButtonStyle,
5 ActionRowBuilder,
6 TextChannel,
7 GuildMember,
8 } from "discord.js";
9 import { PollState, VoteEntry, Nation, TGSlot } from "../types";
10 import { cfg } from "./config";

nuno / gistfile1.txt

0 likes
0 forks
1 files
Last active 3 months ago
1 Interaction error: DiscordAPIError[0]: 404: Not Found
2 at handleErrors (/app/node_modules/@discordjs/rest/src/lib/handlers/Shared.ts:148:10)
3 at processTicksAndRejections (node:internal/process/task_queues:103:5)
4 at async SequentialHandler.runRequest (/app/node_modules/@discordjs/rest/src/lib/handlers/SequentialHandler.ts:417:20)
5 at async SequentialHandler.queueRequest (/app/node_modules/@discordjs/rest/src/lib/handlers/SequentialHandler.ts:169:11)
6 at async _REST.request (/app/node_modules/@discordjs/rest/src/lib/REST.ts:210:20)
7 at async ChannelManager.fetch (/app/node_modules/discord.js/src/managers/ChannelManager.js:130:18)
8 at async handleStart (/app/src/subcommands/poll/start.ts:23:21)
9 at async Client.handleInteraction (/app/src/handlers/interactions.ts:15:45) {
10 requestBody: { files: undefined, json: undefined },

nuno / gistfile1.txt

0 likes
0 forks
1 files
Last active 3 months ago
1 root@docker:/opt/docker/tg-bot-ts# docker exec tg-bot-ts npx ts-node src/index.ts --register
2 Logged in as The Arbiter#9050
3 Messages loaded — 8 user file(s).
4 /app/node_modules/@sapphire/shapeshift/src/constraints/ArrayConstraints.ts:35
5 }
6 ^
7 ExpectedConstraintError: Invalid Array length
8 at Object.run (/app/node_modules/@sapphire/shapeshift/src/constraints/ArrayConstraints.ts:35:1)
9 at /app/node_modules/@sapphire/shapeshift/src/validators/BaseValidator.ts:126:2
10 at Array.reduce (<anonymous>)

nuno / import.command.sh

0 likes
0 forks
1 files
Last active 3 months ago
1 #!/usr/bin/env bash
2 # commands/import.command.sh
3
4 function cmd::import::on_load() {
5 flag::register --file
6 flag::register --peer
7 flag::register --dry-run
8 flag::register --force
9 }

nuno / export.command.sh

0 likes
0 forks
1 files
Last active 3 months ago
1 #!/usr/bin/env bash
2 # commands/export.command.sh
3
4 function cmd::export::on_load() {
5 flag::register --peer
6 flag::register --identity
7 flag::register --all
8 flag::register --out
9 flag::register --conf-only
10 flag::register --meta-only

nuno / hosts.command.sh

0 likes
0 forks
1 files
Last active 3 months ago
1 #!/usr/bin/env bash
2 # hosts.command.sh — manage host/IP display name mappings
3
4 # ============================================
5 # Lifecycle
6 # ============================================
7
8 function cmd::hosts::on_load() {
9 flag::register --ip
10 flag::register --subnet

nuno / net.command.sh

0 likes
0 forks
1 files
Last active 3 months ago
1 #!/usr/bin/env bash
2
3 function cmd::net::on_load() {
4 flag::register --name
5 flag::register --ip
6 flag::register --port
7 flag::register --desc
8 flag::register --tag
9 flag::register --detailed
10 flag::register --force

nuno / policy.command.sh

0 likes
0 forks
1 files
Last active 3 months ago
1 #!/usr/bin/env bash
2 # policy.command.sh — manage policies
3 #
4 # Subcommands:
5 # wgctl policy list
6 # wgctl policy show --name <name>
7 # wgctl policy add --name <name> [--tunnel-mode split|full]
8 # [--default-rule <rule>] [--strict-rule] [--no-auto-apply]
9 # [--desc <desc>]
10 # wgctl policy rm --name <name>

nuno / subnet.command.sh

0 likes
0 forks
1 files
Last active 3 months ago
1 #!/usr/bin/env bash
2 # subnet.command.sh — manage the subnet map (subnets.json)
3 #
4 # Subcommands:
5 # wgctl subnet list
6 # wgctl subnet show --name <name>
7 # wgctl subnet add --name <name> --subnet <cidr> [--type <type>]
8 # [--tunnel-mode split|full] [--desc <desc>]
9 # [--group <parent>]
10 # wgctl subnet rm --name <name>
Newer Older

Powered by Opengist ⋅ Load: 110ms⋅

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