This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import functools | |
import logging | |
import queue | |
import threading | |
from typing import Optional | |
from flask import Flask, Request, request | |
logger: logging.Logger = logging.getLogger('thread_test') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct TimeHolder_1 { | |
var time: Date? = nil // SET TO NIL, MAZAFAKA!!! | |
var isSet: Bool { | |
print("Value of the optional self.time: \(time)") | |
return time != nil | |
} | |
} | |
print("Is time set? - \(TimeHolder_1().isSet)") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ 0.000000] Linux version 5.4.110 (isa@nbook-isa) (gcc version 8.4.0 (OpenWrt GCC 8.4.0 r16530-130b65b12e)) #0 Fri Apr 16 18:37:03 2021 | |
[ 0.000000] printk: bootconsole [early0] enabled | |
[ 0.000000] CPU0 revision is: 00019750 (MIPS 74Kc) | |
[ 0.000000] MIPS: machine is Xiaomi AIoT AC2350 | |
[ 0.000000] SoC: Qualcomm Atheros QCA956X ver 1 rev 0 | |
[ 0.000000] Initrd not found or empty - disabling initrd | |
[ 0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes. | |
[ 0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes | |
[ 0.000000] Zone ranges: | |
[ 0.000000] Normal [mem 0x0000000000000000-0x0000000007ffffff] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ 0.282380] printk: console [ttyS0] enabled | |
[ 0.282380] printk: console [ttyS0] enabled | |
[ 0.291444] printk: bootconsole [early0] disabled | |
[ 0.291444] printk: bootconsole [early0] disabled | |
[ 0.307880] spi-nor spi0.0: en25qh128 (16384 Kbytes) | |
[ 0.313115] 8 fixed-partitions partitions found on MTD device spi0.0 | |
[ 0.319689] Creating 8 MTD partitions on "spi0.0": | |
[ 0.324647] 0x000000000000-0x000000030000 : "Bootloader" | |
[ 0.331026] 0x000000030000-0x000000040000 : "Nvram" | |
[ 0.336952] 0x000000050000-0x000000060000 : "Bdata" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -ur squashfs-root.orig/etc/init.d/dropbear squashfs-root.mod/etc/init.d/dropbear | |
--- squashfs-root.orig/etc/init.d/dropbear 2020-08-06 15:02:00.000000000 +0500 | |
+++ squashfs-root.mod/etc/init.d/dropbear 2021-01-08 23:20:02.055567796 +0500 | |
@@ -131,8 +131,7 @@ | |
{ | |
# 稳定版不能打开ssh服务 | |
flg_ssh=`nvram get ssh_en` | |
- channel=`/sbin/uci get /usr/share/xiaoqiang/xiaoqiang_version.version.CHANNEL` | |
- if [ "$flg_ssh" != "1" -o "$channel" = "release" ]; then | |
+ if [ "$flg_ssh" != "1" ]; then |