Skip to content

Instantly share code, notes, and snippets.

@brycejohnston
brycejohnston / ubuntu24_postgres18_upgrade.md
Last active February 21, 2026 22:28
Ubuntu 24 - Update Postgres from 17 to 18 and get newest PostGIS compiled with GEOS >= 3.14.x

Ubuntu 24 PostgreSQL 18 & PostGIS 3.6 (GEOS 3.14) Upgrade Guide

Target System: Ubuntu 24.04 (Noble)
Objective: Migrate DBs from PG 17 to PG 18 and install latest GIS libraries from source.


0. Backup / Dump All Databases (Before You Start)

@brycejohnston
brycejohnston / ubuntu2204.md
Last active July 8, 2023 16:41
Ubuntu 22.04 Ruby, Elixir, Flutter, etc Development Setup

Ubuntu 22.04 Ruby, Elixir, Flutter, etc Development Setup

Guide to setting up a new Ubuntu 22.04 dev environment with Ruby, Elixir and Node.js installed with the asdf version management tool, as well as Flutter and Rust along with PostgreSQL w/ PostGIS.

Update system and install prerequisite packages

Some of these packages may already be installed

@brycejohnston
brycejohnston / ubuntu20.md
Last active July 22, 2020 00:35
Ubuntu 20.04 Ruby and Elixir Development Setup

Ubuntu 20.04 Ruby and Elixir (and Misc) Development Setup

Guide to setting up a new Ubuntu 20.04 dev environment with Ruby, Elixir and Node.js installed with the asdf version management tool along with PostgreSQL & PostGIS.

Update system and install prerequisite packages

Some of these packages may already be installed

sudo apt-get install autoconf automake binutils build-essential curl \
 dirmngr dnsutils fonts-liberation fonts-liberation2 fontconfig g++ gcc gdal-bin git \
@brycejohnston
brycejohnston / setup.md
Last active August 31, 2022 01:15
macOS Ruby on Rails Setup w/ asdf

Setting up Ruby / Ruby on Rails on macOS

If you haven't done so, first install Xcode Command Line Tools (xcode-select --install) and homebrew

asdf setup

Install required dependencies w/ homebrew

brew install \
  git coreutils automake autoconf openssl \
 libyaml readline libxslt libtool unixodbc \
@brycejohnston
brycejohnston / geojson-polygon-fill-color.json
Created August 14, 2018 12:21 — forked from lossyrob/geojson-polygon-fill-color.json
GeoJson Polygons with fill colors
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@brycejohnston
brycejohnston / ubuntu1804_ruby_elixir.md
Last active June 6, 2022 11:56
Ubuntu 18.04 / 18.10 Ruby and Elixir Development Setup

Ubuntu 18.04 / 18.10 Ruby and Elixir Development Setup

Guide to setting up a new Ubuntu 18.04 dev environment with Ruby and Elixir installed with the asdf version management tool.

Update system and install prerequisite packages

Some of these packages may already be installed

sudo apt-get install make binutils gcc build-essential \
 git curl zlib1g-dev openssl libssl-dev libreadline-dev \
@brycejohnston
brycejohnston / message.json
Last active January 21, 2018 23:14
sentinel-2 SNS example
{
"name" : "S2A_MSIL1C_20180121T141501_N0206_R053_T23VNH_20180121T160435",
"id" : "91b49eb5-735f-4043-aff1-bb67f6d51db7",
"path" : "products/2018/1/21/S2A_MSIL1C_20180121T141501_N0206_R053_T23VNH_20180121T160435",
"timestamp" : "2018-01-21T14:15:01.026Z",
"datatakeIdentifier" : "GS2A_20180121T141501_013492_N02.06",
"sciHubIngestion" : "2018-01-21T18:54:53.748Z",
"s3Ingestion" : "2018-01-21T19:04:58.796Z",
"tiles" : [
{
@brycejohnston
brycejohnston / mgrs.json
Last active January 24, 2018 19:18
mgrs api example
{
"name": "36RUU",
"utm_zone": "36",
"latitude_band": "R",
"grid_square": "UU",
"latitude": 30.2278496385,
"longitude": 31.4893138415,
"epsg": "32636"
}
@brycejohnston
brycejohnston / tiles.json
Last active January 7, 2018 23:28
tile json
[
{
"mgrs_grid_name": "36RUU",
"utm_zone": 36,
"latitude_band": "R",
"grid_square": "UU",
"path": "tiles/36/R/UU/2018/1/7/0",
"date": "2018-01-07",
"timestamp": "2018-01-07T08:49:36.450Z",
"epsg": "32636",
@brycejohnston
brycejohnston / sensors.js
Last active January 16, 2019 14:32
Node.js script to read DHT22 sensor and post readings to API. Run in background with forever / forever-service node libraries.
/***
forever-service version 0.5.4
Platform - Raspbian GNU/Linux 7 (wheezy)
update-rc.d: using dependency based boot sequencing
sensors provisioned successfully
Commands to interact with service sensors
Start - "sudo service sensors start"
Stop - "sudo service sensors stop"