Skip to content

Instantly share code, notes, and snippets.

@swarajthakur
swarajthakur / services-start.sh
Created April 3, 2021 16:29 — forked from b1tman1ac/services-start.sh
Multi SSID with VLAN script, for ASUS AC3100 with Merlin
#!/bin/sh
# references
# NVRAM reference = https://wiki.dd-wrt.com/wiki/index.php/Switched_Ports
# Original Script Reference = https://gist.github.com/Jimmy-Z/6120988090b9696c420385e7e42c64c4
# Forked Script Reference = https://gist.github.com/tubaxiaosiji/d6c969797e470aa3eadfbfd6a966aa60
# This Script = https://gist.github.com/b1tman1ac/3d2cad0094e78a587f217a0720c9c11c
# multi SSID with VLAN script, for ASUS AC3100(4 port model + WAN port) with Merlin
#
@swarajthakur
swarajthakur / mysql-docker.sh
Last active December 4, 2019 16:16 — 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