ProtectSystem=strict
ProtectHome=yes
PrivateDevices=yes
ProtectKernelTunables=yes
ProtectKernelModules=yes
ProtectControlGroups=yes
SystemCallFilter=@system-service
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 -S | |
""" | |
Convert the output of `pacman -Qi` into JSON | |
Usage: pacman -Qi | python3 -S pacman2j.py | |
""" | |
import json | |
import sys |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
mute() { | |
pamixer --mute | |
} | |
unmute() { | |
pamixer --unmute | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# A wrapper of the `jq` command that makes it easier to be used in a chain of | |
# commands. You can put the filename arguments at the front, so it's easier to | |
# edit the filter when you need to run the command again. When `jql` is the | |
# last command in a chain (in which case the STDOUT is a TTY), a pager (less) | |
# will be used | |
opts=() | |
filter= | |
files=() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Get the most recent snapshot of <URL> from the Wayback Machine | |
usage() { | |
echo "Usage: $0 [-o] <URL>" 1>&2 | |
exit 1 | |
} | |
open=0 | |
url= |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Script to build nginx with lua support. | |
# XXX: The resulting binary might work, but it was not thoroughly tested. Use it at your | |
# own risk. If you really need nginx with LUA in production, please consider using | |
# OpenResty instead. | |
# On Debian 12, install these build dependencies: libpcre3-dev libgeoip-dev libssl-dev zlib1g-dev build-essential | |
NGINX_VERSION='1.26.2' |