Skip to content

Instantly share code, notes, and snippets.

@karakoo
karakoo / README.md
Last active February 15, 2024 07:39
Retrieving Auth Token (with Playwright)

Retrieving Pixiv Auth Token (with Playwright)

使用 Playwright 来登录 Pixiv ,从而获取 token

使用方法

  1. 下载本脚本 pixiv_auth.py
  2. 安装 playwrightpyotp(两步验证):
pip install playwright
pip install pyotp
@neekey
neekey / chrome_extension_get_cookie.js
Created September 8, 2013 15:16
Chrome 插件获取指定域下的Cookie,代码示例
@greensea
greensea / OpenVPN-2.2.2-obfs.patch
Last active March 22, 2023 09:17
The obfs patch obsfucate OpenVPN traffic, make it looks like random traffic. The obfs patch add two options for OpenVPN. --obfs-salt <string> is a secret to generate the input XOR stream. To enable the obfs patch, this options must be set. --obfs-padlen <num> is a positive integer max to 255. This option tells obfs patch to padding random conten…
--- openvpn-2.2.2.orig/options.c 2011-12-14 00:58:56.000000000 +0800
+++ openvpn-2.2.2/options.c 2012-12-21 10:44:57.683130505 +0800
@@ -54,6 +54,10 @@
#include "memdbg.h"
+extern char* _socket_obfs_salt;
+extern int _socket_obfs_salt_len;
+extern int _socket_obfs_padlen;
+
@chuangbo
chuangbo / README.md
Last active June 19, 2023 04:48
Python dynamic DNSPod DNS Script

替换上你的 API Token,域名ID,记录ID等参数,就可以运行了。 会在后台一直运行,每隔30秒检查一遍IP,如果修改了就更新IP。

获取 API Token 的方式

获得 domain_id 可以用 curl

curl -k https://dnsapi.cn/Domain.List -d "login_token=TOKEN"`