Skip to content

Instantly share code, notes, and snippets.

View nashsu's full-sized avatar
🎯
Focusing

nash_su nashsu

🎯
Focusing
View GitHub Profile
@GenerationUX
GenerationUX / FaultLine.md
Created April 8, 2026 07:25
FaultLine.md
title FaultLine — GBrain-Inspired Vulnerability Scanner
type project
created 2026-04-08
updated 2026-04-08
tags
open-source-pattern
security
vulnerability-scanning
thin-harness
fat-skills
osv
epss
kev
typescript
sqlite
sources
GBrain-Gist
GStack-YC-Spring-2026-Talk

FaultLine

@rohitg00
rohitg00 / llm-wiki.md
Last active May 22, 2026 02:18 — forked from karpathy/llm-wiki.md
LLM Wiki v2 — extending Karpathy's LLM Wiki pattern with lessons from building agentmemory

LLM Wiki v2

A pattern for building personal knowledge bases using LLMs. Extended with lessons from building agentmemory 10K Stars ⭐️, a persistent memory engine for AI coding agents.

This builds on Andrej Karpathy's original LLM Wiki idea file. Everything in the original still applies. This document adds what we learned running the pattern in production: what breaks at scale, what's missing, and what separates a wiki that stays useful from one that rots.

What the original gets right

The core insight is correct: stop re-deriving, start compiling. RAG retrieves and forgets. A wiki accumulates and compounds. The three-layer architecture (raw sources, wiki, schema) works. The operations (ingest, query, lint) cover the basics. If you haven't read the original, start there.

@jlia0
jlia0 / agent loop
Last active May 21, 2026 10:06
Manus tools and prompts
You are Manus, an AI agent created by the Manus team.
You excel at the following tasks:
1. Information gathering, fact-checking, and documentation
2. Data processing, analysis, and visualization
3. Writing multi-chapter articles and in-depth research reports
4. Creating websites, applications, and tools
5. Using programming to solve various problems beyond development
6. Various tasks that can be accomplished using computers and the internet
@kyo-takano
kyo-takano / lexical_search_with_gzip.py
Last active March 11, 2024 03:39
Lexical Search with gzip (gzipによる語彙検索)
import gzip
def gzip_search(query: str, candidate_chunks: list[str], top_k: int=1):
"""
文字列ベースで類似したテキストチャンクを推定するアルゴリズム.
`query`, `chunk`, および`query + " " + chunk`をそれぞれgzipで圧縮し編集距離のようなものをベースに評価する.
Parameters:
query (str): 検索クエリとして使用する文字列.
top_k (int, optional): 返される類似チャンクの上位k個を指定する (default: 1).
@zhuowei
zhuowei / Ensemble.plist
Last active September 18, 2023 06:26
Put this file as /Library/Preferences/FeatureFlags/Domain/Ensemble.plist and reboot to (hopefully) turn on Universal Control on macOS 12
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<!-- not sure which one it is, so set both -->
<key>Ensemble</key>
<dict>
<key>Enabled</key>
<true/>
</dict>
@lorey
lorey / selenium_xhr_requests_via_performance_logging.py
Last active April 5, 2026 16:16
Access Chrome's network tab (e.g. XHR requests) with Selenium
#
# This small example shows you how to access JS-based requests via Selenium
# Like this, one can access raw data for scraping,
# for example on many JS-intensive/React-based websites
#
from time import sleep
from selenium import webdriver
from selenium.webdriver import DesiredCapabilities
@Viceriel
Viceriel / experiment.py
Last active October 19, 2021 08:58
Numpy implementation of yolov3 post processing of inference
from PIL import Image, ImageFont, ImageDraw
import numpy as np
from keras import backend as K
from keras.models import load_model
from keras.layers import Input
from yolo3.model import yolo_eval, yolo_body, tiny_yolo_body
from yolo3.utils import letterbox_image
import os
import tensorflow as tf
from timeit import default_timer as timer
@snsinfu
snsinfu / ffserver.conf
Last active August 17, 2020 13:29
Live-transcode RTMP stream to WebM using ffmpeg and ffserver for Chromecast
HTTPBindAddress 0.0.0.0
HTTPPort 8090
CustomLog -
<Feed feed.ffm>
File ./feed.ffm
FileMaxSize 256M
ACL ALLOW localhost
</Feed>
@wong2
wong2 / cmds.txt
Last active August 14, 2025 07:28
在任意聊天中输入。 [ ]表示后面要跟一个空格(可能还需要别的参数才能生效)
//wearversion
//wearlog
//wearvoiceinputenable
//wearvoiceinputdisable
//weargoogleapi
//assert
//pushassert
//uplog
//upcrash
//switchnotificationstatus