Skip to content

Instantly share code, notes, and snippets.

View mekaneck's full-sized avatar

Rick Auch mekaneck

View GitHub Profile
@InsaneWookie
InsaneWookie / config_m1s_home_assistant.md
Last active April 28, 2024 11:03
Configure Aqara M1S Gateway for Home Assistant
@nasirhafeez
nasirhafeez / unifi-usg-json-templates.md
Last active April 9, 2024 14:22
Unifi USG config.gateway.json Templates

Run as root

sudo -i

Create openvpn directory and set permissions

cd /config
mkdir openvpn
chmod 777 openvpn
@spalladino
spalladino / mysql-docker.sh
Created December 22, 2015 13:47
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