Skip to content

Instantly share code, notes, and snippets.

View dhsathiya's full-sized avatar

Devarshi Sathiya dhsathiya

View GitHub Profile
@dhsathiya
dhsathiya / readme.md
Last active February 21, 2024 10:20
WireGuard Setup

Setup WireGuard

Definitions

Server

Remote server (eg. DigitalOcean, AWS) where the WireGuard Server will be running.

Peer

#!/bin/bash
function date_to_seconds() {
if [[ $# -lt 1 ]]; then
echo "Date argument missing"
echo "Usage: date_to_seconds date"
exit 1
fi
remove_slash_date=$(echo $1 | sed 's/\//\-/g')