Place these in /etc/firewalld/services/
.
- HTTP/3 http3.xml
- Tailscale tailscale.xml
#!/bin/sh | |
# this file is licensed under any of the following SPDX licenses | |
# to be chosen by the user: | |
# * 0BSD (https://spdx.org/licenses/0BSD.html) | |
# * BlueOak-1.0.0 (https://blueoakcouncil.org/license/1.0.0) | |
# * CC0-1.0 (https://creativecommons.org/publicdomain/zero/1.0/) | |
# * Unlicense (https://unlicense.org/) | |
## log.sh - Bunker Log | |
# This is the bunker logging system for POSIX sh. |
package collect | |
// Set represents a generic set of comparable elements. | |
type Set[T comparable] map[T]struct{} | |
// Has checks whether the set holds a given value. | |
func (s Set[T]) Has(v T) bool { | |
_, ok := s[v] | |
return ok | |
} |
(def- opener "<?janet") | |
(def- closer "?>") | |
(def- file ~{:main (some (+ :code :text)) | |
:text '(to (+ ,opener -1)) | |
:code (/ :code* ,parse-all) | |
:code* (* ,opener '(to ,closer) ,closer)}) | |
(defn template-string | |
[s] | |
(def out @"") |
Place these in /etc/firewalld/services/
.
#!/bin/sh | |
# this file is licensed under any of the following SPDX licenses | |
# to be chosen by the user: | |
# * 0BSD (https://spdx.org/licenses/0BSD.html) | |
# * BlueOak-1.0.0 (https://blueoakcouncil.org/license/1.0.0) | |
# * CC0-1.0 (https://creativecommons.org/publicdomain/zero/1.0/) | |
# * Unlicense (https://unlicense.org/) | |
# this all works with toybox, busybox and coreutils | |
# everything except http_src and http_run is POSIXLY correct |
#!/usr/bin/env bash | |
# a schemaless argument parser | |
# this file is licensed under any of the following SPDX licenses | |
# to be chosen by the user: | |
# * 0BSD (https://spdx.org/licenses/0BSD.html) | |
# * BlueOak-1.0.0 (https://blueoakcouncil.org/license/1.0.0) | |
# * CC0-1.0 (https://creativecommons.org/publicdomain/zero/1.0/) | |
# * Unlicense (https://unlicense.org/) |
Toast's Syntax Files | |
Arbitrary syntax implementations for things I thought were missing. | |
The format is $PROG.$NAME.$EXT | |
For example, gedit.gemini.lang or micro.gemini.yaml. | |
All of these are written by me and available under the CC0. | |
Instructions based on prog (remove the $PROG. prefix first): |
A small collection, because reasons.
To apply these, place the .desktop file you're interested in in ~/.local/share/kservices5/ServiceMenus/
, then run kbuildsycoca5
(failures are ok).
For each of them, the binary in question (specified under TryExec=) must be in the systemwide $PATH
.
You can expand it in the plasma5 env files, or via PAM.
Or just, you know, symlink it into /usr/local/bin
.
Optionally, you can download/place a compliant icon into ~/.local/share/icons/
.
A small collection, because reasons.
To apply these:
mcli admin policy add MYMINIO NAME NAME.json
(replace MYMINIO with your configured instance and NAME with the filename).mcli admin policy set MYMINIO NAME user=USER
(same as above, replace USER with the user you want to configure).#!/bin/zsh | |
# deps: curl, mkdir(1p), jq | |
# return codes: | |
# 1: regular error, see stdout | |
# 2: media upload error | |
# 3: status post error | |
local app=${0:t} | |
usage() { | |
echo "$app [-a|-A <token>] [-i|-I <instance>] [-n] [-N <spoiler>] [-s <status>] -f <file>..." |