Skip to content

Instantly share code, notes, and snippets.

@ryantology
ryantology / upgrade-mysql-mamp.sh
Last active July 18, 2017 03:19 — forked from dj1020/migrate.sh
Upgrade MAMP 4.0 to Mysql 5.7
#!/bin/sh
FILE='mysql-5.7.16-osx10.11-x86_64.tar.gz'
# MySQL direct is typically VERY slow. This uses a mirror. You can change the file source here.
#wget http://dev.mysql.com/get/Downloads/MySQL-5.7/$file
wget http://mysql.he.net/Downloads/MySQL-5.7/$FILE
#Signature from http://dev.mysql.com/downloads/mysql/
signature='e8c10d4600fc42bf8e111246982a57f4'
match=`md5 -q $FILE`
@ryantology
ryantology / README.md
Last active July 7, 2016 02:26 — forked from benschwarz/README.md
Intercom CSP (Content security policy)

You'll need to add a whole slew of hosts for intercom if you've got CSP in place (which you should).

Heres what you'll need to add (updated from intercom support request):

connect-src:
    api.intercom.io
    api-iam.intercom.io
    api-ping.intercom.io
 nexus-websocket-a.intercom.io
@ryantology
ryantology / install-keys.sh
Last active December 6, 2018 19:18 — forked from codeslinger/gist:3494
Retrieve SSH public keys from GitHub and install to authorized_keys.
#!/bin/bash
# vim:set ts=4 sw=4 et ai:
# Retrieve SSH public keys from GitHub and install to authorized_keys.
GITHUB_USERS=(USER1 USER2)
INSTALL_FILE=/home/USER/.ssh/authorized_keys
TMP_KEY=/tmp/ssh.key
CURL=/usr/bin/curl
CURLOPTS="--retry 3 --retry-delay 2 --silent --fail -o $TMP_KEY"