Skip to content

Instantly share code, notes, and snippets.

View adamhrv's full-sized avatar

Adam Harvey adamhrv

View GitHub Profile

Keybase proof

I hereby claim:

  • I am adamhrv on github.
  • I am exposing_ai (https://keybase.io/exposing_ai) on keybase.
  • I have a public key ASBHjmQEzzG2rCkzJCu2DNZfEB15Y-AcIy5qtQeJPx2KpAo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am adamhrv on github.
  • I am vframeio (https://keybase.io/vframeio) on keybase.
  • I have a public key ASDncJxfonyyGK4D5yC9AG4Nka1v-LELSWwI-ZjdzpIAowo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am adamhrv on github.
  • I am ahrv (https://keybase.io/ahrv) on keybase.
  • I have a public key ASAP0tea0MUXztEMv8qtgTEHjhOCXEWQfc77OkdPu2i0gAo

To claim this, I am signing this object:

@adamhrv
adamhrv / heatmap.py
Last active June 17, 2021 19:31
Convert image to heatmap
#!/usr/bin/env python
import cv2
import numpy as np
import argparse
'''
Create blended heat map with JET colormap
adadvisor.net
adnxs.com
btrll.com
casalemedia.com
demdex.net
doubleclick.net
everesttech.net
liverail.com
mixpanel.com
mxpnl.com
#!/bin/bash
#
# wait for internet connection to be established before launching, adjust next line based on install network
# can also ignore
#sleep 15s
#
# this script runs once on startup
xinput set-prop 'Advanced Silicon S.A CoolTouch(TM) System' 'Evdev Middle Button Emulation' 0
xinput set-prop 'Advanced Silicon S.A CoolTouch(TM) System' 'Evdev Third Button Emulation Button' 0
xinput set-prop 'Advanced Silicon S.A CoolTouch(TM) System' 'Evdev Wheel Emulation' 0
@adamhrv
adamhrv / keyloggerAnalysis.pde
Created October 28, 2015 22:39
Key Logger Key Counter
/**
* Keylogger analysis tool: output key counts to CSV
* ITP Stratosphere of Surveillance
* Built: Processing 2.2.1
*/
import java.util.Map;
HashMap<String, Keystroke> keystrokes;
String inputFile = "keystroke.log", outputFile = "keystroke.csv";
void setup() {
size(800, 600);
@adamhrv
adamhrv / convertHistoryToTxt
Last active August 11, 2023 18:51
Convert Chrome sqlite file containing browsing history to a line-delimited text file for use in OpenWPM
// Stratosphere of Surveillance
// http://stratosphere.undisclosed.cc
// ITP Fall 2015
//
// Read Chrome "History" sqlite database (rename to "History.sqlite")
// Export history of URLs to line-delimited text file
// Note: Firefox conversion does not yet work
//
// 1: copy "History" sqlite file into your data directory
// 2: run script to export urls to txt file
@adamhrv
adamhrv / process-urls.py
Created September 25, 2015 01:34
input line-delimited values to OpenWPM
from automation import TaskManager
import time
import os
import sys
# The list of sites that we wish to crawl
NUM_BROWSERS = 3
#sites = ['http://www.example.com',
# 'http://www.princeton.edu',
# 'https://citp.princeton.edu/']
screen /dev/tty.usbmodem111