Skip to content

Instantly share code, notes, and snippets.

meow sucking

meoww-bot meoww-bot

meow sucking
View GitHub Profile
moesoha / worker.js
Last active Nov 11, 2020
Auto kick added member from Telegram group (deployed on CloudFlare Worker)
View worker.js
addEventListener('fetch', event => event.respondWith(handleRequest(event.request)));
// Add environment variable `TGBOT_TOKEN` via Worker-Settings
async function requestTelegramBotAPI(method, payload) {
return fetch(`${TGBOT_TOKEN}/${method}`, {
method: "POST",
headers: {
"Content-Type": "application/json; charset=utf-8"
body: !payload ? undefined : JSON.stringify(payload)
hizkifw / cloudflare-worker-youtube-dl.js
Last active Mar 25, 2021
Download YouTube videos with Cloudflare Worker
View cloudflare-worker-youtube-dl.js
* cloudflare-worker-youtube-dl.js
* Get direct links to YouTube videos using Cloudflare Workers.
* Usage:
* GET /?v=dQw4w9WgXcQ
* -> Returns a JSON list of supported formats
* GET /?v=dQw4w9WgXcQ&f=251
* -> Returns a stream of the specified format ID
Treeki / TurnipPrices.cpp
Last active Mar 22, 2021
AC:NH turnip price calculator
View TurnipPrices.cpp
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
// munged from
namespace sead
class Random
jat001 /
Created Feb 20, 2020
Sell HNS automatically
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import sys
from decimal import Decimal
from datetime import datetime
import requests
import simplejson as json
liberal-boy / Vmess + TCP + TLS 方式的 HTTP 分流和网站伪装.md
Last active Apr 14, 2021
Vmess + TCP + TLS 方式的 HTTP 分流和网站伪装
View Vmess + TCP + TLS 方式的 HTTP 分流和网站伪装.md

TCP + TLS + Web


  • 目前 Vmess + WebSocket + TLS (以下简称 wss)方式,因其特征如同 HTTPS 流量,可以隐藏 V2Ray 路径,主动侦测会得到正常 HTTP 网站响应,具有良好的伪装能力,目前被广泛用于反审查。

  • 但是如此强大的伪装能力,需要付出严重的性能代价:TLS 1.3 握手需要消耗 1-rtt,WS 握手也需要消耗 1-rtt,增大了握手延迟。V2Ray 增加了 mux 以减少握手的发生,然而实际使用中 mux 体验并不好,很多用户选择关闭。

  • 最近兴起了一个新的反审查工具——Trojan,这个工具将一个类似 Socks 的协议直接通过 TLS 传输,并将认证失败的流量交由 Web 服务器处理。降低 WS 延迟的同时,提供与 wss 方式一样的伪装能力。但是该工具较为年轻,没有路由功能,各平台图形化客户端也不完善。

ForeverZer0 /
Last active Feb 18, 2020
Completely remove/delete git submodule from project

Completely Remove Git Sub-Module

Two different methods to automate the process of removing a submodule from a git repo with a single command. Adapted from here.

NOTE: A commit is made during removal, so it is best to commit any other changes prior to executing the command.

Using as a script in your PATH (filename will be name of command)

  • Create a new file anywhere in your shell's search paths (i.e. ~/.local/bin)
  • Copy the following
madeye / example.json
Last active Mar 16, 2020
View example.json
"server": "",
"server_port": 8388,
"password": "u1rRWTssNv0p",
"method": "aes-256-cfb",
"remarks": "Example 1"
"server": "",
Lonami /
Last active Apr 6, 2020
Check who can run Telegram methods (user, bot, both)
# You should create a bot in the test servers.
# In Telegram Desktop, enter settings and type "testmode"
# Sign in with your phone number, since public phone numbers cannot create bots.
# Create a bot and grab the token.
# You can use a public test number to run as an user.
import csv
import random
from telethon import TelegramClient, functions, errors, sync
from import TLRequest
ihciah / README.MD
Last active Jan 24, 2021
A reverse proxy for Telegram Bot API on Aliyun Function Compute / Cloudflare Workers

A reverse proxy for Telegram Bot API on Aliyun Function Compute / Cloudflare Workers

To help users in China mainland access telegram api stably and conveniently with low cost, this script maybe the one you need.

The server-less means you don't have to run a server to proxy the requests, just pay as you go.


Edit key_prefix, set it to the prefix of you bot address(like /bot563441998:) can avoid abusing.

coeusite /
Last active Feb 1, 2021
Pixel 破解电信 4G 记录