Skip to content

Instantly share code, notes, and snippets.

View PyYoshi's full-sized avatar
🌍
Working from The World

MISAWA Yoshihiro PyYoshi

🌍
Working from The World
View GitHub Profile
@PyYoshi
PyYoshi / README.md
Last active January 22, 2026 09:14
jet_decrypt.py - Codeship Jet CLI Alternative

jet_decrypt.py - Codeship Jet CLI Alternative

A standalone Python script to decrypt files encrypted with Codeship's jet encrypt command, without requiring Docker.

Background

Codeship's jet CLI requires Docker to run, but recent Docker Engine API changes have broken compatibility. Additionally, Codeship is reaching end-of-life on January 31, 2026. This script provides a Docker-free alternative for decrypting your encrypted environment files.

Supported Format

svg-to-png

A bash script to convert SVG files to high-resolution PNG images using headless Chrome.

Features

  • High-Fidelity Conversion: Uses Chrome's rendering engine for accurate SVG rendering
  • Automatic viewBox Addition: Automatically adds viewBox attribute if missing
  • Batch Processing: Convert multiple SVG files at once
  • Flexible Scaling: Control output resolution with scale factor
# WLMOUSE MIAO 8K RECEIVER
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ATTR{idVendor}=="36a7", ATTR{idProduct}=="a866", MODE="0666"
KERNEL=="hidraw*", ATTRS{idVendor}=="36a7", ATTRS{idProduct}=="a866", MODE="0666"
# WLMOUSE MIAO
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ATTR{idVendor}=="36a7", ATTR{idProduct}=="a867", MODE="0666"
KERNEL=="hidraw*", ATTRS{idVendor}=="36a7", ATTRS{idProduct}=="a867", MODE="0666"
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Macropad EEPROM キーコード変換ツール</title>
<style>
body {
font-family: Arial, sans-serif;
max-width: 1200px;

Claude Desktop v0.9.4 for Windows を Linuxで使えるようにするためのパッチ (メモ)

TitleBarにClaudeのメニューを表示する

File: app.asar.contents/.vite/renderer/main_window/assets/MainWindowPage-Ber3pIf8.js

if(!T&&e)return null;
@PyYoshi
PyYoshi / bench.txt
Created June 12, 2024 06:16
grpc_bench results
-----------------------------------------------------------------------------------------------------------------------------------------
| name | req/s | avg. latency | 90 % in | 95 % in | 99 % in | avg. cpu | avg. memory |
-----------------------------------------------------------------------------------------------------------------------------------------
| rust_tonic_st | 135382 | 7.35 ms | 7.70 ms | 7.85 ms | 8.20 ms | 102.64% | 10.8 MiB |
| rust_tonic_mt | 132125 | 4.78 ms | 4.71 ms | 7.73 ms | 60.97 ms | 292.93% | 26.01 MiB |
| go_vtgrpc | 130477 | 5.27 ms | 7.58 ms | 11.60 ms | 56.48 ms | 426.83% | 31.52 MiB |
| go_grpc | 130185 | 5.49 ms | 8.97 ms | 14.64 ms | 54.79 ms | 499.59% | 27.77 MiB |
| rust_grpcio | 129512 | 5.23 ms |
@PyYoshi
PyYoshi / Dockerfile
Last active July 27, 2025 05:26
Ubuntu 24.04 で mozc-ut (fcitx5-mozc) をビルドする
FROM ubuntu:noble-20240429
COPY ubuntu.sources /etc/apt/sources.list.d/ubuntu.sources
RUN \
apt-get update \
&& apt-get install -y \
vim \
apt-src \
ruby \
@PyYoshi
PyYoshi / test.sql
Last active August 16, 2023 04:19
MySQL JSON型のINDEX検証
CREATE TABLE `test_json_tbl` (
`id` bigint unsigned NOT NULL AUTO_INCREMENT,
`columns` json DEFAULT (_utf8mb4'[]'),
`name` text COLLATE utf8mb4_general_ci,
`selections` json DEFAULT (_utf8mb4'[]'),
PRIMARY KEY (`id`),
KEY `idx_columns1` ((cast(json_extract(`columns`,_utf8mb4'$[*].value') as char(512) array))),
KEY `idx_columns2` ((cast(json_extract(`columns`,_utf8mb4'$[*]._id') as char(64) array))),
KEY `idx_selections1` ((cast(json_extract(`selections`,_utf8mb4'$[*].value[*]') as char(512) array))),
KEY `idx_selections2` ((cast(json_extract(`selections`,_utf8mb4'$[*]._id') as char(64) array))),
@PyYoshi
PyYoshi / README.md
Last active November 26, 2020 09:29
WXR-2533DHP/WXR-2533DHP2用ファームウェアを展開するためのツール(ストリーミング処理を行っていないのでファイルサイズ分メモリを消費します)
$ go build -o firmware-extractor

$ ./firmware-extractor -h
Usage of firmware-extractor:
  -f string
        WXR-2533DHPのファームウェアファイルを指定してください

$ ./firmware-extractor -f ./wxr_2533dhp2_jp_146
Input:
@PyYoshi
PyYoshi / gist:d4b48a0b186bea7ee4ffd00e0933da7f
Created May 19, 2020 00:48
setup helm-kubeval for github actions
- name: Setup helm-kubeval
env:
KUBEVAL_VERSION: 0.15.0
run: |
curl -L "https://github.com/instrumenta/kubeval/releases/download/$KUBEVAL_VERSION/kubeval-linux-amd64.tar.gz" -o /tmp/kubeval-linux-amd64.tar.gz
tar xvf /tmp/kubeval-linux-amd64.tar.gz -C /tmp
chmod +x /tmp/kubeval
mv /tmp/kubeval /usr/local/bin/
kubeval --version
helm plugin install https://github.com/instrumenta/helm-kubeval