Skip to content

Instantly share code, notes, and snippets.

@ihciah
ihciah / README.MD
Last active June 4, 2023 01:23
V2ray MTProto through Shadowsocks

V2ray MTProto through Shadowsocks

Why use it

The MTProto is easy to block; shadowsocks is hard to identify but cannot work without a client.

You can deylop this docker image to run a relay inside the firewall (China/Russia etc.), it provide a MTProto and all the packets will be sent through shadowsocks protocol.

How to run

@ihciah
ihciah / portfw.go
Last active May 21, 2019 09:34
Port forward for SMB
package main
import (
"flag"
"io"
"log"
"net"
"os"
"time"
)
@ihciah
ihciah / ss-test.py
Created January 9, 2019 11:01
speed-test
import requests
import time
proxies_original = {
'http': 'socks5://127.0.0.1:18081',
'https': 'socks5://127.0.0.1:18081'
}
proxies_my = {
'http': 'socks5://127.0.0.1:18080',
'https': 'socks5://127.0.0.1:18080'
}
@ihciah
ihciah / README.md
Last active April 8, 2020 06:09
小米路由器 Pro (R3P) 配置shadowsocks透明代理

小米路由器 Pro (R3P) 配置shadowsocks透明代理

新入了一个小米路由器,记录一下折腾过程。

首先自动分流科学上网是必须的。

因为小米的ROM本身就是基于openwrt的,所以第一步只需要先走官方途径拿到root权限。

有了权限就只需要找一个别人造的轮子部署一下即可。

@ihciah
ihciah / README.md
Last active February 8, 2021 07:32
小米路由器 Pro (R3P) 静态编译 shadowsocks
@ihciah
ihciah / tasker.js
Created September 19, 2018 05:46
Forward SMS using Tasker
var SMS = global('SMSRB');
var SENDER = global('SMSRF');
var SMSCONTENT = SMS + "\nSender: " + SENDER + "\nFrom Mobile"
var url = "https://xxxxxxxx/sendMessage?chat_id=0000000";
var xhttp = new XMLHttpRequest();
xhttp.open("POST", url, false);
xhttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");
xhttp.send("text="+encodeURIComponent(SMSCONTENT));
@ihciah
ihciah / README.MD
Last active February 2, 2024 00:08
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.

Usage

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

@ihciah
ihciah / merge_car.py
Created August 3, 2018 05:28
某辣鸡微信小游戏的挂机脚本==
import requests
import time
import json
import random
headers = {
"User-Agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 11_4_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15G77 MicroMessenger/6.7.1",
"Referer": "https://servicewechat.com/wx89db226245a4cdc4/18/page-frame.html",
"Content-Type": "application/json",
"Accept-Encoding": "gzip, deflate"
@ihciah
ihciah / net.py
Created July 20, 2018 08:25
Fudan Keep Online
# -*- coding: utf-8 -*-
import requests
import time
def login():
username = ""
password = ""
url = "http://10.108.255.249/include/auth_action.php"
data = {"username": username,
@ihciah
ihciah / dalao-Painter.hs
Last active December 23, 2017 15:23
dalao-Painter in Haskell
module Main where
import Graphics.UI.WX
import Graphics.UI.WXCore
-- constants: radius of the ball, and the maximal x and y coordinates
maxX, maxY :: Int
maxY = 600
maxX = 800
allowed_types = [("Bitmaps(*.bmp)",["*.bmp"]),("Any file(*.*)",["*.*"])]
save_type = [("Any file(*.*)",["*.*"])]