I hereby claim:
- I am singulared on github.
- I am singulared (https://keybase.io/singulared) on keybase.
- I have a public key ASDxSxS7kYVUvh4uwdGUrXTRYJpMBAndotgJ7TV8AgY9ogo
To claim this, I am signing this object:
import threading | |
import asyncio | |
async def task(count, stime): | |
await asyncio.sleep(stime) | |
print('%s: %s' % (threading.current_thread().name, count), flush=True) | |
def multi_event_loops(): |
import asyncio | |
from asyncio.futures import Future | |
loop = asyncio.get_event_loop() | |
async def wait_for_result(fut): | |
await asyncio.sleep(5) | |
fut.set_result('result') |
I hereby claim:
To claim this, I am signing this object:
uwsgi: | |
http: 0.0.0.0:8000 | |
wsgi-file: /data/www/flask/wsgi.py | |
callable: app | |
pidfile: uwsgi.pid | |
processes: 2 | |
master: 1 | |
workers: 2 | |
auto-procname: 1 | |
daemonize: uwsgi.log |
class Item(models.Model): | |
name = models.CharField(max_length=255) | |
def get_options(self): | |
topics = {} | |
for item_option in ItemOption.objects.select_related().all(): | |
option = item_option.option | |
topic = option.topic | |
if topic not in topics: |
from telnetlib import Telnet | |
from caesarcipher import CaesarCipher | |
tn = Telnet('54.209.5.48', 12345) | |
tn.read_until(b'psifer text: ') | |
psifer = tn.read_until(b'\n').decode().strip() | |
cipher = CaesarCipher(psifer) | |
message = cipher.cracked | |
print('Cracked:', message) | |
tn.write(message.split()[-1].encode() + b'\n') |
# From /etc/udev/rules.d/99-mali-devices.rules | |
# Graphic devices | |
KERNEL=="mali*" OWNER="root" GROUP="mali" MODE="0660" |
SYSROOT="/opt/qemu/chroot/armhf" | |
CFLAGS=$CFLAGS" -I${SYSROOT}/usr/include -I${SYSROOT}/usr/include/arm-linux-gnueabihf" | |
CXXFLAGS=$CXXFLAGS" -I${SYSROOT}/usr/include -I${SYSROOT}/usr/include/arm-linux-gnueabihf -L${SYSROOT}/usr/lib/arm-linux-gnueabihf" | |
LDFLAGS=$LDFLAGS" -L${SYSROOT}/usr/lib/arm-linux-gnueabihf" | |
export -n CFLAGS CXXFLAGS LDFLAGS | |
GYP_DEFINES="\ | |
sysroot=${SYSROOT} \ | |
werror= \ |