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
@micolous
micolous / preferences
Created April 3, 2014 07:03
blocking nodejs in debian
# /etc/apt/preferences
Package: nodejs
Pin: origin ""
Pin-Priority: -1
Package: nodejs-*
Pin: origin ""
Pin-Priority: -1
@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")
@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
# 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
Process: Adium [4175]
Path: /Applications/Adium.app/Contents/MacOS/Adium
Identifier: com.adiumX.adiumX
Version: 1.4.1 (1.4.1)
Code Type: X86 (Native)
Parent Process: launchd [189]
Date/Time: 2011-04-02 15:00:12.748 +1030
OS Version: Mac OS X 10.6.7 (10J869)
Report Version: 6
@micolous
micolous / gist:972284
Created May 14, 2011 14:49
lspci/lsusb on MacBookPro6,2
$ lspci -knn
00:00.0 Host bridge [0600]: Intel Corporation Core Processor DRAM Controller [8086:0044] (rev 18)
00:01.0 PCI bridge [0604]: Intel Corporation Core Processor PCI Express x16 Root Port [8086:0045] (rev 18)
Kernel driver in use: pcieport
00:1a.0 USB Controller [0c03]: Intel Corporation 5 Series/3400 Series Chipset USB Universal Host Controller [8086:3b3b] (rev 06)
Subsystem: Intel Corporation Device [8086:7270]
00:1a.7 USB Controller [0c03]: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller [8086:3b3c] (rev 06)
Subsystem: Intel Corporation Device [8086:7270]
Kernel driver in use: ehci_hcd
00:1b.0 Audio device [0403]: Intel Corporation 5 Series/3400 Series Chipset High Definition Audio [8086:3b56] (rev 06)
$ cat ~/.config/charge/log.txt
<II> Logger: Opened log
<II> Core: ODE not found, this not an error.
<II> Core: ALUT not found, this is not an error.
<DD> CoreSDL: w: 800 h: 600
<WW> Picture: Failed to load terrain.png: file not found
<WW> Picture: Failed to load res/terrain.png: file not found
<WW> Picture: Failed to load /home/michael/.config/charge/terrain.png: file not found
<DD> DeferredTarget: Created new deferred render target (64x48)
<DD> DepthTargetArray: Created new depth target array (1024x1024)x2
@micolous
micolous / gist:1062596
Created July 3, 2011 20:56
nvidia debian-testing /etc/apt/preferences.d/nvidia
We couldn’t find that file to show.
<II> Logger: Opened log
<II> Core: ODE not found, this not an error.
<II> Core: ALUT not found, this is not an error.
<DD> CoreSDL: w: 800 h: 600
<WW> Picture: Failed to load terrain.png: file not found
<WW> Picture: Failed to load res/terrain.png: file not found
<WW> Picture: Failed to load /home/michael/.config/charge/terrain.png: file not found
<DD> DeferredTarget: Created new deferred render target (64x48)
<DD> DepthTargetArray: Created new depth target array (1024x1024)x2
<II> DeferredRenderer: Is capable of running deferred renderer!
@micolous
micolous / partytxt.asm
Created August 9, 2011 13:47
Implementation of partyhard mode in x86_16 asm.
; A text-mode (well, 640x480 16 colours VGA graphics mode hosting 80x25 text)
; party hard mode in 16-bit x86 asm. Requires a vga graphics adapter that isn't
; fussy, as we make a mess of various things and ignore other things because we
; don't care and want to save space.
;
; WARNING: IF YOU SUFFER FROM EPILEPSY OR OTHER PHOTOSENSITIVITY DISORDER, DO
; NOT RUN THIS PROGRAM OR VIEW IT'S OUTPUT, AS IT WILL BE HARMFUL TO YOUR
; HEALTH.
;
; Compile with nasm -fbin partytxt.asm -o partytxt.com