Skip to content

Instantly share code, notes, and snippets.

View smitelli's full-sized avatar

Scott Smitelli smitelli

View GitHub Profile
@smitelli
smitelli / hex_dump.py
Created April 27, 2024 21:37
A teeny tiny xxd clone in a ten-line Python function
import math
import re
def hex_dump(data, cols=16):
data_len = len(data)
addr_pad = math.ceil(data_len.bit_length() / 4)
for i in range(0, data_len, cols):
paragraph = data[i:i + cols]
hex_view = paragraph.hex(' ', 1).ljust(cols * 3)
@smitelli
smitelli / ti250tool.py
Created May 31, 2022 19:51
Klein Tools TI250 image tool
# Klein Tools TI250 image tool by Scott Smitelli. Public domain.
# Requires at least Python 3.6 (developed and tested on 3.9)
# See https://www.scottsmitelli.com/articles/klein-tools-ti250-hidden-worlds
import argparse
import numpy as np
import re
import struct
from PIL import Image, ImageDraw
#!/usr/bin/env python3
import base64
import getpass
import hmac
import struct
import time
def make_hotp(secret_bytes, counter, length):
@smitelli
smitelli / pygame-fps.py
Last active June 22, 2019 12:54
Pygame is actually a lot faster than I thought it would be.
#!/usr/bin/python3
"""
Python 3.6 or above.
Cygwin: startxwin ./pygame-fps.py
"""
import numpy
import pygame
import time
@smitelli
smitelli / adblock_release_committer.sh
Created October 2, 2015 21:23
Downloads AdBlock releases and commits 'em
#!/usr/bin/bash
BASE=/cygdrive/c/Users/ssmitelli/Downloads
cd "$BASE"
wget -r -np -k http://code.getadblock.com/releases/
# Manually delete crap here
cd ~/abfc/
@smitelli
smitelli / quake-names.txt
Last active March 1, 2024 04:17
Names I have stolen/used for Quake
0.1x Engineer
0xFEEDFACE
A Flock of SQLs
Abraham Linksys
Ace of Base64
All about that base64
Amazon FartCloud
Ayn RAND()
Big Endian Pimpin'
Billy Ray Cyrix
@smitelli
smitelli / vessel.sh
Created February 18, 2015 21:53
Vessel Challenge - Awful Bash Edition
#!/bin/bash
res=$(curl -fsSL http://www.vessel.com/careers/apply.rb)
while true
do
if grep -q 'eval(' <<< "$res"
then
grep ^\s*# <<< "$res" | grep -v '/usr/bin/env'
res=$(sed s/eval/print/ <<< "$res" | ruby)
else
echo "$res"
@smitelli
smitelli / driver-isos.txt
Last active March 21, 2024 04:30
Driver CD/DVD-ROM ISOs
./802.11b Wireless LAN PCI Card (Ver. 1.0).iso
./ABIT I865-1.20M Drivers, Hardware Monitor, Manual.iso
./APC PowerChute Business Edition (8.0.1, 991-2008A).iso
./APC PowerChute Personal Edition (Ver. 3.0.2).iso
./APC PowerChute Plus (Ver .5.0.2 Windows 9x, 5.2 Windows NT, 5.1.1 J Windows NT J).iso
./APC Smart-UPS Tower, Rack-Mount User Manuals (2007, 991-0195P).iso
./APC User Documentation - Smart-UPS LCD Tower, Rack-Mount2U (991-0627B).iso
./ASRock IIZ75-10 Motherboard (Version 1.0).iso
./ASRock Intel-VIA Series IV21b Motherboard (Ver. 2.1b).iso
./ATI Catalyst Software (180-G01416-100).iso
@smitelli
smitelli / mytix-domains.txt
Created September 23, 2014 14:40
On September 22, 2014, NJ Transit's MyTix service sent an email with 3,667 addresses in the To: field. Here's a breakdown of all the domains.
2193 gmail.com
386 yahoo.com
168 hotmail.com
158 aol.com
60 me.com
52 comcast.net
49 verizon.net
39 mac.com
32 optonline.net
18 msn.com
@smitelli
smitelli / keybase.md
Created April 15, 2014 00:25
Keybase proof

Keybase proof

I hereby claim:

  • I am smitelli on github.
  • I am smitelli (https://keybase.io/smitelli) on keybase.
  • I have a public key whose fingerprint is 8574 8E2A 0116 FB73 B0F2 40BF D20E C877 57B4 AA1E

To claim this, I am signing this object: