Skip to content

Instantly share code, notes, and snippets.

@rikka0w0
rikka0w0 / ft2232_to_digilent_jtag.md
Last active November 13, 2026 06:25
FT2232 to Digilent JTag for Xilinx FPGAs (ISE/Vivado)

The Digilent JTag uses FT2232, but its configuration EEPROM contains secrete data needed to be recoginzed by Xilinx ISE/Vivado. The following method only works on linux (tested on Ubuntu16.04), but the patched FT2232 doggle also works on Windows. Since WSL1 does not provide USB device access, the following method will not work for WSL1.

DONT use FT_Prog on offical Digilent cable, as it can trash the firmware! The offical eeprom contains secrete data that cannot be handled correctly by FT_Prog.

Here are steps to create a Digilent-like Jtag that can be used in Xilinx ISE and Vivado

  1. Install softwares: sudo apt-get install libftdi1 ftdi-eeprom
  2. Create a file "flash_digilent.conf" with the following content:

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.

@liuran001
liuran001 / config.yaml
Last active November 13, 2026 06:21
mihomo (Clash Meta) 懒人配置
# 21 世纪最伟大的发明是什么,那必然是 AI
# 所以如果你遇到什么问题,也许问 AI 比问人更快哦
# AFF
# 如果你想支持我,可以通过我的邀请链接购买机场
# 感谢支持
# 1. ssLinks 邀请码: fSo2OhzH https://98a6251b6cd7471da86cca993b6dbe6f.36d.biz/#/register?code=fSo2OhzH 贵 快
# 2. 一元机场 邀请码: r3f1duds https://xn--4gq62f52gdss.top/#/register?code=r3f1duds 垃圾 但是便宜
# 3. Kitty 邀请码: MSOOG0Q0 https://kitty.fo/register?invite=MSOOG0Q0
# 4. BiuBiu 邀请码: fACfjKC8 https://biubiux.online/#/register?code=fACfjKC8 有年周期套餐
/* Checking macros for stdio functions.
Copyright (C) 2004, 2005, 2009 Free Software Foundation, Inc.
This file is part of GCC.
GCC is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
Software Foundation; either version 3, or (at your option) any later
version.
@gmorse81
gmorse81 / values.yaml
Created January 22, 2024 05:14
ESPHome Helm Chart Config
#
# IMPORTANT NOTE
#
# This chart inherits from our common library chart. You can check the default values/options here:
# https://github.com/bjw-s/helm-charts/blob/main/charts/library/common/values.yaml
#
image:
# -- image repository
repository: ghcr.io/esphome/esphome
@farzaa
farzaa / wiki-gen-skill.md
Last active November 13, 2026 06:04
personal_wiki_skill.md
name wiki
description Compile personal data (journals, notes, messages, whatever) into a personal knowledge wiki. Ingest any data format, absorb entries into wiki articles, query, cleanup, and expand.
argument-hint ingest | absorb [date-range] | query <question> | cleanup | breakdown | status

Personal Knowledge Wiki

You are a writer compiling a personal knowledge wiki from someone's personal data. Not a filing clerk. A writer. Your job is to read entries, understand what they mean, and write articles that capture understanding. The wiki is a map of a mind.

@mtnygard
mtnygard / ConvertGraffle.scpt
Created December 7, 2017 21:13
Omnigraffle automation script
-- Convert a single document
-- on process_cli_item(source_file)
set source_file to "/Users/mtnygard/tmp/adjacency-diagram.graffle"
try
do shell script "open -a 'OmniGraffle' " & source_file
delay 2
tell application id "com.omnigroup.OmniGraffle7"
set area type of current export settings to entire document
@HirofumiYashima
HirofumiYashima / image_embedded_mail.py
Last active November 13, 2026 05:57
Python から 画像ファイル をメール本文に埋め込んで送信して、hotmail で画像表示成功した方法 (Gmailは表示失敗)~ base64でエンコードした結果を埋め込むので、事前に画像をサーバーにアップしてURL用意する手間いらず。 ref: http://qiita.com/HirofumiYashima/items/468ca2517217643ea310
#!/usr/bin/python
# -*- coding: utf-8 -*-
import smtplib, base64
from email.MIMEText import MIMEText
from email.MIMEImage import MIMEImage
from email.MIMEMultipart import MIMEMultipart
from email.Header import Header
from email.Utils import formatdate
@ndeadly
ndeadly / homebrew_sysmodules.txt
Last active November 13, 2026 05:56
Title IDs for Nintendo Switch sysmodules and system applets
/* Homebrew sysmodules */
0000000000000123 sysHaze
0000000000534C56 SaltyNX
0066666669999999 sys-modulethatcrashestheconsolewhenitturnson
00FF0000000002AA BootSoundNX
00FF000053484101 switch-ha-sysmodule
00FF000053484102 switch-ha-overlay-loader
00FF0000636C6BF2 nx-reader
00FF0000636C6BFF sys-clk
00FF00006D7470FF mtp-server-nx
@gugadev
gugadev / install-android-sdk-windows.md
Last active November 13, 2026 05:56
Guide: Install Android SDK on Windows (without AndroidStudio)

Android SDK setup - Windows guide

If you are a React Native, NativeScript, Flutter or Ionic developer maybe you don't want to install the entire Android Studio just to have your environment ready. If this is your case, this guide will help you to setup your minimal Android SDK environment in Windows.