Skip to content

Instantly share code, notes, and snippets.

View henter's full-sized avatar
🏠
Working from home

Henter henter

🏠
Working from home
  • B
  • West Korean
View GitHub Profile
@jlia0
jlia0 / agent loop
Last active December 12, 2025 09:39
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
@wong2
wong2 / README.md
Last active December 4, 2025 20:01
How to run Claude computer use demo on macOS

Note

It is necessary to give Terminal (or iTerm or whatever you use) the permission to control the computer. This can be done in System Settings ➔ Privacy & Security ➔ Accessibility.

Guide

  • Install cliclick for mouse & keyboard emulation
    • brew install cliclick
  • Clone Anthropic quickstart repo
    • git clone https://github.com/anthropics/anthropic-quickstarts.git
  • cd computer-use-demo
  • Replace computer-use-demo/computer_use_demo/tools/computer.py with the modified version below
@ctlllll
ctlllll / longest_chinese_tokens_gpt4o.py
Created May 13, 2024 19:53
Longest Chinese tokens in gpt4o
import tiktoken
import langdetect
T = tiktoken.get_encoding("o200k_base")
length_dict = {}
for i in range(T.n_vocab):
try:
length_dict[i] = len(T.decode([i]))
except:
@zhangyouxin
zhangyouxin / .js
Last active December 26, 2023 10:54
dota-rc20_inscription
const { ApiPromise, WsProvider } = require("@polkadot/api");
const { Keyring } = require("@polkadot/keyring");
async function main() {
//wss://rpc-polkadot.luckyfriday.io
// wss://polkadot.public.curie.radiumblock.co/ws
// wss://1rpc.io/dot
// wss://rpc.polkadot.io
const provider = new WsProvider("wss://1rpc.io/dot");
const api = await ApiPromise.create({ provider });
@dylanzan
dylanzan / Github中国大陆访问代理.txt
Last active September 1, 2025 03:59
github 中国大陆访问代理
GitHUB 访问代理:
软件功能简介:
· 域名纯净IP解析:提供无污染的域名解析服务,增强访问质量。
· IP测速与选择:自动测速并选择连接最快的IP地址。
· CDN资源替换:用于google CDN资源,解决部分国外网站的js和css加载问题。
· 非翻墙安全性:保持网络连接安全且干净,不记录用户信息。
Linux临时网络配置:
设置临时的HTTP和HTTPS代理(解决github releases,wget,curl等操作中可能出现的网络问题):
export https_proxy=http://git.iizone.com.cn:32222
export http_proxy=http://git.iizone.com.cn:32222
@ninehills
ninehills / chatpdf-zh.ipynb
Last active December 11, 2025 09:56
ChatPDF-zh.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@liviaerxin
liviaerxin / README.md
Last active December 12, 2025 19:37
FastAPI and Uvicorn Logging #python #fastapi #uvicorn #logging

FastAPI and Uvicorn Logging

When running FastAPI app, all the logs in console are from Uvicorn and they do not have timestamp and other useful information. As Uvicorn applies python logging module, we can override Uvicorn logging formatter by applying a new logging configuration.

Meanwhile, it's able to unify the your endpoints logging with the Uvicorn logging by configuring all of them in the config file log_conf.yaml.

Before overriding:

uvicorn main:app --reload
@sbarratt
sbarratt / scrape_ftx.py
Last active July 10, 2023 03:35
A script to export all FTX history
import pandas as pd
import time
import requests
import time
import hmac
from requests import Request
import sys
import json
import os
@Victrid
Victrid / gitgraft.sh
Created August 29, 2022 17:09
Find which commit your no-git friend is working on and generate patches for attaching their works onto git tree.
#!/bin/bash
hash git 2>/dev/null || { echo >&2 "Required command 'git' is not installed. ( hmm... why are you using this? ) Aborting."; exit 1; }
hash realpath 2>/dev/null || { echo >&2 "Required command 'realpath' is not installed. Aborting."; exit 1; }
hash pwd 2>/dev/null || { echo >&2 "Required command 'pwd' is not installed. Aborting."; exit 1; }
hash cd 2>/dev/null || { echo >&2 "Required command 'cd' is not installed. Aborting."; exit 1; }
hash echo 2>/dev/null || { echo >&2 "Required command 'echo' is not installed. Aborting."; exit 1; }
hash mv 2>/dev/null || { echo >&2 "Required command 'mv' is not installed. Aborting."; exit 1; }
hash diff 2>/dev/null || { echo >&2 "Required command 'diff' is not installed. Aborting."; exit 1; }
hash diffstat 2>/dev/null || { echo >&2 "Required command 'diffstat' is not installed. Aborting."; exit 1; }
@mrbluecoat
mrbluecoat / vpn-options.md
Last active December 9, 2025 10:53
Open Source VPN options
  • Amnezia VPN (OpenVPN & WireGuard protocols) - Windows, MacOS, iOS, Android, Linux (no ARM support)
  • Anywherelan (TCP & QUIC) - Windows, Linux, Android, MacOS
  • boringproxy (in-house developed "NameDrop" protocol) - Windows, MacOS, Linux, FreeBSD, OpenBSD
  • boringtun (WireGuard protocol) - MacOS, Linux (mobile clients not open source)
  • Brook (in-house developed "Brook" protocol as well as WebSocket Secure, SOCKS5, and QUIC protocols) - Windows, MacOS, Linux, OpenWrt (mobile clients not open source)
  • Chisel (SSH protocol) - Windows, MacOS, Linux
  • cjdns (in-house developed "CryptoAuth" protocol) - Windows, MacOS, Linux, FreeBSD, N