Skip to content

Instantly share code, notes, and snippets.

View distolma's full-sized avatar
🇺🇦

Dmytro Mostovyi distolma

🇺🇦
View GitHub Profile
@distolma
distolma / 50-cloud-init.yaml
Last active October 25, 2025 03:43
Ubuntu setup for Radxa Zero 3W
# This file is generated from information provided by the datasource. Changes
# to it will not persist across an instance reboot. To disable cloud-init's
# network configuration capabilities, write a file
# /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:
# network: {config: disabled}
network:
ethernets:
eth0:
dhcp4: true
optional: true
@distolma
distolma / backup.sh
Created April 16, 2022 14:06
mysql_postgresql_backup.sh
# MySQL
## 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
#PostgreSQL
## Backup
docker exec -t CONTAINER pg_dumpall -c -U postgres > backup.sql
country=US
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="NETWORK-NAME"
psk="NETWORK-PASSWORD"
}