V2EX a132811
a132811's repos on GitHub
Javascript 19 人关注
ahuigo.github.io
Ahuigo's notes
Go 14 人关注
gofnext
Golang extended function like @cache decorator.
PHP 13 人关注
des
des source code for js,perl.
Python 2 人关注
ahui-aiohttp-server
Aiohttp server for static files and python file(php-like server)
Javascript 2 人关注
chrome-ext
my chrome extension for development
Go 1 人关注
arun
live reload run command
TypeScript 1 人关注
auto-devops
Go 0 人关注
2wayssl
A two-way ssl generator template
Python 0 人关注
aiohttp
Async http client/server framework (asyncio)
0 人关注
akshare
AkShare is an elegant and simple financial data interface library for Python, built for human beings! 开源财经数据接口库
CSS 0 人关注
aleph.js.antd
0 人关注
alfred-workflows
Save time, Improve life.
0 人关注
ama
Ask me anything!
TypeScript 0 人关注
astral
A high-level puppeteer/playwright-like library for Deno
Shell 0 人关注
auto-tool
0 人关注
avlmini
AVL implementation which is as fast/compact as linux's rbtree
0 人关注
boltcss
Mostly-reasonable HTML Styles
Javascript 0 人关注
bookAdmin
Egg Node Mogoose
0 人关注
build-your-ai-coding-assistant
有手就会 《构建你自己的 AI 辅助编码助手》 介绍如何 DIY 一个端到端(从 IDE 插件、模型选型、数据集构建到模型微调)的 AI 辅助编程工具,类似于 GitHub Copilot、JetBrains AI Assistant、AutoDev 等。
Javascript 0 人关注
busboy
A streaming parser for HTML form data for node.js
0 人关注
c
C 0 人关注
c-lib
0 人关注
cadence
Cadence is a distributed, scalable, durable, and highly available orchestration engine to execute asynchronous long-running business logic in a scalable and resilient way.
0 人关注
cadence-client
Framework for authoring workflows and activities running on top of the Cadence orchestration engine.
Go 0 人关注
cadence-v11-bad-case
0 人关注
chatgpt-mirror
A mirror of ChatGPT based on the gpt-3.5-turbo model.
0 人关注
ChatGPT-Translator
使用ChatGPT API的翻文字插件
Javascript 0 人关注
chrome-ext-fiddle
0 人关注
chrome-HeaderEditor
Manage browser's requests, include modify the request headers and response headers, redirect requests, cancel requests
Python 0 人关注
chrome-screenshot
0 人关注
chrome-xswitch
A Chrome Extension for redirecting/forwarding request urls
0 人关注
cline
Autonomous coding agent right in your IDE, capable of creating/editing files, executing commands, using the browser, and more with your permission every step of the way.
0 人关注
clipboard2markdown
Convert rich-text on your clipbaord to markdown
0 人关注
copier
Copier for golang, copy value from struct to struct and more
Javascript 0 人关注
cryptocurrency
0 人关注
deno-Bundler
A Bundler with the web in mind.
TypeScript 0 人关注
deno-debug-example
TypeScript 0 人关注
deno-fetchx
Extended fetch
0 人关注
deno-postgres
PostgreSQL driver for Deno
TypeScript 0 人关注
deno-puppeteer
A port of puppeteer running on Deno
TypeScript 0 人关注
deno-vite-react-ts
Vite + Deno + React + TypeScript + Tailwind
0 人关注
deno_ast
Source text parsing, lexing, and AST related functionality for Deno
0 人关注
deno_tools
a collection of tools and utils for deno
Makefile 0 人关注
dockerfile
Javascript 0 人关注
doctools
doctools for eggjs
0 人关注
easyquotation
实时获取新浪 / 腾讯 的免费股票行情 / 集思路的分级基金行情
Python 0 人关注
easytrader
提供券银河客户端/广发/湘财证券/雪球的基金、股票自动程序化交易以及自动打新,支持跟踪 joinquant /ricequant 模拟交易 和 实盘雪球组合, 量化交易组件
Javascript 0 人关注
echoesworks
Next-Generation Tech Blog/Presentation/Slider Framework
Javascript 0 人关注
egg-app
Javascript 0 人关注
egg-static
static server plugin for egg
Python 0 人关注
eng-dict
langdao dict for mac dictionary app
0 人关注
esm.sh
A fast, global content delivery network for ES Modules.
Python 0 人关注
fileset
Calculate line set of two files
0 人关注
flowy
The minimal Javascript library to create flowcharts
TypeScript 0 人关注
frame-react-vite-demo
TypeScript 0 人关注
fresh
The next-gen web framework.
TypeScript 0 人关注
fresh-demo
Fresh demo
TypeScript 0 人关注
fresh-mdnotes
0 人关注
fx
A dependency injection based application framework for Go.
Go 0 人关注
gin
Gin is a HTTP web framework written in Go (Golang). It features a Martini-like API with much better performance -- up to 40 times faster. If you need smashing performance, get yourself some Gin.
Go 0 人关注
ginapp
Simple http server for development based on gonic
Go 0 人关注
ginbro
Converting a MySQL database'schema to a RESTful golang APIs app in the fastest way
Go 0 人关注
ginpprof
A wrapper for golang web framework gin to use net/http/pprof easily.
0 人关注
glider
glider is a forward proxy with multiple protocols support, and also a dns/dhcp server with ipset management features(like dnsmasq).
Go 0 人关注
glogger
0 人关注
go
The Go programming language
Go 0 人关注
go-funk
A modern Go utility library which provides helpers (map, find, contains, filter, ...)
0 人关注
go-generics
Go 0 人关注
go-hello
go hello module
0 人关注
go-mitmproxy
mitmproxy implemented with golang. 用 Golang 实现的中间人攻击(Man-in-the-middle),解析、监测、篡改 HTTP/HTTPS 流量。
0 人关注
go-osstat
OS system statistics library for Go
0 人关注
go-sqlmock
Sql mock driver for golang to test database interactions
0 人关注
go-timewheel
golang timewheel similar to glang std timer
0 人关注
go-tools
Staticcheck - The advanced Go linter
0 人关注
go-torch
Stochastic flame graph profiler for Go programs
Go 0 人关注
go-viper-crypt
Store and retrieve encrypted configs from etcd or consul
0 人关注
gocache
A complete Go cache library that brings you multiple ways of managing your caches
Go 0 人关注
gofnext_pg
gofnext cache for postgres
0 人关注
gofreecache
A cache library for Go with zero GC overhead.
0 人关注
gogctuner
auto adjust your GOGC value
Go 0 人关注
gohttptool
Go http tool
Go 0 人关注
goitest
Golang integration test suit
Go 0 人关注
golib
0 人关注
gonic-examples
A repository to host examples and tutorials for Gin.
Stata 0 人关注
google-hosts
Google hosts
Go 0 人关注
goos-tools
golang os utils
Go 0 人关注
gorm
GORM V1, V2 moved to https://github.com/go-gorm/gorm
0 人关注
gormt
database to golang struct
0 人关注
go_reuseport
Brings SO_REUSEPORT into your Go server
0 人关注
graftcp
A flexible tool for redirecting a given program's TCP traffic to SOCKS5 or HTTP proxy.
0 人关注
haoel.github.io
CSS 0 人关注
hexo-theme-next
Elegant and powerful theme for Hexo.
Javascript 0 人关注
hicharts-map
Ruby 0 人关注
homebrew-ahui
Ahui's brew tap repo.
Ruby 0 人关注
homebrew-v2ray
Homebrew tap for v2ray core.
0 人关注
httpdump
Capture and parse http traffics
Go 0 人关注
huobi_Golang
Go SDK for Huobi Spot API
0 人关注
imutils
A series of convenience functions to make basic image processing operations such as translation, rotation, resizing, skeletonization, and displaying Matplotlib images easier with OpenCV and Python.
Ruby 0 人关注
install
:inbox_tray: Homebrew (un)installer
Java 0 人关注
java-lib
This is my java library.
a132811

