curl -sSL https://gist.githubusercontent.com/ttimasdf/ef739670ac5d627981c5695adf4c8f98/raw/autossh@host1 | \
sudo tee /etc/default/autossh@example
curl -sSL https://gist.githubusercontent.com/ttimasdf/ef739670ac5d627981c5695adf4c8f98/raw/[email protected] | \
sudo tee /etc/systemd/system/[email protected]
sudo useradd -g nogroup -s /bin/false -m tunnel
sudo -u tunnel mkdir -p ~tunnel/.ssh # and copy your private key here
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
// https://github.com/tanakamasayuki/ESP32LitePack/blob/master/examples/Quick/M5Stack/Core/M5AtomLite/M5AtomLite.ino | |
// https://github.com/tanakamasayuki/ESP32LitePack/blob/master/examples/Quick/M5Stack/Core/M5StickC/M5StickC.ino | |
//#include <M5Atom.h> // http://librarymanager/All#M5Atom https://github.com/m5stack/M5Atom | |
#include <FastLED.h> // http://librarymanager/All#FastLED https://github.com/FastLED/FastLED | |
const int NUM_LEDS = 120+60; | |
static CRGB leds[NUM_LEDS]; | |
#define ATOM_LITE 1 | |
#define STICK_C 2 |
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
//#include <M5Atom.h> // http://librarymanager/All#M5Atom https://github.com/m5stack/M5Atom | |
#include <FastLED.h> // http://librarymanager/All#FastLED https://github.com/FastLED/FastLED | |
const int NUM_LEDS = 120; | |
const int LED_PIN = 26; | |
static CRGB leds[NUM_LEDS]; | |
void setup() { | |
// 初期化 | |
//M5.begin(true, false, false); // (Serial, I2C, NeoPixel) |
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
# | |
# Automatically generated file; DO NOT EDIT. | |
# Linux/arm64 4.9.119 Kernel Configuration | |
# | |
CONFIG_ARM64=y |
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
// QuaStationのシリアル通信のコネクタにいつものM5のGROVEケーブルがぴったり。 | |
// GROVEケーブルのツメを持ち上げて赤と黒を抜く、赤のところに黒をいれる。赤は入れないでテープで絶縁 | |
// 改造したほうをQuaに指して、反対側はそのままM5StickCに。 | |
// screen `ls -1 /dev/cu.usbserial-*` 115200 | |
// https://lang-ship.com/blog/work/m5stickc-uartserial/ | |
#include <M5StickC.h> | |
#define LED_BUILTIN 10 | |
void setup() { |
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
# | |
# Automatically generated file; DO NOT EDIT. | |
# Linux/arm64 4.9.119 Kernel Configuration | |
# | |
CONFIG_ARM64=y | |
CONFIG_64BIT=y | |
CONFIG_ARCH_PHYS_ADDR_T_64BIT=y | |
CONFIG_MMU=y | |
CONFIG_DEBUG_RODATA=y | |
CONFIG_ARM64_PAGE_SHIFT=12 |
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
goru | |
dd if=/dev/zero of=/dev/block/mmcblk0 seek=86314 bs=512 count=30666 //EMMCのカーネル部分のゼロ埋め | |
dd if=/dev/zero of=/dev/block/mmcblk0 seek=6488576 bs=1 count=62714 //EMMCのdtb部分のゼロ埋め | |
dd if=/mnt/usb/Image of=/dev/block/mmcblk0 seek=86314 bs=512 //EMMCへのカーネル書き込み | |
dd if=/mnt/usb/rtd-1295-giraffe-2gb-tee.dtb of=/dev/block/mmcblk0 seek=6488576 bs=1 //EMMCへのdtb書き込み |
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 'package:flutter/material.dart'; | |
void main() { | |
runApp(MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( |
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
/** | |
* 3Dプリンタタイマー | |
* 1. OctoPrintAPIから残り時間を取得して表示 | |
* 2. deepsleepで電池節約 | |
* 3. プリントが終わったら音と光でお知らせ | |
*/ | |
#include "time.h" | |
#include <M5StickC.h> | |
#include <WiFi.h> | |
#include <WiFiMulti.h> |
- OctoPi - microsd
- https://octoprint.org/download/
- octopi-buster-lite-0.17.0.zip
- balenaEtcher.app
- WiFi
- https://qiita.com/nori-dev-akg/items/38c2dfb108edb0d73908
- boot/wpa_supplicant.conf
country=JP