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
@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)