Skip to content

Instantly share code, notes, and snippets.

@victorneo
victorneo / mastodon-user-profile
Created May 10, 2020 05:19
User Profile info from Mastodon thru ActivityPub
{ "@context":["https://www.w3.org/ns/activitystreams", ,,,],
"id":"https://mastodon.social/users/victorneo",
"type":"Person",
"following":"https://mastodon.social/users/victorneo/following",
"followers":"https://mastodon.social/users/victorneo/followers",
"inbox":"https://mastodon.social/users/victorneo/inbox",
"outbox":"https://mastodon.social/users/victorneo/outbox",
"featured":"https://mastodon.social/users/victorneo/collections/featured",
"preferredUsername":"victorneo",
"name":"Victor Neo",
@victorneo
victorneo / mastodon-webfinger-example
Created May 10, 2020 05:17
Mastodon Webfinger Response
{
"subject":"acct:victorneo@mastodon.social",
"aliases":[
"https://mastodon.social/@victorneo",
"https://mastodon.social/users/victorneo"
],
"links":[
{
"rel":"http://webfinger.net/rel/profile-page",
"type":"text/html",

Keybase proof

I hereby claim:

  • I am victorneo on github.
  • I am victorneo (https://keybase.io/victorneo) on keybase.
  • I have a public key whose fingerprint is 7569 B653 6B42 0D55 6188 D953 A6C1 8AAC F740 A791

To claim this, I am signing this object:

### Keybase proof
I hereby claim:
* I am victorneo on github.
* I am victorneo (https://keybase.io/victorneo) on keybase.
* I have a public key whose fingerprint is FC25 FD32 7697 5F88 1749 E301 7A9B D4B6 06F2 7B3C
To claim this, I am signing this object:
@victorneo
victorneo / Streaming Replication
Created December 16, 2013 04:22
Streaming replication for PG 9.1
Taken from http://www.rassoc.com/gregr/weblog/2013/02/16/zero-to-postgresql-streaming-replication-in-10-mins/
# Create replicator user
sudo -u postgres psql -c "CREATE USER replicator REPLICATION LOGIN ENCRYPTED PASSWORD 'thepassword';"
# postgresql.conf
listen_address = # make sure we're listening as appropriate
wal_level = hot_standby

Django and Postgis on OS X

Install Homebrew

Install a few things with homebrew:

Notice that some packages give you information at the end, read it carefully. To recall that info use brew info like this: $ brew info postgresql

$ brew install python --universal