wget https://storage.googleapis.com/golang/go1.10.2.linux-armv6l.tar.gz
sha256sum go1.10.2.linux-armv6l.tar.gz
echo 529a16b531d4561572db6ba9d357215b58a1953437a63e76dc0c597be9e25dd2
sudo tar -C /usr/local -xzf go1.10.2.linux-armv6l.tar.gz
export PATH=$PATH:/usr/local/go/bin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CREATE OR REPLACE FUNCTION db_to_csv(path TEXT) RETURNS void AS $$ | |
| declare | |
| tables RECORD; | |
| statement TEXT; | |
| begin | |
| FOR tables IN | |
| SELECT (table_schema || '.' || table_name) AS schema_table | |
| FROM information_schema.tables t INNER JOIN information_schema.schemata s | |
| ON s.schema_name = t.table_schema | |
| WHERE t.table_schema NOT IN ('pg_catalog', 'information_schema') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| python3 -c "import random as r,time as t,os;r.seed(t.time);x=[r.randint(1,60) for i in range(6)];x.sort();print(x)" |
NewerOlder