- quest 2 或者quest 3 连接wifi后连接受限是因为无法发送UDP到国外服务器
- 由于墙的干扰, 很多梯子, 都加了混淆 , 不支持udp转发
- ss原版, v2ray最新版本支持udp转发
- 能连无线wifi的电脑
- outline client
- connectify 热点创建工具, 如果不想用connectify, 请参考知乎教程, 也没问题. windows 10自带热点共享, 不需要connectify.
- outline用的ss连接 到justmysocks3.net购买
| r""" | |
| elden ring disk game save backup, require python3 + pynput, pip install pynput | |
| as we all know, this game is difficult, you are going to die many times before a boss was defeated. | |
| shift+r recover from last save | |
| shift+s create a backup | |
| esc quit program | |
| "python elden_ring_saver.py last" will pick last manual save , overwrite current game save | |
| change "last" to specified "manual-...." has same affect. | |
| this program will backup game save if any content releated to character was changed, eg, weapon | |
| if not character data is changed, eg, you walk around in game scence, character data will not flush to disk, then manual save will not work |
| """ | |
| 根据6位股票编号,下载它最近的业绩报告全文,跟踪一下公司的发展轨迹 | |
| """ | |
| import requests | |
| import re | |
| import json | |
| import sys | |
| import pdb |
| /* | |
| 在一个有所有tab访问权限的chrome扩展的devtools里执行, 比如adblock, 用来批量删除大的115网盘文件夹, 一个文件夹超过50000文件之后, 官方的删除API不能用 | |
| 先点进那个文件夹, 然后执行代码, 它会一页页的删除, 删除完自动停止。 | |
| */ | |
| function doDelete() { | |
| chrome.tabs.query({"url": "https://115.com/*"}, function(tabs) { | |
| let tb = tabs[0]; | |
| let code1 = ` | |
| async function sleep(ms) |
| import requests | |
| import os | |
| import json | |
| import sys | |
| import pdb | |
| import subprocess | |
| headers = { | |
| "Content-Type": "application/json" | |
| } |
| import socket | |
| import re | |
| import struct | |
| def cidr_to_ip_range(cidr): | |
| start, bits = cidr.split("/") | |
| return start, socket.inet_ntoa(struct.pack(">I", struct.unpack(">I", socket.inet_aton(start))[0] | (0xffffffff >> int(bits)))) | |
| china_ip = """ | |
| 1.68.0.0/14 |
| #-*-encoding=utf-8-*- | |
| """ | |
| golang的内存分配profiler工具, 为了尽可能少的alloc, 需要消灭alloc最多的路径 | |
| 启用日志分析 | |
| GODEBUG=allocfreetrace=1 ./yourprogram &> alloc.log | |
| 生成的日志如下 | |
| tracealloc(0xc20800e000, 0x1000, runtime.parforthread) | |
| goroutine 0 [idle]: |
| #! /usr/bin/env python | |
| #chmod +x daemon.py | |
| #complete -cf daemon.py | |
| import sys | |
| import os | |
| def daemonize(log): | |
| if not os.fork(): | |
| os.setsid() |
| section .data | |
| OUTPUT_FMT: db "timeit: %ds %dus", 0x0a, 0x0 | |
| ;引用的库函数与导出的符号 | |
| section .text | |
| global main | |
| extern fork | |
| extern time | |
| extern sleep | |
| extern wait |