Opengist

Explore

  • All gists
  • Topics
  • Users
Give feedback on the new UI Powered by Opengist ⋅ 40ms

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

Login

All gists

All Recently liked Recently forked
Recently created Least recently created Recently updated Least recently updated
thayen

thayen / agent-apt

Last active 1 month ago

Small wrapper script for giving LLMs access to installing/removing apt packages while reducing their ability to bypass these restrictions

0 0 1
1 #!/usr/bin/bash
2 set -euo pipefail
3
4 export PATH=/usr/sbin:/usr/bin:/sbin:/bin
5 export DEBIAN_FRONTEND=noninteractive
6 export DEBIAN_PRIORITY=critical
7
8 APT=/usr/bin/apt-get
9
10 if (( EUID != 0 )); then
thayen

thayen / nftables.conf

Last active 5 months ago
0 0 1
1 #!/usr/sbin/nft -f
2
3 flush ruleset
4
5 define ip6_mask = ffff:ffff:ffff:ffff::
6 define public_http = 8080
7 define public_https = 8443
8 define public_ssh = 3222
9 define system_ssh = 49152