Skip to content

Instantly share code, notes, and snippets.

@deg0nz
deg0nz / Wireguard Site-2-Site VPN.md
Last active December 14, 2022 14:47
Wireguard Site-2-Site VPN
@deg0nz
deg0nz / iOS-VPN-autoconnect-WireGuard.mobileconfig
Created January 23, 2021 22:18
Connect iOS to WireGuard VPN when connected to untrusted WiFi
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PayloadContent</key>
<array>
<!-- Connect to VPN when connected to untrusted networks -->
<dict>
@deg0nz
deg0nz / organizr.service
Created October 30, 2020 15:20
SystemD unit for Docker container Template
[Unit]
Description=organizr - HTPC/Homelab Services Organizer
After=docker.service
Requires=docker.service
[Service]
TimeoutStartSec=0
Restart=always
ExecStartPre=/usr/bin/docker pull organizr/organizr:latest
ExecStartPre=-/usr/bin/docker kill %p
@deg0nz
deg0nz / tmux.fish
Created November 20, 2019 22:05
Start tmux session on SSH login or attach to existing session
if begin
not set -q TMUX
and set -q SSH_CONNECTION
end
set WHOAMI (whoami)
if tmux has-session -t $WHOAMI
tmux -2 attach-session -t $WHOAMI
else
tmux -2 new-session -s $WHOAMI
end
#!/bin/bash
#
# This script installs zsh, oh-my-zsh and the spaceship zsh-theme on a fedora machine
#
# Author: bgericke, 2017
# Install ssh-server,tmux, mc, htop, tree
sudo apt-get install openssh-server tmux mc htop tree
# Install zsh, zsh-syntax-highlighting
@deg0nz
deg0nz / zsh_install_fedora.sh
Last active October 12, 2017 12:29
This script installs zsh, oh-my-zsh and the spaceship zsh-theme on a fedora machine
#!/bin/bash
#
# This script installs zsh, oh-my-zsh and the spaceship zsh-theme on a fedora machine
#
# Author: bgericke, 2017
# Get sudo, assuming the system supports cached credentials
sudo -v
# Install zsh, zsh-syntax-highlighting