Skip to content

Instantly share code, notes, and snippets.

View guidonguido's full-sized avatar
🌚
Studying

Guido guidonguido

🌚
Studying
View GitHub Profile
@robinlandstrom
robinlandstrom / new-wireguard-peer.sh
Last active September 6, 2024 05:08
Script to automatically add configration for a new peer to a wireguard server. It will then print a QR code to the console that can be used to add the config to the Android or OS X wireguard client.
#!/bin/bash
# MIT License
#
# Copyright (c) 2024 Robin Landström
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell