View static.py
class Foo(object):
a = 1
f = Foo()
f.a = 3
g = Foo()
print g.a, f.a, Foo.a # 1 3 1
Foo.a = 4
h = Foo()
print g.a, f.a, h.a, Foo.a # 4 3 4 4
View output
$ wine ./winedetect.exe
Running Wine 1.8.7 under Linux 4.9.0-4-amd64.
View readme.md
View convert.py
# encoding: utf-8
from bdflib import reader
import sys
reload(sys)
sys.setdefaultencoding('utf8')
with open('knxt.bdf','r') as f:
font = reader.read_bdf(f)
View nc.py
import sys
import os
import termios
import tty
from fswait import fswait
telnet_mode = False
i = 1
View gist:04537adb9ee46e60d50e2d3026f1a1f7
-------------------------------------------------------------------------------
Found the following certs:
Certificate Name: packages.toaruos.org
Domains: packages.toaruos.org
Expiry Date: 2017-11-13 07:54:00+00:00 (VALID: 89 days)
Certificate Path: /etc/letsencrypt/live/packages.toaruos.org/fullchain.pem
Private Key Path: /etc/letsencrypt/live/packages.toaruos.org/privkey.pem
Certificate Name: www.toaruos.org
Domains: toaruos.org,www.toaruos.org
Expiry Date: 2017-11-13 00:24:00+00:00 (VALID: 89 days)
View test.sh
set -v
qemu-system-x86_64 -cdrom toaruos.iso -m 1G -M accel=kvm:tcg -soundhw ac97 -vnc :0 &
QEMU_PID=$!
sleep 3
xvncviewer -Shared :0 &
VNC_PID=$!
View gist:6fc2b99ce0392cfc403b53c15f96e354
├─mod
│ ├─ata.ko
│ ├─debug_shell.ko
│ ├─vmware.ko
│ ├─ataold.ko
│ ├─zero.ko
│ ├─xtest.ko
│ ├─ac97.ko
│ ├─vgalog.ko
│ ├─packetfs.ko
View gist:c245fc63a075544b392743b9a59d7917
Screen 0: minimum 8 x 8, current 5760 x 1080, maximum 32767 x 32767
DVI-D-0 connected primary 1920x1080+3840+0 (normal left inverted right x axis y axis) 477mm x 268mm
1920x1080 60.00*+
1680x1050 59.95
1440x900 59.89
1280x1024 75.02 60.02
1280x960 60.00
1280x800 59.81
1280x720 60.00
1152x864 75.00
View gist:d78644c37fb98d6afab5604ae31553d6
./libpython3.6m.so: undefined reference to `pthread_cond_signal'
./libpython3.6m.so: undefined reference to `pthread_getspecific'
./libpython3.6m.so: undefined reference to `pthread_key_delete'
./libpython3.6m.so: undefined reference to `pthread_detach'
./libpython3.6m.so: undefined reference to `pthread_key_create'
./libpython3.6m.so: undefined reference to `pthread_cond_init'
./libpython3.6m.so: undefined reference to `pthread_mutex_unlock'
./libpython3.6m.so: undefined reference to `pthread_self'
./libpython3.6m.so: undefined reference to `pthread_mutex_destroy'
./libpython3.6m.so: undefined reference to `pthread_mutex_lock'