Skip to content

Instantly share code, notes, and snippets.

@smilbandit
smilbandit / spf-info.py
Last active September 1, 2017 19:00
This script walks the spf chain for a domain and produces a report that include rdap details for ip blocks
#!/usr/bin/env python
# Usage
# spf-info.py [domain]
import dns.resolver
import socket
from ipwhois import IPWhois
from pprint import pprint
import json
@smilbandit
smilbandit / web_pixel.py
Created August 26, 2017 04:41
Blinkt example (Python3) that lets you set a pixel via http
#!/usr/bin/env python
#
# to set pixel 4 to red full brightness
#/set/4/255/0/0/0.5
# to set all pixels to red 0.5 brightness
#/all/255/0/0/1
# to clear all pixels
#/clear
@smilbandit
smilbandit / pylon.py
Created August 26, 2017 04:32
Blinkt example that mimic Cylon eyes
#!/usr/bin/env python
import time
import blinkt
blinkt.set_clear_on_exit()
blinkt.set_brightness(0.1)
x = 0
d = 1
@smilbandit
smilbandit / .htaccess
Created May 27, 2011 05:46
Twitter API to RSS
RewriteEngine on
RewriteBase /twitter
RewriteRule ^(.*)$ twitter2rss.php [NC]