Skip to content

Instantly share code, notes, and snippets.

@davidbradway
davidbradway / choco.md
Last active October 27, 2021 06:15
Windows Computer setup

Manual Installs:

  • Chocolatey, then used script below for a mass install
  • Duke VPN (Cisco AnyConnect) -- login to portal.duke.edu
  • GoPro
  • SDFormatter 5.0
  • Keybase (not working?)
  • Windows Linux Subsystem, then Ubuntu, then ZSH, then oh-my-zsh
  • Bitcoin Core (ran through whole Blockchain, then enabled pruning)
  • Postman
@davidbradway
davidbradway / rpi.md
Last active June 19, 2021 11:30
Raspberry Pi setup commands
startx
ifconfig
sudo nano /etc/network/interfaces 
sudo ifconfig
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install git

# Setup some Python stuff
# conda create -n pd python
# (source) conda activate pd
# conda install pandas
# conda install matplotlib
# remove pd environment
import json
import os
import datetime as dt
import pandas as pd
import pandas as pd
import matplotlib.pyplot as plt
# Import Data
data = pd.read_csv('scrubbed.csv')
data.head()
#Prepare "shapes" column for donut plot entry
shapes = data['shape'].value_counts(normalize=True) * 100
Keys = shapes.keys().to_list()
@davidbradway
davidbradway / LeapMotionPushoverShare.py
Created October 30, 2015 01:42
Python program to detect Leap Motion 'Screen Tap' events and pass them as messages via the Pushover web service.
#! python
################################################################################
# Copyright (C) 2012-2013 Leap Motion, Inc. All rights reserved. #
# Leap Motion proprietary and confidential. Not for distribution. #
# Use subject to the terms of the Leap Motion SDK Agreement available at #
# https://developer.leapmotion.com/sdk_agreement, or another agreement #
# between Leap Motion and you, your company or other organization. #
################################################################################
@davidbradway
davidbradway / setup.md
Last active May 19, 2020 22:00
Set Up Docker On Raspberry Pi Raspbian Stretch Lite
@davidbradway
davidbradway / used_leaf.csv
Last active October 5, 2018 20:47
This is a list of used Leaf cars pulled from CarMax on Oct 5th 2018
Year Model Price Mileage Dealer City State Transfer Fee Stock #
2013 S 7998 53 Pleasanton Pleasanton CA 949 16298916
2011 SL 7998 83 West Sahara Las Vegas NV 799 16260846
2011 SL 7998 71 Ontario Los Angeles CA 949 16287068
2011 SL 8599 44 Serramonte San Francisco CA 949 15868010
2011 SL 8599 43 Clackamas Clackamas OR 999 16338496
2011 SL 8599 48 LAX Los Angeles CA 949 16529550
2012 SV 8599 60 Henderson Las Vegas NV 799 16260281
2011 SV 8599 50 Sacramento/Roseville Roseville CA 949 16298061
2012 SL 8998 54 Henderson Las Vegas NV 799 16111897
@davidbradway
davidbradway / .block
Last active February 9, 2018 19:37 — forked from mbostock/.block
Lab Notebook Meta-data. A look at prices charged at the Duke University Bookstore over 20 years.
license: gpl-3.0
@davidbradway
davidbradway / get-singularity.sh
Created December 19, 2017 22:09
install and set up singularity on an Ubuntu machine (needs root access)
sudo apt-get update
sudo apt-get install -y python dh-autoreconf build-essential
sudo apt-get install -y automake autoconf libtool
git clone https://github.com/singularityware/singularity.git
cd singularity
./autogen.sh
./configure --prefix=/usr/local
make
sudo make install
singularity run shub://vsoch/singularity-images

Keybase proof

I hereby claim:

  • I am davidbradway on github.
  • I am davidbradway (https://keybase.io/davidbradway) on keybase.
  • I have a public key ASCuLH-bl5srBYIsIOqlOXoYzkpaS76RN23NC061r8S7mwo

To claim this, I am signing this object: