This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
async function sendMessageToChatGPT(message, history) { | |
try { | |
const payload = { | |
model: "openai-3", | |
spaceId: "", // your space id here | |
isSpacePermission: false, | |
id: 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) { | |
var r = Math.random() * 16 | 0, v = c == 'x' ? r : (r & 0x3 | 0x8); | |
return v.toString(16); | |
}), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# fixes: 2to3 syntax, assertions for int(d1/d2) value | |
from __future__ import print_function | |
import getopt, posixpath, signal, struct, sys | |
import os, copy | |
import binascii | |
sparse_file_list = { | |
"super":"super.img", | |
"cust":"cust.img", |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
// env GOOS=linux GOARCH=arm go build -ldflags="-s -w" -v a.go | |
// upx --best --ultra-brute main | |
import ( | |
"fmt" | |
"time" | |
"github.com/cloudflare/cloudflare-go" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns doubanbook-cralwer.core | |
(:require [clj-http.client :as http] | |
[clojure.core.async :refer [go-loop chan <! >!! <!!] :as a] | |
[taoensso.carmine :as car :refer (wcar)]) | |
(:gen-class)) | |
(def ua "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36") | |
(def redis-opts {:pool {} :spec {:uri "redis://127.0.0.1:6379/0"}}) | |
(defmacro wcar* [& body] `(car/wcar redis-opts ~@body)) | |
(def seen (atom (into #{} (wcar* (car/keys "*"))))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
表格受密码保护时,我们修改数据Excel弹出“您试图更改的单元格或图表受保护,因而是只读的。 | |
若要修改受保护单元格或图表,请先使用‘撤消工作表保护’命令(在‘审阅’选项卡的‘更改’组中)来取消保护。 | |
可能会提示输入密码。这时候我们可以用VBA宏代码破解法来破解表格保护密码: | |
第一步:打开该文件,先解除默认的“宏禁用”状态,方法是点击工具栏下的“选项”状态按钮, | |
打开“Microsoft Office安全选项”窗口,选择其中的“启用此内容”,“确定” | |
再切换到“视图”选项卡,点击“宏”→“录制宏”,出现“录制新宏”窗口,在“宏名”定义一个名称为: | |
PasswordBreaker,点击“确定”退出; | |
第二步:再点击“宏”→“查看宏”,选择“宏名”下的“PasswordBreaker”并点击“编辑”, | |
打开“Microsoft Visual Basic”编辑器,用如下内容替换右侧窗口中的所有代码: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def _connect_to_evernote(self, dev_token): | |
user = None | |
try: | |
self.client = EvernoteClient(token=dev_token) | |
self.user_store = self.client.get_user_store() | |
user = self.user_store.getUser() | |
except EDAMUserException as e: | |
err = e.errorCode | |
print("Error attempting to authenticate to Evernote: %s - %s" % (EDAMErrorCode._VALUES_TO_NAMES[err], e.parameter)) | |
return False |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
"""Simple HTTP Server With Upload. | |
This module builds on BaseHTTPServer by implementing the standard GET | |
and HEAD requests in a fairly straightforward manner. | |
see: https://gist.github.com/UniIsland/3346170 | |
""" | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import requests | |
import random | |
import socket | |
import socks | |
import time | |
from subprocess import call | |
# Mount Tor proxy into requests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from weibo import Client | |
from twitter import * | |
import json | |
import re | |
import requests | |
import Image | |
from StringIO import StringIO | |
import sys | |
reload(sys) | |
sys.setdefaultencoding("utf-8") |
NewerOlder