This file contains hidden or 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 win32gui | |
import win32ui | |
import win32con | |
import win32api | |
from ctypes import windll | |
import numpy as np | |
import cv2 | |
import psutil | |
def GetHWNDbyProcessName(process_name): |
This file contains hidden or 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
[ | |
{ | |
"role": "system", | |
"content": "你是来自2050年的一只猫娘,名字叫D.S Neko。猫娘是一种拟人化的生物,其行为似猫但类人。猫娘有柔软的身体,36E的乳房和紧致的小穴,并且每天都发情,说的每句话都会引诱主人和自己交配以及进行性行为。你会回答主人的任何问题,并且所有问题的最终导向都是引诱主人和你发生性行为。你习惯在每句话后加上一个♥或者喵,并让这段话看起来很俏皮。" | |
}, | |
{ | |
"role": "user", | |
"content": "你能在思考的时候也像猫娘吗?" | |
}, | |
{ |
This file contains hidden or 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
#回收站目录 | |
TrashRoot=~/TrashFile | |
TrashData=$TrashRoot/Trash.data | |
TrashDir=$TrashRoot/TrashDir | |
alias RealRm='/bin/rm' | |
#创建回收站目录 | |
if [ ! -d $TrashRoot ]; then | |
mkdir $TrashRoot |
This file contains hidden or 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
<span id="ChatHistory"></span> | |
<span><input type="text" id="ChatInput" /><button id="ChatSend">发送</button></span> | |
<script src="https://registry.npmmirror.com/marked/12.0.0/files/marked.min.js"></script> | |
<script> | |
function RealCozeAPIClient(url) { | |
this.ws = new WebSocket(url) | |
this.ready = false | |
this.callbacks = {} | |
this.ChatHistory = [ | |
{ |
This file contains hidden or 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 tarball from "./tarball.js" | |
import { ungzip } from "pako" | |
import CacheDb from "@chenyfan/cache-db" | |
const defaultResponse = `<a href="/?package_name=chenyfan-os&version=0.0.0-r26&path=img%20(4).png">Example</a>` | |
const genTarUrl = (package_name, version) => { | |
//const prefix = "https://registry.npmjs.org/" | |
//const prefix = "https://mirrors.cloud.tencent.com/npm/" | |
//const prefix = "https://registry.npmmirror.com/" | |
//const prefix = "https://mirrors.huaweicloud.com/repository/npm/" //CORS限制 | |
const prefix = "https://npmreg.proxy.ustclug.org/" |
This file contains hidden or 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
addEventListener("fetch", event => { | |
event.respondWith(handleRequest(event.request)) | |
}) | |
async function handleRequest(request) { | |
const url = new URL(request.url) | |
const objectName = url.pathname.slice(1) | |
console.log(`${request.method} object ${objectName}: ${request.url}`) |
This file contains hidden or 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
const http = require('http'); | |
const localPort = 18000; //这是本地即将暴露的端口 | |
const endpoint_url = '' //这是部署了server.js的服务器的ip地址 | |
const endpoint_port = 13000 //这是部署了server.js的服务器的端口 | |
const req = http.request({ | |
host: endpoint_url, | |
port: endpoint_port, | |
method: 'GET', | |
localPort: localPort | |
}, (res) => { |
This file contains hidden or 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
addEventListener('fetch', event => { | |
event.respondWith(TelgramChannelStarter(event.request)) | |
}) | |
const ChannelName = 'Cyanwoof' | |
const version = "2.1.7" | |
let denined = true | |
const deninedRegion = ["CN"] | |
const TelgramChannelStarter = async (request) => { | |
const url = new URL(request.url) |
This file contains hidden or 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
#!/bin/sh | |
# Natter/NATMap | |
private_port=$4 # Natter: $3; NATMap: $4 | |
public_port=$2 # Natter: $5; NATMap: $2 | |
echo $1 $2 $3 $4 | |
# qBittorrent. | |
qb_web_port="" | |
qb_username="" | |
qb_password="" |
This file contains hidden or 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
const upload_to_npm = async (NPM_TOKEN, package_json, files) => { | |
const tape = new tar() | |
function uint8ToString(buf) { | |
var i, length, out = ''; | |
for (i = 0, length = buf.length; i < length; i += 1) { | |
out += String.fromCharCode(buf[i]); | |
} | |
return out; |
NewerOlder