-
pg_dump is a nifty utility designed to output a series of SQL statements that describes the schema and data of your database. You can control what goes into your backup by using additional flags.
Backup:pg_dump -h localhost -p 5432 -U postgres -d mydb > backup.sql
Restore:
psql -h localhost -p 5432 -U postgres -d mydb < backup.sql
-h is for host.
-p is for port.
-U is for username.
-d is for database.
There are many (old) clients available:
- https://github.com/tpitale/legato (active, supports API v3)
- https://github.com/activenetwork/gattica
- https://github.com/vigetlabs/garb
The Google Analytics API is at v3 (at time of writing).
This example uses Google's Ruby API client to access Analytics. Use https://github.com/google/google-api-ruby-client (Google supported).
I hereby claim:
- I am sashanike on github.
- I am sashanike (https://keybase.io/sashanike) on keybase.
- I have a public key ASAiK4XNOi_qLl1VV8YfzJfMJV5RiH6zM0vJge9aH_Tlfgo
To claim this, I am signing this object:
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
//USAGE: in your address bar, type: javascript: and paste compiled string like: | |
//javascript:!function(){function b(b).... | |
//compiled: | |
!function(){function b(b){for(var c=[],d=0;d<b.length;d++){var e=b.charAt(d).toLowerCase(),f=a[e];f||(f=e),c.push(f)}return c.join("")}var a={a:":atrain:",b:":btrain:",c:":ctrain:",d:":dtrain:",e:":etrain:",f:":ftrain:",g:":gtrain:",h:":html:",i:":ie:",j:":jtrain:",k:":kanyemad:",l:":ltrain:",m:":mtrain:",n:":ntrain:",o:":mysql:",p:":python:",q:":qtrain:",r:":rtrain:",s:":strain:",t:":ttrain:",u:":ubuntu:",v:":vim:",w:":wtrain:",x:":x-wing:",y:":y:",z:":ztrain:","?":":question:"},c=prompt("Type a message");alert(b(c))}(); | |
//decompiled | |
(function(){ | |
var ABC = { | |
"a": ":atrain:", |