a132811

V2EX 第 55470 号会员,加入于 2014-02-08 11:15:21 +08:00
利用泛型实现的 golang 缓存装饰器
Go 编程语言    a132811    2023-12-13 12:55:46 PM    最后回复来自 a132811
6
golang 泛型能否支持可变参数
Go 编程语言    a132811    2023-07-31 07:09:07 AM    最后回复来自 Anubisks
4
ts 有办法隐式修改 class constructor 的类型吗?
TypeScript    a132811    2023-06-19 07:40:58 AM    最后回复来自 chnwillliu
2
Vue3 下有什么 umijs 的替代品推荐吗?
Vue.js    a132811    2022-08-01 19:42:16 PM    最后回复来自 a132811
13
感觉 uber/fx 并不比 getInstance 工厂好用
Go 编程语言    a132811    2022-08-09 22:20:55 PM    最后回复来自 a132811
20
a132811 最近回复了
提个复现 issue 吧。
我之前遇到另外的问题: https://github.com/microsoft/vscode/issues?q=is%3Aissue%20editor.editContext
claude code 不太稳定,bug 有点多。
最近换成了 qwen-code + 公司内 LiteLLM hub 提供的各种模型,主要还是用的 Claude
脚本执行器,运行完就释放,不需要实现 gc 。

