Skip to content

Instantly share code, notes, and snippets.

@emaserafini
emaserafini / install_pg_gem.md
Created December 21, 2022 13:56 — forked from tomholford/install_pg_gem.md
Install postgresql gem `pg` on macOS

Installing pg gem on macOS

If you're trying to install the postgresql gem pg and it is failing with the following error message:

Installing pg 1.2.3 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

    current directory: ~/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/pg-1.2.3/ext
~/.rbenv/versions/3.0.0/bin/ruby -I ~/.rbenv/versions/3.0.0/lib/ruby/3.0.0 -r ./siteconf20210125-97201-pycpo.rb extconf.rb

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am emaserafini on github.
  • I am emaserafini (https://keybase.io/emaserafini) on keybase.
  • I have a public key whose fingerprint is 224F B691 389B 5F2C 0AE4 B407 AD27 F985 C14D D520

To claim this, I am signing this object:

@emaserafini
emaserafini / rpi_unifi.md
Last active April 7, 2017 22:35 — forked from kburdett/rpi_unifi.md
Install Ubiquiti's UniFi Controller on a Raspberry Pi

https://www.loganmarchione.com/2016/11/ubiquiti-unifi-controller-setup-raspberry-pi-3/ https://gist.github.com/bwbaugh/de575219fecf48e859a48eebe16539c6

#Compatibility

I currently run Ubiquiti's UniFi Controller on a Raspberry Pi 3B without issue. I have tried with a Raspberry Pi 1B, but the application crashes on startup. I assume it is due to a lack of RAM. Presumably, it would run on a Raspberry Pi 2B as well (same amount of RAM), but I have not tested it on this model. YMMV.

#Instructions

  1. Install Raspbian on a SD card. I tested this with Jessie Lite (headless)

Keybase proof

I hereby claim:

  • I am emaserafini on github.
  • I am emaserafini (https://keybase.io/emaserafini) on keybase.
  • I have a public key whose fingerprint is F58D BF14 B7F1 93FE 565A E645 A66F 6225 44A4 820D

To claim this, I am signing this object: