WHOA THERE probably go look at this first: https://nytpu.com/gemlog/2021-04-15.gmi seriously it's so good
Setting up to Flash
- Are you running linux? if not, go get a Linux VM. Ubuntu 20.10 worked for me.
- follow the instructions here: https://github.com/Thore-Krug/Flash-CHIP it be very good yes
Fresh Flash First Steps
You need gateway 3(mgl03) connected to MiHome. And also ip and gateway token.
Via XiaomiGateway3 component.
You must input in the 'Open Telnet command' field(as it is without changing anything):
{"method":"set_ip_info","params":{"ssid":"\"\"","pswd":"123123 ; passwd -d admin ; echo enable > /sys/class/tty/tty/enable; telnetd"}}
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Text; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using System.Net.WebSockets; | |
using UnityEngine; |
import preact from 'preact'; | |
import PropTypes from 'prop-types'; | |
// installs global prop type checking for app preact components | |
preact.options.vnode = vnode => { | |
let Component = vnode.nodeName; | |
if (Component.propTypes) { | |
PropTypes.checkPropTypes( | |
Component.propTypes, | |
vnode.attributes |
#!/bin/sh /etc/rc.common | |
START=99 | |
USE_PROCD=1 | |
start_service() { | |
procd_open_instance "frpc" | |
procd_set_param command /root/frp/frpc -c /root/frp/frpc.ini | |
procd_set_param stdout 1 | |
procd_set_param stderr 1 |
const echarts = require("echarts"); | |
const Canvas = require('canvas'); | |
const {JSDOM} = require('jsdom'); | |
const fs = require('fs'); | |
echarts.setCanvasCreator(() => { | |
return new Canvas(100, 100); | |
}); | |
const {window} = new JSDOM(); | |
global.window = window; |
This is a short post that explains how to write a high-performance matrix multiplication program on modern processors. In this tutorial I will use a single core of the Skylake-client CPU with AVX2, but the principles in this post also apply to other processors with different instruction sets (such as AVX512).
Matrix multiplication is a mathematical operation that defines the product of
Microsoft partnered with Canonical to create Bash on Ubuntu on Windows, running through a technology called the Windows Subsystem for Linux. Below are instructions on how to set up the ssh server to run automatically at boot.
- Edit the
/etc/ssh/sshd_config
file by running the commandsudo vi /etc/ssh/sshd_config
and do the following- Change
Port
to 2222 (or any other port above 1000) - Change
PasswordAuthentication
to yes. This can be changed back to no if ssh keys are setup.
- Change
- Restart the ssh server:
sudo service ssh --full-restart
- With this setup, the ssh server must be turned on every time you run Bash on Ubuntu on Windows, as by default it is off. Use this command to turn it on:
#!/usr/bin/python | |
# usage python unwxapkg.py filename | |
import sys,os | |
import struct | |
class WxapkgFile: | |
nameLen = 0 | |
name = "" |