An adoption of https://pypy.readthedocs.org/en/release-2.4.x/arm.html
apt install qemu-user-static
apt-get install debootstrap
# apt-get install gcc-arm-linux-gnueabi
apt install schroot
An adoption of https://pypy.readthedocs.org/en/release-2.4.x/arm.html
apt install qemu-user-static
apt-get install debootstrap
# apt-get install gcc-arm-linux-gnueabi
apt install schroot
I use winodws10 64bit, so target is x86_64
build
folderimport socket | |
import selectors | |
import sys | |
import time | |
HOST = None | |
# HOST = "localhost" # "::1" # "127.0.0.1", "None" | |
PORT = 2000 | |
BACKLOG = 5 | |
BUFSIZE = 1024 |
let https = require('https'), | |
httpProxy = require('http-proxy'), | |
fs = require('fs'); | |
var ssl = { | |
key: fs.readFileSync('/etc/letsencrypt/live/pycontract.tk-0002/privkey.pem', 'utf8'), | |
cert: fs.readFileSync('/etc/letsencrypt/live/pycontract.tk-0002/fullchain.pem', 'utf8') | |
}; | |
熱いので周波数下げるべし
ぶっちゃけIP取得まで確認できたが接続できなかった。
#!/bin/bash | |
#Script to quickly adjust the CPU clock rate of the Banana Pi M3 | |
# ____ _____ _ __ __ ____ | |
# | _ \ | __ (_) | \/ |___ \ | |
# | |_) | __ _ _ __ __ _ _ __ __ _ | |__) | | \ / | __) | | |
# | _ < / _` | '_ \ / _` | '_ \ / _` | | ___/ | | |\/| ||__ < | |
# | |_) | (_| | | | | (_| | | | | (_| | | | | | | | | |___) | | |
# |____/ \__,_|_| |_|\__,_|_| |_|\__,_| |_| |_| |_| |_|____/ | |
#Nargren, 2016.09.03. |
from socket import socket, gethostbyname, AF_INET, SOCK_STREAM | |
from threading import Thread, Lock | |
from time import sleep, time | |
def _thread(address, ports, opened, lock): | |
while True: | |
with lock: | |
try: | |
port = ports.pop() |