Skip to content

Instantly share code, notes, and snippets.

View bordicon's full-sized avatar

Borden Liu bordicon

  • Spire
  • San Francisco
View GitHub Profile

Keybase proof

I hereby claim:

  • I am bordicon on github.
  • I am bordicon (https://keybase.io/bordicon) on keybase.
  • I have a public key ASA4AT4rB6rvUJ5ehwunvpOsjG3h0KKtShiMZNlRdod6dwo

To claim this, I am signing this object:

@bordicon
bordicon / gist:141bcbb837e8f2b94099
Created May 18, 2015 17:13
Moving postgres to TMPFS
#!/bin/bash
# It is probably redundant if you set settings mentioned in https://gist.github.com/zekefast/42273658939724ba7c7a .
# But anyway it will not hurt anybody (sure if you are not putting your production database to RAM :)).
#
# Look for more detailed description in follow articles:
# - http://blog.vergiss-blackjack.de/2011/02/run-postgresql-in-a-ram-disk/
#
# ATTENTION:
# DO NOT apply this approach if you store important data in postgresql cluster, because that could cause