Skip to content

Instantly share code, notes, and snippets.

View psy0rz's full-sized avatar

DatuX psy0rz

View GitHub Profile
#!/usr/bin/python
# -*- coding: utf8 -*-
#(C)2012 DatuX - Released under GPL
import os
import sys
import ldap
import re
@psy0rz
psy0rz / gist:3773076
Created September 23, 2012 21:21
javascript class inheritance test
//// A "class"
//A constructor:
A=function()
{
this.x=10;
this.y=20;
console.log("A construct");
this.dingA();
};
× W09-10E
Draadgewonden weerstand
≤10W 10Ω 5% € 0,95
excl. BTW € 0,95
× CW114
ATX voeding verloopstekker
8cm 20polig 24polig € 4,09
excl. BTW € 4,09
× ZGLBB-BLAUW
Desoldeer litze (BB)
psy@fs1:~$ prtdiag -v
System Configuration: Supermicro X9SCL/X9SCM
BIOS Configuration: American Megatrends Inc. 2.0b 09/17/2012
==== Processor Sockets ====================================
Version Location Tag
-------------------------------- --------------------------
Intel(R) Core(TM) i3-3220T CPU @ 2.80GHz CPU
root@fs1:/home/psy# zpool status -D fs1
pool: fs1
state: ONLINE
scan: scrub canceled on Mon Dec 3 20:24:08 2012
config:
NAME STATE READ WRITE CKSUM
fs1 ONLINE 0 0 0
raidz2-0 ONLINE 0 0 0
c5t0d0 ONLINE 0 0 0
@psy0rz
psy0rz / gist:4430999
Created January 1, 2013 23:37
kobold vr100 version info
testlds cmd getversion
Sending getversion...
GetVersion...3 ESCs or BREAK to abort...:)
Piccolo Laser Distance Scanner
Copyright (c) 2009-2011 Neato Robotics, Inc.
All Rights Reserved
Loader V2.5.15295
CPU F2802x/c001
549,LS_A2D0,13234865,19,538,0x000000006d50318f,0x0000003c491ad533
549,LS_A2D1,13234865,522,648,0x00000001e132e672,0x0000047a9e3e1f8e
549,LS_A2D2,13234865,5,641,0x00000001590a5a37,0x0000024dda1136bf
549,LS_A2D3,13234865,5,457,0x000000013e06891e,0x000001f5191ae594
549,LS_A2D4,13234863,-4,741,0x0000000000d57509,0x000000000182d029
549,LS_A2D5,13234865,-4,761,0x0000000000e63e3f,0x0000000001ae6193
549,LS_A2D6,13234865,92,705,0x000000019d826bc1,0x0000043f76edf14b
549,LS_A2D7,13234865,85,403,0x000000013b9334e8,0x000001ed32fad580
549,LS_A2D8,13234865,0,14,0x0000000000000026,0x000000000000010c
549,LS_A2D9,13234865,1,880,0x000000028cd119e9,0x000008aefff1c043
psy@psysamsungtop:~/synapse$ gdb --args vlc -I dummy --sout "#transcode{vcodec=none,acodec=lpcm,samplerate=44100,channels=2}":display /mnt/media/mp3/*mp3
GNU gdb (Ubuntu/Linaro 7.4-2012.04-0ubuntu2.1) 7.4-2012.04
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://bugs.launchpad.net/gdb-linaro/>...
@psy0rz
psy0rz / gist:6714836
Created September 26, 2013 14:15
why are all error counters 0? the pool as a whole has checksum errors, and some disks have 'too many errors'. however there are no iostat-errors and checksum errors for indiviual disks?
[root@00-25-90-61-ad-91 ~]# uname -a
SunOS 00-25-90-61-ad-91 5.11 joyent_20130919T215407Z i86pc i386 i86pc
[root@00-25-90-61-ad-91 ~]# zpool status -v
pool: zones
state: DEGRADED
status: One or more devices is currently being resilvered. The pool will
continue to function, possibly in a degraded state.
action: Wait for the resilver to complete.
scan: resilver in progress since Thu Sep 26 12:58:32 2013
tracepath 10.70.1.1
1: 192.168.1.65 (192.168.1.65) 0.105ms pmtu 1500
1: 192.168.1.1 (192.168.1.1) asymm 2 1.556ms
2: 194.134.5.64 (194.134.5.64) 35.115ms
3: 194.134.161.142 (194.134.161.142) 34.439ms
4: PC4.cr1-asd8.nl.euro.net (194.134.161.50) 33.069ms
5: PC1.dr6-asd8.nl.euro.net (194.134.161.214) 34.063ms
6: V76.har1e-Asd-Btv.nl.euro.net (194.134.18.129) 37.535ms reached
Resume: pmtu 1500 hops 6 back 6