Skip to content

Instantly share code, notes, and snippets.

View micolous's full-sized avatar
💭
I may be slow to respond.

micolous micolous

💭
I may be slow to respond.
View GitHub Profile
# cat /proc/cpuinfo
processor : 0
vendor_id : Geode by NSC
cpu family : 5
model : 5
model name : Geode(TM) Integrated Processor by National Semi
stepping : 2
cpu MHz : 333.282
cache size : 32 KB
fdiv_bug : no
@micolous
micolous / compressor.py
Created December 9, 2010 07:11
Transparent compression system for python (bytecode)
#!/bin/env python
# compressor. it's like upx for python.
# decompression stub. this will decompress the data and evaluate the module code stored in the docstring.
DECOMPRESS = """from marshal import loads
__doc__ = loads(__doc__.decode('bz2'))
del loads
eval(__doc__)"""
from bz2 import compress
@micolous
micolous / billion-74xx-get-pppoe-passwords.sh
Created December 1, 2010 12:15
gets pppoe passwords out of Billion 74XX ADSL2+ routers
#!/bin/sh
# The SNMP community to use. Normally this will be "public". Only need read access.
COMMUNITY="public"
# default interface
IFACE="5"
case "$2" in
"e" | "wired" | "eth" | "ethernet" | "7402vl")