Skip to content

Instantly share code, notes, and snippets.

View psychemedia's full-sized avatar

Tony Hirst psychemedia

View GitHub Profile
@psychemedia
psychemedia / Dockerfile
Last active February 11, 2019 23:47
Can we use Jupyter server proxy to proxy things on named network?
FROM jupyter/minimal-notebook
RUN pip --no-cache install git+https://github.com/jupyterhub/jupyter-server-proxy
@psychemedia
psychemedia / Digital_Ocean_User_data
Last active February 4, 2020 15:50
Simple docker-compose script for running OpenRefine, Jupyter notebook and postgres
#!/bin/bash
GIST=d72b396c491fe1348bc1d9badfdcce81
git clone https://gist.github.com/$GIST.git
cd $GIST
source run.sh
@psychemedia
psychemedia / nbgallery_bulk_upload.ipynb
Created January 17, 2019 23:08
Selenium automation of nbgallery notebook uploads
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@psychemedia
psychemedia / dakar.ipynb
Last active June 23, 2019 22:37
Dakar Rally 2019 data grab
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@psychemedia
psychemedia / openrefiine_secure.sh
Last active July 13, 2020 17:06
Simple user_data script for getting an authenticated OpenRefine server running on Digital Ocean
#!/bin/bash
USER_NAME=${USER_NAME:-test}
USER_PWD=${USER_NAME:-letmein}
apt-get update && apt-get install -y nginx apache2-utils
htpasswd -b -c /etc/nginx/.htpasswd $USER_NAME $USER_PWD
sudo ufw allow 'Nginx Full'
@psychemedia
psychemedia / thebelab-gnuplot.html
Created December 6, 2018 17:40
Demo of using ThebeLab to run gnuplot kernel
<html>
<head>
<meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
<title>Thebe Lab examples</title>
<link rel="stylesheet" type="text/css" href="index.css" />
<!-- Configure and load Thebe !-->
<script type="text/x-thebe-config">
{
@psychemedia
psychemedia / demo_arrowlines.tex
Last active November 20, 2018 13:52
ERD LateX doodles
\draw [one to one] (0,0) -- (12,0) node[midway, above] {can't work out the layout} ;
\draw [one to one] (0,2) -- (5,2) node[midway, above] {one to one} ;
\draw [many to many] (7,2) -- (12,2) node[midway, above] {many to many} ;
\draw [many to one] (0,4) -- (5,4) node[midway, above] {many to one} ;
\draw [one to many] (7,4) -- (12,4) node[midway, above] {one to many} ;
\draw [many to oone] (0,6) -- (5,6) node[midway, above] {many to oone} ;
\draw [oone to many] (7,6) -- (12,6) node[midway, above] {oone to many} ;
@psychemedia
psychemedia / simpleWordcloud.ipynb
Last active October 29, 2018 18:38
Simple wordcloud notebook for @cogdog
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@psychemedia
psychemedia / stamps.ipynb
Created August 30, 2018 18:13
Old example of image analysis on stamps
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@psychemedia
psychemedia / jupyterkgdemo.ipynb
Created August 6, 2018 16:54
SImple Jupyter powered notebook api
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.