Skip to content

Instantly share code, notes, and snippets.

🐱
meow sucking

meoww-bot meoww-bot

🐱
meow sucking
View GitHub Profile
@Treeki
Treeki / TurnipPrices.cpp
Last active Aug 3, 2020
AC:NH turnip price calculator
View TurnipPrices.cpp
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
// munged from https://github.com/simontime/Resead
namespace sead
{
class Random
{
@jat001
jat001 / namebase.py
Created Feb 20, 2020
Sell HNS automatically
View namebase.py
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import sys
from decimal import Decimal
from datetime import datetime
try:
import requests
import simplejson as json
@liberal-boy
liberal-boy / Vmess + TCP + TLS 方式的 HTTP 分流和网站伪装.md
Last active Jul 31, 2020
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
ForeverZer0 / RemoveGitSubModule.md
Last active Feb 18, 2020
Completely remove/delete git submodule from project
View RemoveGitSubModule.md

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
madeye / example.json
Last active Mar 16, 2020
example.json
View example.json
[
{
"server": "198.199.101.152",
"server_port": 8388,
"password": "u1rRWTssNv0p",
"method": "aes-256-cfb",
"remarks": "Example 1"
},
{
"server": "198.199.101.12",
@Lonami
Lonami / check.py
Last active Apr 6, 2020
Check who can run Telegram methods (user, bot, both)
View check.py
# 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 telethon.tl import TLRequest
@ihciah
ihciah / README.MD
Last active Jul 22, 2020
A reverse proxy for Telegram Bot API on Aliyun Function Compute / Cloudflare Workers
View README.MD

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.

Usage

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

@coeusite
coeusite / Pixel_CT4G.md
Last active Apr 21, 2020
Pixel 破解电信 4G 记录
View Pixel_CT4G.md
View unwxapkg.py
#!/usr/bin/env python2
# lrdcq
# usage python2 unwxapkg.py filename
import sys, os
import struct
class WxapkgFile(object):
nameLen = 0
View wx_t1t_hack.js
var CryptoJS = require('crypto-js')
var request = require('request-promise')
/*
* npm install crypto-js request-promise request
* node wx_t1t_hack.js
*/
// export function testEncription(msg, fullKey) {
// var fullKey = fullKey.slice(0, 16)
You can’t perform that action at this time.