Skip to content

Instantly share code, notes, and snippets.

Avatar

Waylon Flinn waylonflinn

View GitHub Profile
@waylonflinn
waylonflinn / lh.py
Last active Dec 20, 2020 — forked from prefiks/lh.py
Valve Index Lighthouse Control Script for Linux (Might Work on Windows Too)
View lh.py
#!/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
@waylonflinn
waylonflinn / camping-oklahoma.md
Last active Apr 15, 2018
Camping Spots in Oklahoma
View camping-oklahoma.md

New (and Unimproved?)

Lake Murray / Ardmore

South on I-35, 2 hours

  • Ski Jump Campground (unimproved), $14 / night

info | map

@waylonflinn
waylonflinn / How-to-Edit-Gameplay-Videos-for-YouTube
Last active Aug 4, 2017
How do you take some raw gameplay footage and turn it into an interesting YouTube video?
View How-to-Edit-Gameplay-Videos-for-YouTube
# How to Edit Gameplay Footage
## Identify the Narratives
There will likely be at least four narratives going on at any one time.
1. Channel/life narrative
a. Who are you as a person?
b. What's this channel about?
2. Personal/life narrative (more temporally local than the channel narrative)
@waylonflinn
waylonflinn / al-pastor.md
Last active Sep 16, 2016
Authentic Al Pastor, Crockpot Style
View al-pastor.md

Authentic Al Pastor, Crockpot Style

Ingredients

  • 1 pineapple

  • 1 bottle of beer

  • 1/4 cup vinegar

  • 2 pounds of pork (loin, shoulder or butt)

  • 1/2 cup onion

@waylonflinn
waylonflinn / filter-aggregate.py
Created Sep 30, 2015
Filtering and Aggregation with Bquery
View filter-aggregate.py
import bcolz
import bquery
data_path = '/some/place/with/bcolz/data'
c_table = bquery.ctable(rootdir=data_path)
## Filter
# create the criteria
View why-node.md

Why node.js?

Assumptions:

  • three things matter: developer productivity, production performance, infrastructure cost

    • developer productivity: prototyping, productionifying, maintenance
    • production performance: latency, concurrency
    • infrastructure cost: hardware baseline, hardware scaling, operations (dev-ops) overhead
  • same code on client and server (developer productivity)

    • no context switch
@waylonflinn
waylonflinn / smart-deploy-server.sh
Last active Aug 29, 2015
setup a joyent smart machine to work with the joy-pusher npm module
View smart-deploy-server.sh
#!/usr/bin/bash
# pass in a single argument with the name of the project
mkdir git
mkdir git/$1
mkdir apps
mkdir apps/$1
mkdir deployments
@waylonflinn
waylonflinn / install-python-deep-learning.sh
Last active Aug 29, 2015
Install Deep Learning libraries for Python (caffe)
View install-python-deep-learning.sh
# First run the python data science script: https://gist.github.com/waylonflinn/506f563573600d944923
# cuda
# wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64/cuda-repo-ubuntu1404_6.5-14_amd64.deb
# dpkg -i cuda-repo-ubuntu1404_6.5-14_amd64.deb
# sudo apt-get update
# sudo apt-get install -y cuda
# pushd installs
# wget https://github.com/BVLC/caffe/archive/v0.9999.tar.gz
# tar -xvf v0.9999.tar.gz
@waylonflinn
waylonflinn / ipynb_output_filter.py
Last active May 25, 2018
Make ipython notebook files place nice with git. Remove output from notebooks when doing diffs and commits.
View ipynb_output_filter.py
#! /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 / install-python-data-science.sh
Last active Dec 4, 2016
Install Data Science and NLP libraries for python3 in a virtualenv (Numpy, Scipy, Matplotlib, Pandas, Gensim, OpenBLAS and PyTables)
View install-python-data-science.sh
#!/usr/bin/env bash
## create an ubuntu 14.04 hvm instance, then from your home directory:
# 1. download this script
# wget https://gist.githubusercontent.com/waylonflinn/506f563573600d944923/raw/install-python-data-science.sh
# 2. make it executable
# chmod a+x install-python-data-science.sh