Skip to content

Instantly share code, notes, and snippets.

View tsukumijima's full-sized avatar
📺
DTV

tsukumi tsukumijima

📺
DTV
View GitHub Profile
#!/usr/bin/env bash
# set -e: exit on command failure
# set -u: error on using undefined variables
# set -o pipefail: fail a pipeline if any command within it fails
set -euo pipefail
# ---------------------------------------------------------------------------
# CLI script that updates or reads a value from a JSON file using jq.
# By default, it targets /Applications/Cursor.app/Contents/Resources/app/product.json,
@ngxson
ngxson / FAQ.md
Last active August 5, 2025 17:29
convert ARM NEON to WASM SIMD prompt

Why did you do this?

Relax, I only have one Sunday to work on idea, literally my weekend project. So I tried Deepseek to see if it can help. Surprisingly, it works and it saves me another weekend...

What is your setup?

Just chat.deepseek.com (cost = free) with prompts adapted from this gist.

Does it work in one-shot or I have to prompt it multiple times?

"""
MIT License
Copyright (c) 2024 tuna2134
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
@potato4d
potato4d / description.md
Created November 20, 2024 07:32
Whisper + Resemblyzer を使った音声データの書き起こし

Open AI で出力したものを手直ししたものなので荒はあるかも

@joeblackwaslike
joeblackwaslike / How-to-Python-in-Cursor.md
Last active June 13, 2026 21:01
How to use python with the Cursor IDE

How to use python with the Cursor AI IDE

Cursor.app has a critical vulnerability that should be taken seriously!

Please see my post below on this as sooon as possible! https://gist.github.com/joeblackwaslike/752b26ce92e3699084e1ecfc790f74b2?permalink_comment_id=5716065#gistcomment-5716065

Steps to patch latest cursor

These instructions should work with the latest versions of cursor which requires a much different strategy than the older versions where you could simply point cursor to the MS extension marketplace and call it a day.

Version details

@miaucl
miaucl / RootedAndroidAVD.md
Last active September 12, 2026 16:33
Rooted Android AVD for API reverse-engineering

Preparation

Set up all tools we need.

Install Android Studio

Make sure to use custom installation and add platform-tools as well. Add following to your path (depending on your OS)

@yyya-nico
yyya-nico / README.md
Last active November 7, 2025 09:55
KonomiTVを見るm3uファイルを生成するNode.jsのスクリプト

KonomiTVを見るm3uファイルを生成するNode.jsのスクリプト

VLC メディアプレイヤー等の任意のプレイヤーで簡単にKonomiTVを選局できるプレイリストファイルを生成します。

image

使い方

  1. スクリプトを実行します。

node makeKonomitvM3u.mjs

@mizchi
mizchi / あなたのパフォーマンスを倍にする Frontend Ops はいかがですか.md
Last active August 12, 2026 08:19
あなたのパフォーマンスを倍にする Frontend Ops の傭兵はいかがですか

あなたのプロジェクトに Frontend Ops を。

現状

  • Full Plan: 1ヶ月 120万
    • 秘密保持契約を行い、ソースコードを分析し、改善を行います
    • 現在受付可能なのは、1月以降です
    • 調査費用は50万~になります
  • Lightweight Plan: 外部計測のみ 50万
  • 秘密保持契約抜きで外部からの監視を行います
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#--- description
# Using WebRTC Voice Activity Detector (VAD) model,
# extract the periods of time a person is speaking
# from the audio file and calculate the percentage.
#--- reference
# https://webrtc.org/
# https://github.com/wiseman/py-webrtcvad/tree/master
@Calvin-Xu
Calvin-Xu / furigana.py
Last active July 8, 2026 03:14
Generating reading pairs / furigana string
# /// script
# requires-python = ">=3.11"
# dependencies = []
# ///
from __future__ import annotations
from dataclasses import dataclass
from functools import lru_cache
from typing import Dict, List, Mapping, Tuple