Skip to content

Instantly share code, notes, and snippets.

View aolney's full-sized avatar

Andrew M Olney aolney

View GitHub Profile
#r "/z/aolney/repos/HtmlAgilityPack.1.4.9.5/lib/Net40/HtmlAgilityPack.dll"
open HtmlAgilityPack
//This list was generated by going to each season page and getting links with Firefox plugin 'Link Gopher' (does not return links in order)
let urls =
[|
(19,1,"http://southpark.wikia.com/wiki/Stunning_and_Brave/Script")
(19,2,"http://southpark.wikia.com/wiki/Where_My_Country_Gone%3F/Script")
(19,3,"http://southpark.wikia.com/wiki/The_City_Part_of_Town/Script")
(19,4,"http://southpark.wikia.com/wiki/You're_Not_Yelping/Script")
#!/bin/bash
#upgrade chromeos debian stretch to buster (for python 3.7)
#https://www.reddit.com/r/Crostini/comments/9rhauo/upgrade_from_stretch_to_buster_compilation_of/
#Fresh Stretch install. Let's make sure everything is up to date.
sudo apt-get update
sudo apt-get -y --allow-downgrades upgrade
sudo apt-get -y dist-upgrade
#Update package repository to Buster
#!/bin/bash
echo "Do not run as root; abort if you did"
#install vncviewer
sudo apt -y install apt-utils tigervnc-viewer
#install mono and fsharp
sudo apt install -y apt-transport-https dirmngr gnupg ca-certificates
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
@aolney
aolney / pd-midi.sh
Created August 19, 2019 17:22
Launch a virtual midi keyboard with pure data and connect them
#!/bin/bash
vkeybd &
puredata -alsamidi -mididev 1 &
aconnectgui &
@aolney
aolney / allennlp.sh
Created September 29, 2019 15:44
AllenNLP demo docker launcher with custom model file
#!/bin/bash
mkdir -p $HOME/.allennlp
sudo docker run --restart always -p 8000:8000 -v $HOME/.allennlp:/root/.allennlp allennlp/demo --demo-dir /stage/allennlp/demo --models-file /root/.allennlp/custom_models.json
@aolney
aolney / spacy.sh
Created September 29, 2019 15:45
Spacy docker launcher
#!/bin/bash
sudo docker run --restart always -p 8001:80 aolney/spacyapi:en_v2
@aolney
aolney / login.html
Created February 18, 2021 18:08
Autologin for JupyterHub by query string
{% extends "page.html" %}
{% if announcement_login %}
{% set announcement = announcement_login %}
{% endif %}
{% block login_widget %}
{% endblock %}
{% block main %}