Skip to content

Instantly share code, notes, and snippets.

@likeablob
likeablob / running-debian-on-goke-gk710x-devices-chroot.md
Last active March 12, 2022 22:13
Running Debian on Goke GK710x devices (chroot)

WIP

Prerequisites

  • A Goke GK710x-based device(uname -r === 3.4.43-gk)
  • Ubuntu 18.04 as a build environment

Set up the toolchain

  • Install crosstool-ng
$ wget http://crosstool-ng.org/download/crosstool-ng/crosstool-ng-1.24.0.tar.xz
$ tar xvf http://crosstool-ng.org/download/crosstool-ng/crosstool-ng-1.24.0.tar.xz
@likeablob
likeablob / opizp2_armbian_setup.md
Last active October 12, 2019 09:48
Orange Pi Zero +2 (H3/H5) Armbian セットアップメモ

Orange Pi Zero +2 (H3/H5) Armbian セットアップメモ

$ 7z x Armbian_5.90_Orangepizeroplus2-h3_Ubuntu_bionic_next_4.19.57.7z
$ sudo dd if=./Armbian_5.90_Orangepizeroplus2-h3_Ubuntu_bionic_next_4.19.57.img of=/dev/mmcblk0 bs=1M
  • microUSBで接続するとg_serialなシリアルデバイス/dev/ttyACM*として認識される
@likeablob
likeablob / README.md
Last active October 26, 2019 05:50
Implement Capacitive Touch Sensor (C-T Method) with Digispark

Capactive Touch Sensor with Digispark

$ pio init -b digispark-tiny

IMAG000

@likeablob
likeablob / kicad-fusionpcb-pcba-notes-ja.md
Last active January 4, 2024 08:11
KiCadでFusionPCBのPCBA(部品実装)を利用するメモ

KiCadでFusionPCBのPCBA(部品実装)を利用するメモ

確認環境

  • Ubuntu 18.04 (bionic)
  • KiCad 5.0.1

注文に必要なもの

  • 実装図
  • ピック&プレースファイル
  • BOM(部品表)
@likeablob
likeablob / hacking-f18-smartwatch.md
Last active January 22, 2020 16:01
Hacking "No.1"'s F18 Smartwatch

ISP

  • There is an ISP port under the LCD module.
  • From left to right, VCC SWCLK SWDIO GND.

f18_internal_1

Flashing via BMP

# Unlock
arm-none-eabi-gdb --quiet -ex "target extended-remote /dev/ttyACM0" -ex "monitor connect_srst enable" -ex "set non-stop on" -ex "monitor swdp_scan" -ex "att 2" -ex "mon erase_mass"
@likeablob
likeablob / 01-yet-another-minicap-python3-client.md
Last active May 8, 2024 08:54
A simple minicap client with python3

minicap-python3-client

minicap installation

Plan A: Use minicap-prebuilt

$ npm init -y
$ npm i -S minicap-prebuilt
$ ls node_modules/minicap-prebuilt/prebuilt/
@likeablob
likeablob / how_to_root_sharp_hr01_ja.md
Last active December 3, 2021 17:10
home 5g HR01 root化手順

保証外であり文鎮化の危険性もあります。くれぐれも自己責任で。

HR01のroot化(あるいはadbの有効化)

  • 使用バージョン
システムバージョン:
01.00.00
ソフトウェアバージョン:
38JP_0_280
@likeablob
likeablob / get_chip_id.cpp
Created February 14, 2022 14:14
ESP32 ESP.getChipId() alternative
#include <Esp.h>
#include <byteswap.h>
// Get the lower 3 bytes of 6 byte MAC
// aa:bb:cc:dd:ee:ff -> dd:ee:ff
// (3 byte shift, byte-swap and 1 byte shift)
uint32_t partialMac = __bswap_32(ESP.getEfuseMac() >> 24) >> 8;
String clientId = String("eee-") + String(partialMac, HEX);
uint32_t getChipId(){
@likeablob
likeablob / 01_README.md
Last active March 7, 2022 13:04
Color combinations in hex (Two-tone, Tri-tone, Quad-tone palettes)

The data scraped from 80 Eye-Catching Color Combinations For 2021!.

I don't own anything on this data.

copy($$("h3")
     .map(v => v.textContent)
     .map(text => ({text, colors: [...text.matchAll(/#[0-9A-F]{6}/g)].map(m => m[0])}))
     .filter(v => v.colors.length))