Skip to content

Instantly share code, notes, and snippets.

@AlmogCohen
AlmogCohen / gist:aacf9bf8e43c2cef85439d262fbabaf8
Last active January 24, 2025 09:25 — forked from jsugarman/gist:87092900735b34f4b368074e62a86dc3
install postgis on mac (M1 chip) OSX (sonoma) with postgresql@16
# Need to remove existing postgis and must not have postgresql@14 present
[brew remove postgis]
[brew remove postgresql@14]
# reinstall json-c once above are removed
brew uninstall json-c
brew install json-c
brew link json-c
# install postgresql@16 if not already installed - check version specific path
@AlmogCohen
AlmogCohen / _README.md
Last active February 6, 2021 21:34 — forked from osdiab/_README.md
Deletes all your cached URLs in prerender

You can run this by doing the following:

  1. Log into https://prerender.io
  2. Open the developer console on the prerender site
  3. Copy the code in this gist and paste it into your console
  4. Hit enter!

Some notes:

  • This script takes a while, Prerender is not very performant! So if you have a lot of cached URLs, be patient.
var cleanUp = {
domains: [],
getDomains: async function() {
let results = null;
let page = 0
do {
const response = await fetch(`https://prerender.io/api/cached-pages?page=${page}&pageSize=1000`);
const json = await response.json();