Skip to content

Instantly share code, notes, and snippets.

View nashsu's full-sized avatar

nash_su nashsu

  • www.IterCast.com
  • Beijing
View GitHub Profile
@jlia0
jlia0 / agent loop
Last active July 7, 2025 15:30
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 July 3, 2025 15:04
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 December 16, 2024 05:52
在任意聊天中输入。 [ ]表示后面要跟一个空格(可能还需要别的参数才能生效)
//wearversion
//wearlog
//wearvoiceinputenable
//wearvoiceinputdisable
//weargoogleapi
//assert
//pushassert
//uplog
//upcrash
//switchnotificationstatus
@JaviLorbada
JaviLorbada / FRP iOS Learning resources.md
Last active April 20, 2025 21:15
The best FRP iOS resources.

Videos

@zuccaro
zuccaro / decrypt_sqlite.py
Last active July 7, 2025 06:52
decrypts sqlite3 databases that are encrypted with System.Data.SQLite
def decryptSystemDataSQLite(file, password):
""" Decrypts a sqlite3 database encrypted with System.Data.SQLite """
"""
System.Data.SQLite has built-in encryption that uses the Windows
Cryptography API, which is cool when you are on Windows but if you aren't,
you are shit outta luck working with these databases.
PyCrypto to the rescue! It works on most platforms.
Thanks to dlitz for making this kick-ass easy to use crypto lib.