Skip to content

Instantly share code, notes, and snippets.

View bettdouglas's full-sized avatar
💭
Available

Douglas Bett bettdouglas

💭
Available
View GitHub Profile
@bettdouglas
bettdouglas / example.dart
Created February 7, 2020 11:57 — forked from sma/example.dart
A flutter example demonstrating a custom painter drawing selectable rects
class RectsExample extends StatefulWidget {
@override
_RectsExampleState createState() => _RectsExampleState();
}
class _RectsExampleState extends State<RectsExample> {
int _index = -1;
@override
Widget build(BuildContext context) {
Backup:
docker exec -t -u postgres your-db-container pg_dumpall -c > dump_`date +%d-%m-%Y"_"%H_%M_%S`.sql
Restore:
cat your_dump.sql | docker exec -i your-db-container psql -Upostgres