Skip to content

Instantly share code, notes, and snippets.

View sprytnyk's full-sized avatar
🪖
Fighting for the bright future of 🇺🇦

Vladyslav Krylasov sprytnyk

🪖
Fighting for the bright future of 🇺🇦
View GitHub Profile
#!/bin/bash
# VPN bootstrap script.
# 1st step
# Abort script at first error, when a command exits with non-zero status
# (except in until or while loops, if-tests, list constructs)
# https://www.tldp.org/LDP/abs/html/options.html
set -eu
# update repositories and install libraries
@sprytnyk
sprytnyk / do-bootstrap.sh
Last active January 13, 2025 16:47
A simple bootstrap script for Ubuntuon DigitalOcean that setup firewall, creates a sudo user with a pass, installs libs, configure a locale and ssh.
#!/bin/bash
# A bootstrap script for Ubuntu on DigitalOcean
set -eu
trap 'echo "Error on line $LINENO"; exit 1' ERR
echo "Starting bootstrap setup..."
# Update system and install required packages
echo "Updating system and installing required packages..."

Keybase proof

I hereby claim:

  • I am sprytnyk on github.
  • I am sprytnyk (https://keybase.io/sprytnyk) on keybase.
  • I have a public key ASBPJMnl5Y0bGmT0N8mOmWSbNW7sSLMk68YQSjFFGlRBZwo

To claim this, I am signing this object: