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 3 months ago
1 function firewall::apply_preset() {
2 local name="$1"
3 local client_ip="$2"
4 local preset_file
5 preset_file="$(ctx::preset::path "${name}.preset")"
6
7 if [[ ! -f "$preset_file" ]]; then
8 log::error "Preset not found: ${name}"
9 return 1
10 fi

nuno / config.module.sh

0 likes
0 forks
1 files
Last active 4 months ago
1 #!/usr/bin/env bash
2
3 # ============================================
4 # Lifecycle
5 # ============================================
6
7 function config::on_load() {
8 config::validate
9 }
Newer Older

Powered by Opengist ⋅ Load: 23ms⋅

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