Skip to content

Instantly share code, notes, and snippets.

View tuffacton's full-sized avatar
👋

Nic Acton tuffacton

👋
View GitHub Profile
time x1 x2 x3 x4 x5 x6 x7 x8 class
55 0 81 0 -6 11 25 88 64 4
56 0 96 0 52 -4 40 44 4 4
50 -1 89 -7 50 0 39 40 2 1
53 9 79 0 42 -2 25 37 12 4
55 2 82 0 54 -6 26 28 2 1
41 0 84 3 38 -4 43 45 2 1
37 0 100 0 36 -8 63 64 2 1
46 0 83 0 46 0 37 36 0 1
44 0 79 0 42 -17 35 37 2 1
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tuffacton
tuffacton / iris.csv
Last active March 24, 2020 22:33
Helper files for HW3
sepal_length sepal_width petal_length petal_width species
4.3 3 1.1 0.1 1
4.4 2.9 1.4 0.2 1
4.4 3 1.3 0.2 1
4.4 3.2 1.3 0.2 1
4.5 2.3 1.3 0.3 1
4.6 3.1 1.5 0.2 1
4.6 3.2 1.4 0.2 1
4.6 3.4 1.4 0.3 1
4.6 3.6 1 0.2 1
Zurich Class Spot Size Spot Dist Activity Evolution Prev Activity Historical New Historical Area Spot Area C class M class X class
C S O 1 2 1 1 2 1 2 0 0 0
D S O 1 3 1 1 2 1 2 0 0 0
C S O 1 3 1 1 2 1 1 0 0 0
D S O 1 3 1 1 2 1 2 0 0 0
D A O 1 3 1 1 2 1 2 0 0 0
D A O 1 2 1 1 2 1 2 0 0 0
D A O 1 2 1 1 2 1 1 0 0 0
D A O 1 2 1 1 2 1 2 0 0 0
D K O 1 3 1 1 2 1 2 0 0 0
@tuffacton
tuffacton / decision_trees.ipynb
Last active February 21, 2020 01:53
Decision Tree exercises from ECE 5984 class, you'll need the Shirt.xlsx file to re-generate.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tuffacton
tuffacton / data_analysis_base.ipynb
Last active February 21, 2020 00:41
Use this Colaboratory notebook as a baseline to quickly upload and profile a dataset to get a quick exploration of all the variables.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tuffacton
tuffacton / remove_images.sh
Last active February 21, 2020 01:26
Remove all docker images that follow a certain pattern.
#!/bin/bash
pattern = $0
docker images -a | grep "$pattern" | awk '{print $3}' | xargs docker rmi
@tuffacton
tuffacton / zsh_timer.sh
Created January 22, 2020 03:10
A quick, explicit time-command to monitor to debug your zsh startup performance.
#!/bin/bash
/usr/bin/time zsh -i -c exit
@tuffacton
tuffacton / troubleshoot.sh
Last active November 17, 2019 16:39
An accessible and comprehensive troubleshooting script, iteratively added by the community, that has clear & transparent steps using only baked-in linux tools.
#!/bin/bash
echo "Welcome to the troubleshooting script!"
echo "Every item produced by this script will be pushed to a file called 'ts_session.txt'"
echo "We will narrate this script as it proceeds, you can transparently see every action it takes."
echo "First we want to know how much RAM your VM has:"
sleep 4
echo "RAM information" >> ts_session.txt
cat /proc/meminfo | head -n 1 >> ts_session.txt
@tuffacton
tuffacton / list.md
Created November 15, 2019 21:22
S3 listing techniques

List just the filenames from two buckets and diff them to see the difference

aws s3 ls s3://bucket-1 --recursive | awk '{$1=$2=$3=""; print $0}' | sed 's/^[ \t]*//' | sort > bucket_1_files
aws s3 ls s3://bucket-2 --recursive | awk '{$1=$2=$3=""; print $0}' | sed 's/^[ \t]*//' | sort > bucket_2_files

diff bucket_1_files bucket_2_files