Skip to content

Instantly share code, notes, and snippets.

Tony Hirst psychemedia

Block or report user

Report or block psychemedia

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View bbc programme info.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@psychemedia
psychemedia / .env
Last active May 10, 2019
Example of docker-compose / Digital Ocean workbench config for running Jupyter notebooks, PostgresDB and Agensgraph db
View .env
#Create a default token/password for Jupyter notebook
JUPYTER_TOKEN=letmein
@psychemedia
psychemedia / .env
Last active Feb 12, 2019
Adding OpenRefine to a Jupyter notebook container for proxying
View .env
REFINEVERSION=3.1
JUPYTER_TOKEN=letmein
@psychemedia
psychemedia / Dockerfile
Last active Feb 11, 2019
Can we use Jupyter server proxy to proxy things on named network?
View Dockerfile
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 Feb 10, 2019
Simple docker-compose script for running OpenRefine, Jupyter notebook and postgres
View Digital_Ocean_User_data
#!/bin/bash
GIST=d72b396c491fe1348bc1d9badfdcce81
git clone https://gist.github.com/$GIST.git
cd $GIST
source run.sh
@psychemedia
psychemedia / nbgallery_bulk_upload.ipynb
Created Jan 17, 2019
Selenium automation of nbgallery notebook uploads
View nbgallery_bulk_upload.ipynb
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 May 11, 2019
Dakar Rally 2019 data grab
View dakar.ipynb
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 Jan 8, 2019
Simple user_data script for getting an authenticated OpenRefine server running on Digital Ocean
View openrefiine_secure.sh
#!/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 Dec 6, 2018
Demo of using ThebeLab to run gnuplot kernel
View thebelab-gnuplot.html
<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">
{
View demo_arrowlines.tex
\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} ;
You can’t perform that action at this time.