Skip to content

Instantly share code, notes, and snippets.

View SuperJohn's full-sized avatar

John Houghton SuperJohn

  • Super John Inc
  • San Diego, CA
View GitHub Profile
@SuperJohn
SuperJohn / .gitignore
Created February 17, 2019 10:28 — forked from ELLIOTTCABLE/.gitignore
BASH Script to keep Route53 updated with your current external IP address
*.ip
*.log
@SuperJohn
SuperJohn / jupyter_userdata.sh
Created November 1, 2016 01:19 — forked from frangipane/jupyter_userdata.sh
configure jupyter notebook server (to be passed as user data when you launch an aws ec2 instance)
#!/bin/bash
CERTIFICATE_DIR="/home/ubuntu/certificate"
JUPYTER_CONFIG_DIR="/home/ubuntu/.jupyter"
if [ ! -d "$CERTIFICATE_DIR" ]; then
mkdir $CERTIFICATE_DIR
openssl req -x509 -nodes -days 365 -newkey rsa:1024 -keyout "$CERTIFICATE_DIR/mykey.key" -out "$CERTIFICATE_DIR/mycert.pem" -batch
chown -R ubuntu $CERTIFICATE_DIR
fi