Skip to content

Instantly share code, notes, and snippets.

View neighthan's full-sized avatar

Nathan Hunt neighthan

View GitHub Profile
@neighthan
neighthan / pypi_upload.sh
Last active February 16, 2019 19:03
Build + upload a package to PyPI
# from https://packaging.python.org/tutorials/packaging-projects/
# make sure to start in the directory where your setup.py is located
pip install -U setuptools wheel twine
python setup.py sdist bdist_wheel
# test that things work first if needed
twine upload --repository-url https://test.pypi.org/legacy/ dist/*
pip install --index-url https://test.pypi.org/simple/ <package-name>
// ==UserScript==
// @name Focused StackExchanges
// @namespace http://tampermonkey.net/
// @version 1.0
// @description Remove distracting things (hot network questions) from StackExchange pages
// @author Nathan Hunt
// @match https://stackoverflow.com/*
// @match https://*.stackexchange.com/*
// @match https://superuser.com
// @grant none
// ==UserScript==
// @name Focused YouTube
// @namespace http://tampermonkey.net/
// @version 1.0
// @description Remove distracting things (comments, other video suggestions) from YouTube video pages
// @author Nathan Hunt
// @match https://www.youtube.com/*
// @grant none
// ==/UserScript==
@neighthan
neighthan / add_mathjax.js
Last active January 16, 2023 04:42
Tampermonkey User Script to add MathJax to, e.g., Trello
// ==UserScript==
// @name MathJax
// @namespace http://tampermonkey.net/
// @version 2.0
// @description Add Mathjax to webpages
// @author Nathan Hunt
// @match https://trello.com/*
// @grant none
// ==/UserScript==
@neighthan
neighthan / link_parser.py
Created April 23, 2018 19:09
Download all links from webpage (Python asyncio)