Skip to content

Instantly share code, notes, and snippets.

💊
Emmmmmm

ihc童鞋@提不起劲 ihciah

💊
Emmmmmm
Block or report user

Report or block ihciah

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@ihciah
ihciah / README.MD
Last active Jul 13, 2019
V2ray MTProto through Shadowsocks
View README.MD

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
Port forward for SMB
View portfw.go
package main
import (
"flag"
"io"
"log"
"net"
"os"
"time"
)
View ss-test.py
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 Jul 5, 2019
小米路由器 Pro (R3P) 配置shadowsocks透明代理
View README.md

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

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

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

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

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

@ihciah
ihciah / README.md
Last active Jul 2, 2019
小米路由器 Pro (R3P) 静态编译 shadowsocks
View README.md
@ihciah
ihciah / tasker.js
Created Sep 19, 2018
Forward SMS using Tasker
View tasker.js
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 Jun 9, 2019
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.

@ihciah
ihciah / merge_car.py
Created Aug 3, 2018
某辣鸡微信小游戏的挂机脚本==
View merge_car.py
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 Jul 20, 2018
Fudan Keep Online
View net.py
# -*- 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 Dec 23, 2017
dalao-Painter in Haskell
View dalao-Painter.hs
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(*.*)",["*.*"])]
You can’t perform that action at this time.