Skip to content

Instantly share code, notes, and snippets.

View sulyak's full-sized avatar
:octocat:
working on it...

Rayner sulyak

:octocat:
working on it...
View GitHub Profile
@bhelm
bhelm / arch-chroot.sh
Created April 16, 2020 09:46
Chroot script from Archlinux (arch-chroot), works on any distri
#!/bin/bash
shopt -s extglob
# generated from util-linux source: libmount/src/utils.c
declare -A pseudofs_types=([anon_inodefs]=1
[autofs]=1
[bdev]=1
[bpf]=1
[binfmt_misc]=1
@thomasfr
thomasfr / autossh.service
Last active October 11, 2024 06:32
Systemd service for autossh
[Unit]
Description=Keeps a tunnel to 'remote.example.com' open
After=network.target
[Service]
User=autossh
# -p [PORT]
# -l [user]
# -M 0 --> no monitoring
# -N Just open the connection and do nothing (not interactive)