Skip to content

Instantly share code, notes, and snippets.

@likeablob
likeablob / prevent_parsec_auto_update_linux.md
Created January 20, 2023 10:03
Prevent parsec from being updated automatically (Linux)
$ cd ~/.parsec
$ cat appdata.json
{"entry_symbol":"wx_main","hash":"9f38d4985d409c19b8ab27b5754ca0bac1ff4c78d6df30af08bc692882b0ef4a","so_name":"parsecd-150-83c.so"}

# Pin to 150-83c for HW Decoding (VA-API)
$ sudo chattr +i appdata.json parsecd-150-83c.so
@likeablob
likeablob / run_parsec_on_ubuntu_2204.md
Created June 22, 2022 10:56
Run Parsec on Ubuntu 22.04 (Workaround)
$ wget https://builds.parsecgaming.com/package/parsec-linux.deb
$ wget http://security.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1l-1ubuntu1.5_amd64.deb

$ sudo dpkg -i libssl1.1_1.1.1l-1ubuntu1.5_amd64.deb
$ sudo dpkg -i parsec-linux.deb

$ parsecd
@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))
@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 / 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 / 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 / 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 / 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 / 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