Skip to content

Instantly share code, notes, and snippets.

View nonword's full-sized avatar

Paul Beaudoin nonword

View GitHub Profile
@nonword
nonword / gist:f31289b76205a69b665784f3782d6f33
Created August 13, 2020 19:09
documentdelivery@nypl.org source
Delivered-To: contact@paulbeaudoin.com
Received: by 2002:a0c:bd8d:0:0:0:0:0 with SMTP id n13csp687435qvg;
Thu, 6 Aug 2020 05:57:37 -0700 (PDT)
X-Google-Smtp-Source: ABdhPJwWZlxHEOZY4S4nWFqF4IQ/psGpADuDs2LbIz/sPech20aTdVvDiLPXD4L95lHzKddk+Uj8
X-Received: by 2002:a63:cd56:: with SMTP id a22mr6718452pgj.259.1596718656920;
Thu, 06 Aug 2020 05:57:36 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1596718656; cv=none;
d=google.com; s=arc-20160816;
b=KQAhz04Bakz+VALq2JuKCBwityP043tErdXMg5+0/mVyNZ+aBhWzHqmtF5FXuHz7qy
o9+h9DsYg5K59fn+sOxCgkLmn2fD65cEUQS45eMJe5znLuEyK7WXLN7zUDP9wwVe0sb8
@nonword
nonword / Sierra Client switching
Created May 2, 2020 02:50
Installing multiple Sierra Clients on a single computer, configured for different Sierra instances
This is how I install the Sierra Desktop App (Sierra Client) multiple times for different instances:
- Install the Sierra client somewhere (e.g. "/Applications/Sierra Desktop App (test)")
- In terminal, navigate to "/Applications/Sierra Desktop App (test)"
- mv iiirunner.app iiirunner.test.app # This makes it easy to select it from cmd-space
- vim iiirunner.test.app/Contents/Info.plist
- find "ip=" and replace the existing hostname with the correct hostname (e.g. resulting in " <string>ip=nypl-sierra-test.nypl.org port=64000 "workdir=/Applications/Sierra Desktop App" $CMD_LINE_ARGUMENTS$</string>
"
- Note the "workdir=" param on the same line, which should target a valid Sierra client
- Now you can cmd-space, type "iiirunner", select the one called "iiirunner.test.app" to open a client
@nonword
nonword / gist:d964e253f0ccd75dc02d0fedb9c88dd9
Created December 30, 2016 19:17
upgrade postgres data dir from 9.4 to 9.6
# initialize directory:
initdb -D /usr/local/var/postgres96
# copy data from old directory
pg_upgrade -b /usr/local/Cellar/postgresql/9.4.4/bin -B /usr/local/Cellar/postgresql/9.6.1/bin -d /usr/local/var/postgres -D /usr/local/var/postgres96
# Ensure daemon startup specifies new directory:
postgres -D /usr/local/var/postgres96
@nonword
nonword / gist:9debc47a960397f51dd2
Last active August 29, 2015 14:05
Re-enable 'New Tab' shortcut in twitter
document.onkeypress = function(e) { if(e.charCode==116 && e.metaKey) window.open('about:blank', '_blank'); };
@nonword
nonword / gist:272e9dc376de8a95f55e
Created July 14, 2014 00:01
Get apache and fuelphp working after Mavericks upgrade
# Note: This should follow repairing brew (https://gist.github.com/nonword/8ccb2b50727120f24c45 )
# After upgrading to Mavericks, Apple seems to have reset /etc/apache2/httpd.conf
# and removed "personal web sharing" from System Preferences, so:
# Edit httpd.conf:
# 1. Re-enable inclusion of /etc/apache2/extra/httpd-vhosts.conf to re-enable vhosts
# 2. Re-enable inclusion of php handler
sudo vim /etc/apache2/httpd.conf
@nonword
nonword / gist:ae0cb1a91c75ca039e22
Created July 7, 2014 20:56
Upgrade Postgres data dir from 9.2 to 9.32 after updating bins via brew
# Adapted from https://gist.github.com/joho/3735740
# After upgrading OSX to Mavericks, pg was all confused. So I:
brew update && brew upgrade
# But this only updated pg libs (from 9.2 to 9.32) without updating data dir, so I:
# Stop service:
launchctl unload -w ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist