Skip to content

Instantly share code, notes, and snippets.

View eob's full-sized avatar

Ted Benson eob

View GitHub Profile
from scapy.all import *
import requests
import time
MAGIC_FORM_URL = 'http://put-your-url-here'
def record_poop():
data = {
"Timestamp": time.strftime("%Y-%m-%d %H:%M"),
"Measurement": 'Poopy Diaper'
}
from scapy.all import *
def arp_display(pkt):
if pkt[ARP].op == 1: #who-has (request)
if pkt[ARP].psrc == '0.0.0.0': # ARP Probe
print "ARP Probe from: " + pkt[ARP].hwsrc
print sniff(prn=arp_display, filter="arp", store=0, count=10)
Name URL Class Status Description
Awesound https://awesound.com F2 AdWords for podcasts
BillionToOne http://www.billiontoone.com F2 Fetal genetic testing in India
Bulletin http://shop-bulletin.com F2 Airbnb for retail
Cerplus http://www.getcerplus.com F2 B2B marketplace for surplus produce
ConnectHealth http://www.connecthealth.io F2 Telemedicine and prescription delivery in Africa
Ctzen https://en.ctzen.co F2 311 for the developing world
GTRACK Technologies http://www.gtracktechnologies.com F2 Nanoparticle tracers for fracking
HDP Health https://www.hdphealth.com F2 Helping clinical trials find patients using AI
Ilium VR https://iliumvr.com F2 Rifle controller for virtual reality
@eob
eob / autoincrementing-col-appscript.js
Last active November 20, 2018 10:16
Auto-Incrementing Columns on Google Spreadsheets
function myFunction() {
var AUTOINC_COLUMN = 0;
var HEADER_ROW_COUNT = 1;
var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
var worksheet = spreadsheet.getSheetByName("Sheet1");
var rows = worksheet.getDataRange().getNumRows();
var vals = worksheet.getSheetValues(1, 1, rows+1, 2);
from scapy.all import *
def arp_display(pkt):
if pkt[ARP].op == 1: #who-has (request)
if pkt[ARP].psrc == '0.0.0.0': # ARP Probe
if pkt[ARP].hwsrc == '74:75:48:5f:99:30': # Huggies
print "Pushed Huggies"
elif pkt[ARP].hwsrc == '10:ae:60:00:4d:f3': # Elements
print "Pushed Elements"
else:
print "ARP Probe from unknown device: " + pkt[ARP].hwsrc
64.242.88.10 - - [07/Mar/2004:16:05:49 -0800] "GET /twiki/bin/edit/Main/Double_bounce_sender?topicparent=Main.ConfigurationVariables HTTP/1.1" 401 12846
64.242.88.10 - - [07/Mar/2004:16:06:51 -0800] "GET /twiki/bin/rdiff/TWiki/NewUserTemplate?rev1=1.3&rev2=1.2 HTTP/1.1" 200 4523
64.242.88.10 - - [07/Mar/2004:16:10:02 -0800] "GET /mailman/listinfo/hsdivision HTTP/1.1" 200 6291
64.242.88.10 - - [07/Mar/2004:16:11:58 -0800] "GET /twiki/bin/view/TWiki/WikiSyntax HTTP/1.1" 200 7352
64.242.88.10 - - [07/Mar/2004:16:20:55 -0800] "GET /twiki/bin/view/Main/DCCAndPostFix HTTP/1.1" 200 5253
64.242.88.10 - - [07/Mar/2004:16:23:12 -0800] "GET /twiki/bin/oops/TWiki/AppendixFileSystem?template=oopsmorem1=1.12m2=1.12 HTTP/1.1" 200 11382
64.242.88.10 - - [07/Mar/2004:16:24:16 -0800] "GET /twiki/bin/view/Main/PeterThoeny HTTP/1.1" 200 4924
64.242.88.10 - - [07/Mar/2004:16:29:16 -0800] "GET /twiki/bin/edit/Main/Header_checks?topicparent=Main.ConfigurationVariables HTTP/1.1" 401 12851
64.242.88.10 - - [07/Mar/2004:16:30:29 -0800
window.JwtAjax = window.JwtAjax || {
/*
* Utils..
*/
getURLParameter: function(name) {
return decodeURIComponent((new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exec(location.search) ||
[null, ''])[1].replace(/\+/g, '%20')) || null;
},
@eob
eob / example.js
Created March 3, 2017 23:16
Including External Javascript Libraries in Cloudstitch
/*
* In the Javascript part of your widget.. find the afterRender hook.
*/
module.exports.afterRender = function(elem, data) {
/*
* Now we manually create a SCRIPT tag
*/
var script = document.createElement('script');
script.type = 'text/javascript';

Keybase proof

I hereby claim:

To claim this, I am signing this object:

cloudstitch.get(username, appname, (data) -> callback(data))