Download debian iso
http://cdimage.debian.org/cdimage/release/current/mipsel/iso-cd/debian-9.1.0-mipsel-netinst.iso
Download initrd & vmlinux
Download debian iso
http://cdimage.debian.org/cdimage/release/current/mipsel/iso-cd/debian-9.1.0-mipsel-netinst.iso
Download initrd & vmlinux
import _winreg as reg | |
import win32file | |
adapter_key = r'SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002BE10318}' | |
def get_device_guid(): | |
with reg.OpenKey(reg.HKEY_LOCAL_MACHINE, adapter_key) as adapters: | |
try: |
diff --git a/debian/README.Debian b/debian/README.Debian | |
new file mode 100644 | |
index 0000000..8737890 | |
--- /dev/null | |
+++ b/debian/README.Debian | |
@@ -0,0 +1,11 @@ | |
+Wkhtmltopdf without X server | |
+---------------------------- | |
+ | |
+Due to its dependency on Qt-WebKit, wkhtmltopdf requires an X11 server to |
import sys | |
import os | |
from gi.repository import Gtk, Gdk, WebKit | |
class Browser(Gtk.Window): | |
def __init__(self, *args, **kwargs): | |
super(Browser, self).__init__(*args, **kwargs) | |
$ python3 zte.py | |
DEBUG:asyncio:Using selector: EpollSelector | |
Traceback (most recent call last): | |
File "/usr/lib/python3.5/site-packages/aiohttp/client.py", line 191, in _request | |
yield from resp.start(conn, read_until_eof) | |
File "/usr/lib/python3.5/site-packages/aiohttp/client_reqrep.py", line 617, in start | |
message = yield from httpstream.read() | |
File "/usr/lib/python3.5/site-packages/aiohttp/streams.py", line 592, in read | |
result = yield from super().read() | |
File "/usr/lib/python3.5/site-packages/aiohttp/streams.py", line 447, in read |
try: | |
code | |
except RuntimeError as e: | |
print(e) | |
except DatabaseError as e: | |
reconnect() | |
print(e) | |
except Exception as e: | |
print(e) | |
exit(-1) |
#!/usr/bin/env python | |
# | |
# Vkontatke OAuth 2.0 wrapper | |
# Copyright 2011, Adil Khashtamov [[email protected]] | |
# http://khashtamov.kz | |
# | |
# | |
import logging |
require "try-catch" | |
try { | |
function() | |
error('oops') | |
end, | |
catch { | |
function(error) | |
print('caught error: ' .. error) |