docker-compose.yaml
version: "3"
services:
streamr-miner:
restart: always
image: streamr/broker-node:latest
container_name: streamr
init: true
privileged: true
import time | |
import board | |
import neopixel_write | |
import digitalio | |
class LED: | |
def __init__(self, pin): | |
self.pin = digitalio.DigitalInOut(pin) | |
self.pin.direction = digitalio.Direction.OUTPUT | |
self.ts = self.ms |
docker-compose.yaml
version: "3"
services:
streamr-miner:
restart: always
image: streamr/broker-node:latest
container_name: streamr
init: true
privileged: true
import os, sys | |
import datetime | |
import re | |
import json | |
import time | |
from math import radians, cos, sin, asin, sqrt, log10, pow, pi | |
from numpy import random | |
import concurrent |
#!/bin/env python | |
# -*- coding: UTF-8 -*- | |
import os, sys, re | |
import requests | |
import subprocess | |
''' | |
## 使用方法 | |
from PYKB import * | |
keyboard = Keyboard() | |
___ = TRANSPARENT | |
BOOT = BOOTLOADER | |
L1 = LAYER_TAP(1) | |
L2D = LAYER_TAP(2, D) |
Ubuntu 16.04
/etc/systemd/system/certbot.service
[Unit]
Description=Let's Encrypt renewal
[Service]
Type=oneshot
ExecStart=/usr/bin/certbot renew --quiet --agree-tos
# ubuntu 14.04
sudo apt install -y build-essential libssl-dev zlib1g-dev libpam0g-dev
./configure --prefix=/usr --sysconfdir=/etc/ssh --with-pam
make
sudo make install
Note: don't worry, configuration files under /etc/ssh
will not be overwritten .
// https://tools.ietf.org/html/rfc4648 | |
// https://en.wikipedia.org/wiki/Base32 | |
const char base32_tab[32] = "0123456789ABCDEFGHIJKLMNOPQRSTUV"; | |
int bin2base32hex(uint8_t *buf, int len, char *base32, bool pad) | |
{ | |
int i, j, k, cnt = 0; | |
uint8_t val = 0; | |
int padnum; | |
padnum = 8-((len*8+4)/5)%8; |
diff --git a/include/components.h b/include/components.h | |
index 4113a869..57c0c026 100644 | |
--- a/include/components.h | |
+++ b/include/components.h | |
@@ -63,8 +63,8 @@ | |
#ifdef RT_USING_DFS_YAFFS2 | |
#include <dfs_yaffs2.h> | |
#endif | |
-#ifdef RT_USING_DFS_ROMFS | |
-#include <dfs_romfs.h> |