Skip to content

Instantly share code, notes, and snippets.

View terbo's full-sized avatar
💭
everybody must get annointed

CB terbo

💭
everybody must get annointed
View GitHub Profile
@terbo
terbo / pos.py
Last active December 28, 2015 09:41
TextBlob Parts of Speech Tagger with Penn Treebank Tag Explanations - CLI
#!/usr/bin/python
# simple cli pos tagger for short sentences
# usage: pos.py some sort of sentance.
# or: echo some sentance | pos.py
#
# takes some time to load, but may
# move on to use opennlp in a server role.
import sys, fileinput
@terbo
terbo / csh.cshrc
Last active January 29, 2016 12:31
test -d ~/.history/ || mkdir ~/.history
test -d ~/.vim/undodir || mkdir -p ~/.vim/undodir
set prompt = "%U%m%u:%B%~%b%# "
set rprompt = "[%j] %P"
set history = (10000)
set tt = $tty:s@pts/@@
set histfile = "/root/.history/history.$tt"
set savehist = (10001 merge)
set tperiod=5
set ts=2
set sw=2
set number
set expandtab
set undofile
set undodir=~/.vim/undodir
set modeline
syn on
set ai
@terbo
terbo / wlansniff-pcapy.py
Created January 31, 2016 00:51
View wireless probes with pcapy/scapy/tshark for testing/benchmark purposes
#!usr/bin/env python
MAX_LEN = 1514 # max size of packet to capture
PROMISCUOUS = 1 # promiscuous mode?
READ_TIMEOUT = 100 # in milliseconds
PCAP_FILTER = '' # empty => get everything (or we could use a BPF filter)
MAX_PKTS = -1 # number of packets to capture; -1 => no limit
import pcapy, impacket, binascii
import time, platform
@terbo
terbo / apls
Last active January 5, 2022 11:20
list wireless clients connected to hostapd access point
#!/usr/bin/python
#
# read /var/run/hostapd for interfaces to poll
# read process list to find list of running hostapds (or get from hostapd_cli)
# get mac address, connected time, transmitted packets
# read arp table
# match arp address to ip address
# print matches
# rinse repeat
@terbo
terbo / .block
Last active November 19, 2016 06:21
bar chart test
license: mit
border: yes
scrolling: yes
@terbo
terbo / .block
Last active November 19, 2016 05:48
fresh block
license: mit
@terbo
terbo / .block
Created November 19, 2016 05:46
fresh block
license: mit
@terbo
terbo / .block
Last active November 20, 2016 20:36 — forked from emeeks/index.html
d3.touches array data on touch
license: mit
@terbo
terbo / .block
Last active November 20, 2016 20:23 — forked from bricedev/index.html
Fibonacci Spiral
license: mit