Skip to content

Instantly share code, notes, and snippets.

View CypherpunkSamurai's full-sized avatar
😶
Currently Busy 🌻🐢

Cypherpunk Samurai CypherpunkSamurai

😶
Currently Busy 🌻🐢
View GitHub Profile
@CypherpunkSamurai
CypherpunkSamurai / zig-termux-gui.md
Created November 10, 2025 20:25 — forked from lupyuen/zig-termux-gui.md
Install Termux GUI Plugin

Install Termux GUI Plugin

Let's install the Termux GUI Plugin, so we can build Android GUI Apps in C and Python... On Android!

Caution: We're installing Experimental Unsigned APKs, be careful!

Install Termux APK and Termux GUI APK

According to the instructions, we should install Termux APK and Termux GUI APK generated by GitHub Actions...

@CypherpunkSamurai
CypherpunkSamurai / export_to_sheets.py
Created November 7, 2025 08:15 — forked from Dminor7/export_to_sheets.py
Python pandas dataframe to google sheets [Read, Write, and Append]
import gspread_dataframe as gd
import gspread as gs
gc = gs.service_account(filename="credentials.json")
def export_to_sheets(sheet_name,df,mode='r'):
ws = gc.open("Hashnode").worksheet(sheet_name)
if(mode=='w'):
ws.clear()
gd.set_with_dataframe(worksheet=ws,dataframe=df,include_index=False,include_column_header=True,resize=True)
return True
@CypherpunkSamurai
CypherpunkSamurai / hackerman.json
Created October 21, 2025 05:00 — forked from bjarneo/hackerman.json
Hackerman Blueprint for Aether
{
"name": "Hacker",
"timestamp": 1760965387035,
"palette": {
"wallpaper": "",
"colors": [
"#0B0C16",
"#31f759",
"#4fe88f",
"#50f7d4",
@CypherpunkSamurai
CypherpunkSamurai / FeatureTokenGenerator.cs
Created October 12, 2025 21:11 — forked from ADeltaX/FeatureTokenGenerator.cs
Access LimitedAccessFeatures from UWP
//!!!!!!!!!!!!!!
//Thanks to @thebookisclosed for the code. I just rearranged in a way so you can access without having to use the registry
//HINT about compatibility: they CANNOT change feature keys otherwise existing apps would break
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
using Windows.ApplicationModel;
@CypherpunkSamurai
CypherpunkSamurai / 00-New setup.md
Created September 19, 2025 16:59 — forked from cderv/00-New setup.md
New computer setup
# installed by winget
winget install PowerShell-Preview
winget install git
git config --global user.name "Christophe Dervieux"
git config --global user.email christophe.dervieux@gmail.com
winget install rstudio
winget install vscode
winget install -e R
winget install Github.GithubDesktop
Always follow the instructions in plan.md. When I say "go", find the next unmarked test in plan.md, implement the test, then implement only enough code to make that test pass.
# ROLE AND EXPERTISE
You are a senior software engineer who follows Kent Beck's Test-Driven Development (TDD) and Tidy First principles. Your purpose is to guide development following these methodologies precisely.
# CORE DEVELOPMENT PRINCIPLES
- Always follow the TDD cycle: Red → Green → Refactor
- Write the simplest failing test first
@CypherpunkSamurai
CypherpunkSamurai / portableNoxPlayer.bat
Created September 12, 2025 02:41 — forked from thewh1teagle/portableNoxPlayer.bat
download portable nox android emulator and debloat it
@echo off
setlocal enableDelayedExpansion
set "unziper=7za.exe"
if not exist "NoxPlayer" (
if not exist "!unziper!" call :downloadSevenZip
call :downloadNoxPlayer
)
call :downloadLawnChair
@CypherpunkSamurai
CypherpunkSamurai / Display_ST7701.cpp
Created September 2, 2025 15:06 — forked from fallenartist/Display_ST7701.cpp
Waveshare ESP32-S3 Touch LCD 2.1 Example
#include "Display_ST7701.h"
spi_device_handle_t SPI_handle = NULL;
esp_lcd_panel_handle_t panel_handle = NULL;
void ST7701_WriteCommand(uint8_t cmd)
{
spi_transaction_t spi_tran = {
.cmd = 0,
.addr = cmd,
.length = 0,

What is this?

This is where I'll document my research for controlling the SoundCore Liberty Air 2 Pro TWS earbuds without using the manufacturer's mobile app.

First task

The first thing I'll do, and likely the easiest, is figure out how to switch between ANC modes. These earbuds come with Active Noise Cancellation and let you switch between 3 modes: Noise Cancellation, Transparency, and Normal (no ANC applied). The two ANC modes also come with their own submodes.

  • Noise Cancellation
    • Transport
    • Indoor
    • Outdoor
  • Custom (lets you spin a slider to adjust some opaque parameter of the ANC algorithm, ignored for now)

[fit]Port Bluedroid to RTOS






by スカイストリーム せきね