Skip to content

Instantly share code, notes, and snippets.

@B0073D
B0073D / sopel_adapter.py
Last active Jan 21, 2016
Early work for Sopel Adapt integration. This could be one possible way for Adapt to be used in a 'simple' manner.
View sopel_adapter.py
import sopel.module
import sopel.formatting
# Adapt imports:
import json
from adapt.intent import IntentBuilder
from adapt.engine import IntentDeterminationEngine
def adapter(*intent_list):
View keybase.md

Keybase proof

I hereby claim:

  • I am B0073D on github.
  • I am b0073d (https://keybase.io/b0073d) on keybase.
  • I have a public key whose fingerprint is F646 4547 B960 238A 5506 0D7A 768F 049E 8055 455F

To claim this, I am signing this object:

@B0073D
B0073D / shopping_list_el.txt
Last active Dec 29, 2015
Electronics shopping list
View shopping_list_el.txt
Soldering Iron. Goot. $80
Stand. $20
Solder.$13
Desolder braid. $6
Side Cutters. $30
Coax Stripper/Crimper. $12
RG58. $1.96 per M at Jaycar 1.80 at Wattscom
@B0073D
B0073D / nmap_trace_extract.py
Created Mar 4, 2013
This piece of python will extract hops from the XML output of nmap and write it to a CSV file in a format that Gephi can use.
View nmap_trace_extract.py
import xml.etree.ElementTree as etree
tree = etree.parse('wowser.xml')
root = tree.getroot()
hosts = root.findall('host')
output_file = open('nmap_edges.csv', 'w')
output_file.truncate()
output_file.write("Source,Target\n")
for i in hosts:
View Gephi_CSV_Sample
Source,Target
111.87.3.46,4.28.172.21
4.28.172.21,4.69.152.126
4.69.152.126,4.69.153.5
4.69.153.5,4.69.132.10
4.69.132.10,4.69.137.34
4.69.137.34,4.69.144.9
4.69.144.9,4.71.136.94
4.71.136.94,203.190.251.238
203.190.251.238,203.190.250.198