This gist is now deprecated and moved to janlay/openai-cloudflare. Stay tuned!
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
const https = require("https"); | |
const token = ""; // change this to you telegram bot token! | |
const chatId = ""; // change this to your telegram chat id! | |
const cookie = ""; // change this to your shanbay cookie! | |
const PATH_API = (page) => | |
`/wordsapp/user_material_books/blozps/learning/words/today_learning_items?ipp=10&page=${page}&type_of=NEW`; | |
const options = { |
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
<rules> | |
<service block="true" log="false"> | |
<component-filter name="tv.danmaku.bili/tv.danmaku.bili.update.UpdateService" /> | |
<component-filter name="tv.danmaku.bili/com.xiaomi.push.service.XMPushService" /> | |
<component-filter name="tv.danmaku.bili/com.xiaomi.mipush.sdk.PushMessageHandler" /> | |
<component-filter name="tv.danmaku.bili/com.xiaomi.mipush.sdk.MessageHandleService" /> | |
<component-filter name="tv.danmaku.bili/com.evernote.android.job.v14.PlatformAlarmService" /> | |
<component-filter name="com.tencent.mobileqq/com.tencent.mobileqq.qipc.QIPCServiceEx" /> | |
<component-filter name="com.tencent.mobileqq/com.tencent.pluginloader.proxy.DownloadProxyService" /> | |
<component-filter name="com.tencent.mobileqq/com.tencent.proxyinner.plugin.loader.NowQTServiceProxy" /> |
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 | |
""" | |
License: MIT License | |
Copyright (c) 2023 Miel Donkers | |
Very simple HTTP server in python for logging requests | |
Usage:: | |
./server.py [<port>] | |
""" | |
from http.server import BaseHTTPRequestHandler, HTTPServer |
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 os | |
import sys | |
import re | |
import hashlib | |
import csv | |
import time | |
import locale | |
import getopt | |
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
if 64 - 64: i11iIiiIii | |
if 65 - 65: O0 / iIii1I11I1II1 % OoooooooOO - i1IIi | |
if 73 - 73: II111iiii | |
if 22 - 22: I1IiiI * Oo0Ooo / OoO0O00 . OoOoOO00 . o0oOOo0O0Ooo / I1ii11iIi11i | |
import os | |
if 48 - 48: oO0o / OOooOOo / I11i / Ii1I | |
if 48 - 48: iII111i % IiII + I1Ii111 / ooOoO0o * Ii1I | |
if 46 - 46: ooOoO0o * I11i - OoooooooOO | |
if 30 - 30: o0oOOo0O0Ooo - O0 % o0oOOo0O0Ooo - OoooooooOO * O0 * OoooooooOO | |
if 60 - 60: iIii1I11I1II1 / i1IIi * oO0o - I1ii11iIi11i + o0oOOo0O0Ooo |
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
#!/bin/sh | |
log() { | |
logger -t vpncwatch $@ | |
} | |
SH_PID="/var/run/vpncwatch.pid" | |
VPNC="/usr/sbin/vpnc" | |
VPNC_OPTS="" | |
VPNC_PID="/var/run/vpnc/pid" |
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
#!/bin/sh | |
# This program has two feature. | |
# | |
# 1. Create a disk image on RAM. | |
# 2. Mount that disk image. | |
# | |
# Usage: | |
# $0 <dir> <size> | |
# |
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
# /etc/nginx/sites-available/fanfou.shellex.info | |
# 这儿假设的域名是 fanfou.shellex.info | |
# 请替换为实际的域名 | |
server { | |
resolver 8.8.8.8; | |
listen 443; | |
server_name fanfou.shellex.info; | |
ssl on; |
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
#!/bin/bash -x | |
SRC=$PWD/data/ | |
DEST=$PWD/web.hotot.org/ | |
echo "\033[1;31;40m[i]Sync ...\033[0m" | |
# ignore .*.swp, .hgignore, etc | |
rsync -av --exclude '.*.*' --exclude '*.coffee' --exclude 'test*' $SRC $DEST | |
# replace conf.vars.platform, key and secret | |
echo "\033[1;31;40m[i] Replace platform, key and secret ...\033[0m" |
NewerOlder