Skip to content

Instantly share code, notes, and snippets.

@ctechols
ctechols / compinit.zsh
Last active September 2, 2026 04:31
Speed up zsh compinit by only checking cache once a day.
# On slow systems, checking the cached .zcompdump file to see if it must be
# regenerated adds a noticable delay to zsh startup. This little hack restricts
# it to once a day. It should be pasted into your own completion file.
#
# The globbing is a little complicated here:
# - '#q' is an explicit glob qualifier that makes globbing work within zsh's [[ ]] construct.
# - 'N' makes the glob pattern evaluate to nothing when it doesn't match (rather than throw a globbing error)
# - '.' matches "regular files"
# - 'mh+24' matches files (or directories or whatever) that are older than 24 hours.
autoload -Uz compinit
@scruel
scruel / xiaomi-storage-open-ssh-wsl.sh
Last active September 2, 2026 04:22
小米智能存储一键开启 ssh
#!/bin/bash
# https://github.com/scruel/xiaomi-storage-nas-enable-ssh
# Ver: 1.0.8.425.F24C26D24-REL (Enhanced)
# 食用步骤:
# - 登录小米智能存储客户端,以拉取证书文件
# - 打开终端(Windows 下请使用 WSL Ubuntu 终端)
# - 终端执行 bash <(curl -s https://gist.githubusercontent.com/scruel/6b01bfa6847170f6edfaa07362b6d2fa/raw/xiaomi-storage-open-ssh-wsl.sh)
# - 提示执行完毕,输出 root 信息即成功,APP 文件中也能看到 SUCCESS。
# 终端依赖:openssl, curl, ssh-keygen, wslpath (WSL)
@k16shikano
k16shikano / SKILL.md
Last active September 2, 2026 04:22
japanese-tech-writing/SKILL
name japanese-tech-writing
description 日本語の技術文書・書籍原稿の文章規範。整形(一文一行、引用ブロック、脚注、コラム記法)、段落と論証の構成(パラグラフライティング)、論証の厳密さ(ツッコミどころの除去)、読み手の負荷の管理、視点と語り、演出の抑制、LLM っぽい空句の禁止、冗長の排除を定める。日本語で技術書の章、草稿、記事、解説文を書くとき、または推敲・リライトするときに使用する。

日本語技術文書の文章規範

日本語で技術的な原稿(書籍の章、記事、解説文)を書く・推敲するときは、以下の規範に従う。

整形

@YakShavingCatHerder
YakShavingCatHerder / lossless-stream-rip-cheatsheet.md
Created October 15, 2020 06:34
Lossless stream rip cheatsheet

Lossless stream rip cheatsheet

This is a short cheatsheet to help you determine whether a release from Amazon, Hulu, or Netflix contains the lossless/untouched (as in no further loss of quality compared to what the streaming services provide) video/audio or not. Most newer P2P releases are correctly tagged, but for older releases, it cannot be reliably determined based on the tags alone.

In most cases, non-lossless rips from these services are screen captures (which, when done by professional releasers, should be high quality and contain little to no glitches – see the history section for details), but in some cases they may be simply reencoded from the untouched stream, for example to crop black bars or reencode from a higher-quality stream to achieve better quality. Also, generally the audio is untouched even when the video is not, but that's not always the case. There is no easy way to differentiate these cases, so I'm only describing what to look for in regards to lossless video streams, and for those

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

@ryanlua
ryanlua / fritzing-download.md
Last active September 2, 2026 04:15
Free download of Fritzing using the official download links

Fritzing Free Download

Important

This guide has been patched and not longer functioning. You can no longer download Fritzing for free using this.

You can use the below link to access Fritzing downloads for free.

https://fritzing.org/download?dlid=khfI2NwLQN4FHv5jAMd-2A

Additionally, below are direct download links to Fritzing.

@ph33nx
ph33nx / WinMasterBlocker.bat
Last active September 2, 2026 04:11
Block All Adobe .exe files via Firewall on Windows Using Batch Script | Stop adobe apps to access internet
:: ################################################################
:: ## 🔥 WinMasterBlocker 🔥 #
:: ################################################################
:: # Author: https://github.com/ph33nx #
:: # Repo: https://github.com/ph33nx/WinMasterBlocker #
:: # #
:: # This script blocks inbound/outbound network access #
:: # for major apps like Adobe, Autodesk, Corel, Maxon, #
:: # and more using Windows Firewall. #
:: # #
@angelo-swe
angelo-swe / repo-series.md
Last active September 2, 2026 04:07
The Repo List — every repo from my series, kept updated