Skip to content

Instantly share code, notes, and snippets.

View smitelli's full-sized avatar

Scott Smitelli smitelli

View GitHub Profile
@smitelli
smitelli / TLDs.js
Created August 1, 2013 04:52
All the TLDs that seemed to matter at the time
var VALID_TLDS = [
'ac','ad','ae','aero','af','ag','ai','al','am','an','ao','aq','ar','arpa','as','asia','at','au','aw','ax','az',
'ba','bb','bd','be','bf','bg','bh','bi','biz','bj','bm','bn','bo','br','bs','bt','bv','bw','by','bz','ca','cat',
'cc','cd','cf','cg','ch','ci','ck','cl','cm','cn','co','com','coop','cr','cu','cv','cw','cx','cy','cz','de',
'dj','dk','dm','do','dz','ec','edu','ee','eg','er','es','et','eu','fi','fj','fk','fm','fo','fr','ga','gb','gd',
'ge','gf','gg','gh','gi','gl','gm','gn','gov','gp','gq','gr','gs','gt','gu','gw','gy','hk','hm','hn','hr','ht',
'hu','id','ie','il','im','in','info','int','io','iq','ir','is','it','je','jm','jo','jobs','jp','ke','kg','kh',
'ki','km','kn','kp','kr','kw','ky','kz','la','lb','lc','li','lk','lr','ls','lt','lu','lv','ly','ma','mc','md',
'me','mg','mh','mil','mk','ml','mm','mn','mo','mobi','mp','mq','mr','ms','mt','mu','museum','mv','mw','mx','my',
'mz','na','name','nc','ne','net','nf
@smitelli
smitelli / _.bind.js
Last active January 2, 2016 15:38
Weirdness with Lodash's _.bind and Superagent callbacks
'use strict';
var lodash = require('lodash'),
request = require('superagent'),
TestObj = {};
function asyncRequest (callback) {
callback(null, {status : 'It works!'});
}
@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:

@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 / 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 / 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 / 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 / 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 / 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
#!/usr/bin/env python3
import base64
import getpass
import hmac
import struct
import time
def make_hotp(secret_bytes, counter, length):