This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Delivered-To: [email protected] | |
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
document.onkeypress = function(e) { if(e.charCode==116 && e.metaKey) window.open('about:blank', '_blank'); }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |