- Download from https://www.fontpalace.com/font-download/SimSun/
- Copy into
~/.wine/driver_c/windows/Fonts/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function focus (container = document.body) { | |
let focused = void 0 | |
let originScrollTop = void 0 | |
function focusin (e) { | |
focused = e.target | |
originScrollTop = container.originScrollTop | |
} | |
function focusout (e) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
## # Howto | |
## 1. write /etc/shadowsocks.json | |
## 2. exec the setup.sh | |
## | |
## ```sh | |
## curl https://gist.githubusercontent.com/imyelo/2f7102907c763fc6213a5ed040b82170/raw/setup.sh | sh | |
## ``` | |
## |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#layout-main { | |
width: 100%; | |
flex: 0 1 100%; | |
box-sizing: border-box; | |
margin: 20px 0; | |
padding: 0 20px; | |
} | |
#body { | |
height: 100%; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- /app.mina --> | |
<config> | |
{ | |
"pages": [ | |
"pages/home.mina", | |
] | |
} | |
</config> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
041530331a97ccc87138a48b10dc88681a4473594badce2a5d07b310328e12ad0539f3b207c0e753824d131846225173f97442edd14d752148f8fdb5609eb3344c | |
discountry |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name 虾米新旧版切换 | |
// @namespace http://www.xiami.com/ | |
// @version 0.1 | |
// @author yelo <[email protected]> | |
// @homepage https://gist.github.com/imyelo/98ec319fc72574f46f089777fc8a23f6 | |
// @match https://www.xiami.com/* | |
// @require https://unpkg.com/[email protected]/src/js.cookie.js | |
// @grant GM_notification | |
// @grant GM_registerMenuCommand |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Windows Registry Editor Version 5.00 | |
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation] | |
"RealTimeIsUniversal"=hex(b):01,00,00,00,00,00,00,00 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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) |