View 20160521.log
[09:53:51] *** Joins: nwx (~nwx@159.203.213.221)
[09:54:09] *** Joins: WebIRC22009 (~9a05ae4f@d154-5-174-79.bchsia.telus.net)
[09:54:54] *** Quits: Lightning (~Lightning@legitbs.net) (Client Quit)
[09:56:11] *** Quits: mightym0 (cNGfd8PwkY@atria.uberspace.de) (Ping timeout: 252 seconds)
[09:56:18] <nwx> ಠ_ಠ
[09:57:22] *** Quits: IceGuest_78 (~IceChat78@adsl196-199-89-217-196.adsl196-11.iam.net.ma) (Ping timeout: 252 seconds)
[10:01:31] *** Joins: lurcifer (~a29@2601:143:4202:ba5c:a8d0:d4ca:365e:2968)
[10:03:57] *** Quits: lurcifer (~a29@2601:143:4202:ba5c:a8d0:d4ca:365e:2968) (Client Quit)
[10:05:14] *** Quits: WebIRC31809 (~4fb6d8f9@bzq-79-182-216-249.red.bezeqint.net) (Client Quit)
[10:06:43] <TMT> how much we should watch time_sink ? :))
View 100.th
ab=ba;
that was easy
View countdown.py
import time
from Tkinter import *
import sys
END = int(sys.argv[1]) # epoch in seconds
RATE = 50
font1 = ("Helvetica", 30, 'bold')
font2 = ("Helvetica", 28)
root = Tk()
View presidents.py
### presidents study program
import os,sys,random
## data from https://raw.githubusercontent.com/m0rt1m3r/US-Presidents/master/USPresidents.csv
## ['No ', 'President Name ', 'Took office ', 'Left office ', 'Party ']
data = [['1', 'George Washington', '30/04/1789', '4/03/1797', 'Independent'], ['2', 'John Adams', '4/03/1797', '4/03/1801', 'Federalist'], ['3', 'Thomas Jefferson', '4/03/1801', '4/03/1809', 'Democratic-Republican'], ['4', 'James Madison', '4/03/1809', '4/03/1817', 'Democratic-Republican'], ['5', 'James Monroe', '4/03/1817', '4/03/1825', 'Democratic-Republican'], ['6', 'John Quincy Adams', '4/03/1825', '4/03/1829', 'Democratic-Republican'], ['7', 'Andrew Jackson', '4/03/1829', '4/03/1837', 'Democratic'], ['8', 'Martin Van Buren', '4/03/1837', '4/03/1841', 'Democratic'], ['9', 'William Henry Harrison', '4/03/1841', '4/04/1841', 'Whig'], ['10', 'John Tyler', '4/04/1841', '4/03/1845', 'Whig'], ['11', 'James K. Polk', '4/03/1845', '4/03/1849', 'Democratic'], ['12', 'Zachary Taylor', '4/03/1849', '9/0
View bin2hex.py
def bintohex(b):
b = str(b);bd = [];hv = []
while b:
if len(b) >= 4:
a = b[-4:]
b = b[:-4]
else:
a = '0'*(4-len(b)) + b
b = ''
bd.append(a)
View server.py
### simple server (i hope) for textfiles data
### trying to make it all one file for portability
### by nWx aka red_green
### gplv2 i guess
# throw all the files in the same folder as this script and then start it up
# then go to localhost:5000
####################################
# IMPORTANT: NOT FOR A PUBLIC SERVER, DIRECTORY TRAVERSAL IS NOT SANITIZED AND YOUR DATA CAN BE STOLEN
View fr24_feed.py
## test file to decode data from FlightRadar24 streaming server
## see http://redteamgreen.blogspot.com/2015/12/big-data-is-sometimes-big-pain.html
import socket
import sys, os
import time
def pad(s,l):
return ' '*(l-len(s)) + s
View fr24_hexdump.txt
$ nc 10.0.1.75 30334 | hexdump
0000000 1a 32 00 e8 01 00 00 00 7e 5d a8 ae f3 cc 64 68
0000010 1a 32 00 e8 02 00 00 00 c9 5d a8 ae f3 cc 64 68
0000020 1a 32 00 e8 02 00 00 00 d4 5d a8 ae f3 cc 64 68
0000030 1a 32 00 e8 02 00 00 00 ca 06 4c e5 c0 2d f6 3f
0000040 1a 33 00 e8 02 00 00 00 df 98 c8 d1 41 93 39 70
0000050 0b 7d 8f fe 40 cc 26 1a 32 00 e8 03 00 00 00 51
0000060 5d a8 ae f3 cc 64 68 1a 32 00 e8 04 00 00 00 8c
0000070 5d a9 5d 9d 8a b4 06 1a 33 00 e8 07 00 00 00 de
0000080 8d a8 ae f3 58 af 77 22 e3 29 64 c0 52 a4 1a 32
View findfiles.py
import sqlite3
import subprocess
import os
import pprint
import shutil
## required the directory 'data' to exist locally
## put in full file type to scan for (find it with typecount.py) and optional suffix to add
SCAN = 'gzip compressed data'
View count.mbl
.. @0 .. @1 .. @2 .. @3 .. @4 .. @5 .. @6 .. @7 .. @8 .. @9 .. @A .. @B .. @C .. @D .. @E .. @F .. @G .. @H .. @I .. @J
.. 00 .. 00 .. 00 .. 00 .. 00 .. 00 .. 00 .. 00 .. 00 .. 00 .. 00 .. 00 .. 00 .. 00 .. 00 .. 00 .. 00 .. 00 .. 00 .. 00
.. Eh un Eh un Eh un Eh un Eh un Eh un Eh un Eh un Eh un Eh un Eh un Eh un Eh un Eh un Eh un Eh un Eh un Eh un Eh un Eh un
.. ++ \\ &7 \\ &7 \\ &7 \\ &7 \\ &7 \\ &7 \\ &7 \\ &7 \\ &7 \\ &7 \\ &7 \\ &7 \\ &7 \\ &7 \\ &7 \\ &7 \\ &7 \\ &7 \\ &7 \/
.. &7 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..
.. /\ &8 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..
.. .. @0 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..
.. .. .. /\ &8 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..
.. .. // .. @1 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .