Skip to content

Instantly share code, notes, and snippets.

View andrew-stclair's full-sized avatar

Andrew St Clair andrew-stclair

View GitHub Profile
@andrew-stclair
andrew-stclair / ShellShort.md
Last active January 10, 2023 00:20
Shell short hand

Bash short hand

systemctl start service-{a,b}.service would be equivalent to systemctl start service-a.service service-b.service

systemctl start srv-{1..4}.service would be equivalent to systemctl start srv-1.service srv-2.service srv-3.service srv-4.service

If for example you had multiple wireguard services and wanted to enable both the service and path for each

systemctl enable wg{0..3}.{service,path} would be equivalent to systemctl enable wg0.service wg0.path wg1.service etc...

UI in docker container

docker-compose.yml

version: "3"

services:
  wg:
    image: ngoduykhanh/wireguard-ui:latest
    container_name: wgui
    cap_add:
@andrew-stclair
andrew-stclair / valheim.service
Created September 11, 2021 08:45 — forked from nerdstrom/valheim.service
Valheim dedicated server systemd unit file
# make sure to adjust ALL paths and user/group in the service file (also the ones under "Security and Sandboxing")
[Unit]
Description=Valheim dedicated server
Wants=network-online.target
After=syslog.target network.target nss-lookup.target network-online.target
[Service]
Environment="LD_LIBRARY_PATH=/home/steam/servers/valheim/linux64"
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQINBGACyMoBEADK9NiIa4Iku4su57WtNuAzkYSqsr+vDDc7xp5jSopB1f37SMUv
B9bqCbPkbisDIouM1ZDGGeDhMK+Ja0AWy6ZF161XeYyHnhZK4WBZ1luyTjA7rYr6
E1jpEEn3LIQZD9unQ9FLXWIBZL3MpsP1lgPg3tmmarxWKef+nWFBZRpwvSL0tQna
6Kwer/btOgh2L/4abaZds4Zcl8nIWGGqfJvTcPwbQ4FNvj04lkc51hlqCAGTiawg
TKTHd0eph+g+7XaMcwg+4nmRu0U2zpTjfOSpqB4nmv/q2hOLlDze9Xh+SVGhXXPJ
kKcwbnUMzF4PX4dO/oDvte2dk5/QnXSxL1pnzWE3PxBl24j/4AS/lJphGaim+xU9
QdPboXukjOjGGq6B3saG/0s7nXoxbdtQcuQQjR+pSzQrb449npbpYu7T8TndG+Kx
iQYJetDn+RWiPA3hUXJ/Xaa8x8eYw9bdMAo+QprifWB+lm2ddi1BJl6SZ0Gnd+iL