I hereby claim:
- I am samuelhavron on github.
- I am samh (https://keybase.io/samh) on keybase.
- I have a public key whose fingerprint is 4059 AC71 169A 91DB C8B2 A7DF F0B2 1A52 20CE BBFB
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
from mitmproxy import http | |
from mitmproxy.net.http import cookies | |
from mitmproxy.utils import strutils | |
from datetime import datetime | |
import csv | |
import base64 | |
import json | |
REQUESTS_LOG = 'requests.mitm.csv' | |
RESPONSES_LOG = 'responses.mitm.csv' |
$driver = rtl8814au | |
cd $HOME | |
sudo apt update | |
sudo apt install git dkms libelf-dev | |
git clone https://github.com/zebulon2/$driver.git | |
sudo dkms add ./$driver | |
sudo dkms build -m $driver -v 4.3.21 | |
sudo dkms install -m $driver -v 4.3.21 | |
echo "How to enroll the driver as a trusted module:" | |
echo "Reboot and allow custom keys in Secure Boot in BIOS." |
commit_msg="THIS MACHINE IS IN PERIL: NO REPOS WILL BE LEFT BEHIND!" | |
echo "$commit_msg" | |
find ~ -name ".git" -type d -exec bash -c "echo 'Saving {} from peril!' \ | |
&& cd '{}'/.. && git add -A && git commit -m "$commit_msg"\ | |
&& git push" \; | |
echo "WHAT ARE YOU DOING STAYING HERE?? RUN!!!" |
#!/usr/bin/env python3 | |
import pandas as pd | |
import numpy as np | |
GROUPSIZE = 4 | |
INFILE = 'CS_5435_student_table.csv' | |
OUTFILE = 'CS_5435_hw_groups.csv' | |
''' | |
Load the student data (download it from | |
https://cmsx.cs.cornell.edu/web/auth/?action=exporttable&courseid=<YOURCOURSEID>) |
''' | |
Get full human-readable labels for Android permissions. | |
Run `adb shell pm list permissions -g -f > permissions_dump.txt` on an Android device, | |
then run this Gist to convert to pandas-friendly CSV. | |
''' | |
from rsonlite import simpleparse | |
import pandas as pd | |
OUTFILE = 'android_permissions.csv' | |
def permission_labels(permissions_dumpfile): | |
print('Parsing permissions dumpfile...') |
from sklearn.model_selection import KFold | |
from sklearn.base import clone | |
def cross_validate(features, labels, nsplits, model): | |
'''Returns tuple of (scores : list, average_score : float) over K folds. | |
Keyword arguments: | |
nsplits : int -- the number of folds to perform cross validation on. | |
model -- an object that is the model for CV. Assumes fit() and score() methods, | |
akin to sklearn model APIs. | |
features : pandas.DataFrame -- a Pandas DataFrame containing preprocessed training data features. |
du -cha --max-depth=2 /home/ | grep -E "M|G" | sort -rh |
#!/usr/bin/env python3 | |
# coding: utf-8 | |
import pandas as pd | |
import sys | |
import os | |
# pass in infile and CMSX assignment name as commandline args | |
if len(sys.argv) < 3: | |
print("Usage: python3 {}".format(os.path.basename(__file__))\ |