这在 isolate worker/playground 场景下执行 js/python/golang 都很有用,包括执行流程编排的其它语言的表达式。

完成度比较高的 js interpreter 是 https://github.com/boa-dev/boa
233 天前
回复了 wheelg 创建的主题 奇思妙想 想要一个这样的 Magic 浏览器
1. chrome 启动时加--disable-web-security 可突破跨域限制:
mac 下可以启动隔离的 chrome:
open -na "Google Chrome" --args --disable-web-security --user-data-dir="/tmp/chrome_dev_session"

https://stackoverflow.com/questions/3102819/disable-same-origin-policy-in-chrome

2. 禁用 cors 限制的话,会遇到许多问题
- 用户信息有潜在的安全风险
- 网站服务商会受很大的影响:应对来自 c 端的 ai 爬虫就已经很头大了,放开限制的话,随便一个 web 网站都可能主动利用 js 或被注入 xss 对别的网站发起各种分布式攻击(客户端也有这个风险,但是门槛更高一点)


安全、方便、功能、开发体验之间存在许多矛盾的: pwa 相比客户端应用,牺牲了一些功能,得到了安全。

真要给 pwa 搞一个专门的浏览器的话,可能要禁止 cors 带 cookie ,禁止 xss 执行等,完全模仿客户端的行为.... 这可能会影响现有一些网站的执行。
支持
319 天前
回复了 BruceXu 创建的主题 问与答 有没有一劳永逸关闭 HSTS 的方法?
办法有很多种:
1. 找一下 nginx 等网关,去掉 HSTS 头:

add_header Strict-Transport-Security 'max-age=31536000; includeSubDomains' always;

检验一下:

curl -s -D- 'https://yourserver' | grep -i strict-transport-security

2. 或使用 chrome 扩展修改响应的 header ,将 HSTS 头去掉

3. 或本地开发时使用代理,将 http 请求转发到 https ,为此我写了一个代理工具(会自动生成自签名证书)
https://github.com/ahuigo/selfhttps

4. 或让本地服务也改 https, 让它内置 https 证书(有一些框架提供)
320 天前
回复了 ikw 创建的主题 分享创造 一觉醒来, HackerNews 上前三了
允许将整个本地项目代码加入上下文吗?或者指定本地的几个目录的代码作为上下文
不用梯子的话,找一个国内大模式 api 封装一个就是了。
deepseek 、doubao 、GLM 、通义千问、文心一言都有 api
关于     帮助文档     自助推广系统     博客     API     FAQ     Solana     2621 人在线   最高记录 6679       Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 34ms UTC 09:12 PVG 17:12 LAX 01:12 JFK 04:12
Do have faith in what you're doing.
ubao msn snddm index pchome yahoo rakuten mypaper meadowduck bidyahoo youbao zxmzxm asda bnvcg cvbfg dfscv mmhjk xxddc yybgb zznbn ccubao uaitu acv GXCV ET GDG YH FG BCVB FJFH CBRE CBC GDG ET54 WRWR RWER WREW WRWER RWER SDG EW SF DSFSF fbbs ubao fhd dfg ewr dg df ewwr ewwr et ruyut utut dfg fgd gdfgt etg dfgt dfgd ert4 gd fgg wr 235 wer3 we vsdf sdf gdf ert xcv sdf rwer hfd dfg cvb rwf afb dfh jgh bmn lgh rty gfds cxv xcv xcs vdas fdf fgd cv sdf tert sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf shasha9178 shasha9178 shasha9178 shasha9178 shasha9178 liflif2 liflif2 liflif2 liflif2 liflif2 liblib3 liblib3 liblib3 liblib3 liblib3 zhazha444 zhazha444 zhazha444 zhazha444 zhazha444 dende5 dende denden denden2 denden21 fenfen9 fenf619 fen619 fenfe9 fe619 sdf sdf sdf sdf sdf zhazh90 zhazh0 zhaa50 zha90 zh590 zho zhoz zhozh zhozho zhozho2 lislis lls95 lili95 lils5 liss9 sdf0ty987 sdft876 sdft9876 sdf09876 sd0t9876 sdf0ty98 sdf0976 sdf0ty986 sdf0ty96 sdf0t76 sdf0876 df0ty98 sf0t876 sd0ty76 sdy76 sdf76 sdf0t76 sdf0ty9 sdf0ty98 sdf0ty987 sdf0ty98 sdf6676 sdf876 sd876 sd876 sdf6 sdf6 sdf9876 sdf0t sdf06 sdf0ty9776 sdf0ty9776 sdf0ty76 sdf8876 sdf0t sd6 sdf06 s688876 sd688 sdf86