Skip to content

Instantly share code, notes, and snippets.

View psy0rz's full-sized avatar

DatuX psy0rz

View GitHub Profile
#!/usr/bin/env python2.7
#
# Example program using irclib.py.
#
# This program is free without restrictions; do anything you like with
# it.
#
# Joel Rosdahl <joel@rosdahl.net>
import irclib
[root@cursus ~]# cat raad
#!/bin/bash
(( GETAL= $RANDOM % 10 ))
while true; do
echo -n "Raad het getal onder te 10: "
read RAAD
if [ $GETAL -gt $RAAD ]; then
echo "Mijn getal is groter"
#!/bin/bash
while true; do
for BLA in *jpg; do
if ! [ -e $BLA.txt ]; then
echo "Processing $BLA ..."
tesseract $BLA $BLA -l nld
fi
done
echo sleeping...
Sep 4 03:21:47 lab1 logger: buffer full
Sep 4 03:21:47 lab1 logger: 524
Sep 4 03:21:47 lab1 logger: 92
Sep 4 03:21:47 lab1 logger: 496
Sep 4 03:21:47 lab1 logger: 108
Sep 4 03:21:47 lab1 logger: 500
Sep 4 03:21:47 lab1 logger: 104
Sep 4 03:21:47 lab1 logger: 492
Sep 4 03:21:47 lab1 logger: 128
Sep 4 03:21:47 lab1 logger: 476
abled)
ACPI: LAPIC (acpi_id[0x02] lapic_id[0x02] enabled)
ACPI: LAPIC (acpi_id[0x03] lapic_id[0x04] enabled)
ACPI: LAPIC (acpi_id[0x04] lapic_id[0x06] enabled)
ACPI: LAPIC_NMI (acpi_id[0xff] high edge lint[0x1])
ACPI: IOAPIC (id[0x02] address[0xfec00000] gsi_base[0])
IOAPIC[0]: apic_id 2, version 32, address 0xfec00000, GSI 0-23
ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
@psy0rz
psy0rz / gist:3641924
Created September 5, 2012 18:23
werkende bak jp
fw
description: Desktop Computer
product: H67H2-I (To be filled by O.E.M.)
vendor: ECS
version: 1.1
serial: 00000000
width: 32 bits
capabilities: smbios-2.6 dmi-2.6 smp-1.4 smp
configuration: boot=normal chassis=desktop cpus=4 family=To be filled by O.E.M. sku=To be filled by O.E.M. uuid=EB842F00-3571-11E0-B93F-1078D2DB6BFD
*-core
@psy0rz
psy0rz / gist:3641999
Created September 5, 2012 18:26
crashende bak dh
dh
description: Desktop Computer
product: H61H2-I2 (To be filled by O.E.M.)
vendor: ECS
version: 1.0
serial: 00000000
width: 32 bits
capabilities: smbios-2.7 dmi-2.7 smp-1.4 smp
configuration: boot=normal chassis=desktop cpus=4 family=To be filled by O.E.M. sku=To be filled by O.E.M. uuid=00020003-0004-0005-0006-000700080009
*-core
[Syn-3] root@darkstar.example.net ~# lsmod |grep r81
[Syn-3] root@darkstar.example.net ~# modprobe r8169
[Syn-3] root@darkstar.example.net ~# ifconfi
[Syn-3] root@darkstar.example.net ~# ifconfig eth2 10.73.57.123
[Syn-3] root@darkstar.example.net ~# ping 10.73.57.1
PING 10.73.57.1 (10.73.57.1) 56(84) bytes of data.
64 bytes from 10.73.57.1: icmp_seq=1 ttl=64 time=1.13 ms
^C
--- 10.73.57.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
drpsy@xs8:~/mosh-1.2.2/protobuf-2.4.1$ ps faux|grep ' nc '
drpsy 3186 0.0 0.0 8088 848 pts/167 S+ 15:04 0:00 | \_ grep nc
174303 9811 0.0 0.0 12232 0 ? Ss May08 0:00 nc www.abigail.be 22
174303 9822 0.0 0.0 12232 0 ? Ss May08 0:00 nc www.abigail.be 22
174303 23422 0.0 0.0 12232 0 ? Ss May09 0:00 nc www.abigail.be 22
25409 29703 0.0 0.0 12232 0 ? Ss May30 0:00 nc -w 15 smtp.xs4all.nl 25
25409 29704 0.0 0.0 12232 0 ? Ss May30 0:00 nc -w 15 smtp.xs4all.nl 25
25409 29707 0.0 0.0 12232 0 ? Ss May30 0:00 nc -w 15 smtp.xs4all.nl 25
25409 26886 0.0 0.0 12232 0 ? Ss Jun01 0:00 nc -w 15 smtp.xs4all.nl 25
25409 26894 0.0 0.0 12232 0 ? Ss Jun01 0:00 nc -w 15 smtp.xs4all.nl 25
[Syn-3] root@syn3test.blaat1299170507.nl ~# LC_ALL=en_US.utf8 ./usersync4 ; cat /tmp/e; file /tmp/o
UTF-8
('en_US', 'UTF-8')
('en_US', 'UTF-8')
aap
/tmp/o: UTF-8 Unicode text
[Syn-3] root@syn3test.blaat1299170507.nl ~# cat /tmp/o
Renée Claus
[Syn-3] root@syn3test.blaat1299170507.nl ~# ./usersync4 ; cat /tmp/e; cat /tmp/o
UTF-8