Skip to content

Instantly share code, notes, and snippets.

View imyelo's full-sized avatar
🥽
Not here

yelo imyelo

🥽
Not here
View GitHub Profile
@imyelo
imyelo / v2ray-protobuf.js
Last active June 26, 2019 13:24
Compile V2Ray Protobuf to JavaScript
// Inspired by https://unpkg.com/@shynome/v2ray@4.18.6/package.json
const path = require('path')
const { src, dest } = require('gulp')
const through = require('through2')
const Vinyl = require('vinyl')
const pbjs = require('protobufjs/cli/pbjs')
const pbts = require('protobufjs/cli/pbts')
const GOPATH = process.env.GOPATH

Keybase proof

I hereby claim:

  • I am imyelo on github.
  • I am yelo (https://keybase.io/yelo) on keybase.
  • I have a public key whose fingerprint is E6CE 9B63 DC80 C5DB A64F 9CF0 7B2E CF7E 9849 FA71

To claim this, I am signing this object:

@imyelo
imyelo / test.js
Last active February 26, 2019 12:29
comparing signstr encoding of `alipay.user.agreement.page.sign`
// comparing signstr encoding of `alipay.user.agreement.page.sign`
const querystring = require('querystring')
function step1 (params) {
return querystring.stringify(params)
}
function step2 (qs) {
return encodeURIComponent(qs)
@imyelo
imyelo / fix-timezone-conflicts.reg
Created January 14, 2019 18:43
fix timezone conflicts in dual systems with windows and ubuntu
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation]
"RealTimeIsUniversal"=hex(b):01,00,00,00,00,00,00,00
@imyelo
imyelo / frpc.service
Last active April 29, 2024 04:34
run frp client as a service on windows and ubuntu / debian
# 1. put frpc and frpc.ini under /usr/local/frpc/
# 2. put this file (frpc.service) at /etc/systemd/system
# 3. run `sudo systemctl daemon-reload && sudo systemctl enable frpc && sudo systemctl start frpc`
# Then we can manage frpc with `sudo service frpc {start|stop|restart|status}`
# See also: https://nosame.net/use-frp-to-reverse-proxy-your-nas/
# Alternative for server:
# - Offical: https://github.com/fatedier/frp/blob/a4cfab6/conf/systemd/frpc%40.service
[Unit]
@imyelo
imyelo / SimSun.ttf.md
Last active December 24, 2018 13:46
Wine configuration for 支付宝小程序开发工具
@imyelo
imyelo / xiami-legacy.user.js
Last active December 12, 2018 07:48
虾米新旧版切换
// ==UserScript==
// @name 虾米新旧版切换
// @namespace http://www.xiami.com/
// @version 0.1
// @author yelo <zhihuzeye@gmail.com>
// @homepage https://gist.github.com/imyelo/98ec319fc72574f46f089777fc8a23f6
// @match https://www.xiami.com/*
// @require https://unpkg.com/js-cookie@2.2.0/src/js.cookie.js
// @grant GM_notification
// @grant GM_registerMenuCommand
@imyelo
imyelo / genesis_public_key
Last active February 8, 2018 15:49
genesis_public_key
041530331a97ccc87138a48b10dc88681a4473594badce2a5d07b310328e12ad0539f3b207c0e753824d131846225173f97442edd14d752148f8fdb5609eb3344c
discountry
@imyelo
imyelo / app.mina
Last active March 9, 2018 09:38
tinajs - intro example
<!-- /app.mina -->
<config>
{
"pages": [
"pages/home.mina",
]
}
</config>
@imyelo
imyelo / dingtalk-fullscreen.css
Created May 27, 2017 06:33
dingtalk full screen stylesheet
#layout-main {
width: 100%;
flex: 0 1 100%;
box-sizing: border-box;
margin: 20px 0;
padding: 0 20px;
}
#body {
height: 100%;
}