Skip to content

Instantly share code, notes, and snippets.

View waylonflinn's full-sized avatar

Waylon Flinn waylonflinn

View GitHub Profile
@waylonflinn
waylonflinn / ipynb_output_filter.py
Last active May 25, 2018 17:45
Make ipython notebook files place nice with git. Remove output from notebooks when doing diffs and commits.
#! /usr/bin/env python
# this script filters output from ipython notebooks, for use in git repos
# http://stackoverflow.com/questions/18734739/using-ipython-notebooks-under-version-control
#
# put this file in a `bin` directory in your home directory, then run the following commands:
#
# chmod a+x ~/bin/ipynb_output_filter.py
# echo -e "*.ipynb \t filter=dropoutput_ipynb" >> ~/.gitattributes
# git config --global core.attributesfile ~/.gitattributes
# git config --global filter.dropoutput_ipynb.clean ~/bin/ipynb_output_filter.py
@waylonflinn
waylonflinn / lh.py
Last active December 20, 2020 21:06 — forked from prefiks/lh.py
Valve Index Lighthouse Control Script for Linux (Might Work on Windows Too)
#!/usr/bin/python3
# Usage:
#lh.py on
#lh.py off
# with no arguments, state will be toggled (off -> on, on -> off)
#lh.py
from bluepy import btle
import sys