Skip to content

Instantly share code, notes, and snippets.

View beevk's full-sized avatar

Bivek Singh beevk

View GitHub Profile
@beevk
beevk / mysql-docker.sh
Created March 15, 2024 13:15 — forked from spalladino/mysql-docker.sh
Backup and restore a mysql database from a running Docker mysql container
# Backup
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql
# Restore
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE
@beevk
beevk / wireguard-multiple-users.md
Last active June 6, 2023 11:59 — forked from qdm12/README.md
Wireguard and iptables restrictions for multiple users

Wireguard and iptables restrictions for multiple users

If you don't know what Wireguard is, well, you should. It's fast, easy to setup and highly configurable. We will configure Wireguard for multiple users with various restrictions using iptables.

Assumptions

This should fit most setups (not mine though 😉)