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
{ | |
"rank_total" : 100, | |
"date" : "20180802", | |
"contents" : [ | |
{ | |
"user_id" : 5201223, | |
"illust_page_count" : "1", | |
"illust_series" : false, | |
"illust_upload_timestamp" : 1533085871, | |
"yes_rank" : 1, |
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
## nginx configuration | |
server { | |
listen 80; | |
listen [::]:80; | |
root /var/www/site.xxx.com; | |
index index.php index.html index.htm index.nginx-debian.html; | |
server_name site.xxx.com; |
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
## nginx configuration | |
server { | |
listen 80; | |
listen [::]:80; | |
root /var/www/site.xxx.com; | |
index index.php index.html index.htm index.nginx-debian.html; | |
server_name site.xxx.com; |
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/bash | |
# can be A or AAAA | |
do_record=AAAA | |
# the interface to get ipv6 address | |
iface=eth0 | |
# the static suffix we should add to | |
v6_suf=53 | |
mail="[email protected]" |
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
javascript: | |
(function(){ | |
if (f=document.querySelector('frame[name="Main"]')) { | |
window.location.href = f.src; | |
} | |
document.body.style.margin = "10%"; | |
document.body.style.lineHeight = "2em"; | |
document.body.bgColor = "#F5F5B5"; | |
document.body.text = "#000000"; |
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/bash | |
## 使用文件系统镜像来实现文件夹容量限额 | |
help()( | |
echo "设置目录限额 | |
用法: | |
quota 添加一个限额目录 | |
list 列出限额的目录 | |
unquota 某目录不再限额 | |
quit 退出程序 |
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
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
# wol.py 远程唤醒计算机 | |
# 参见 http://code.activestate.com/recipes/358449-wake-on-lan/ | |
# https://github.com/bentasker/Wake-On-Lan-Python | |
# 原作者 Fadly Tabrani, B Tasker,协议 PSF | |
## 可以改为自己需要远程唤醒的计算机的 MAC 地址 | |
MACADDRESS = '00:13:0d:e4:60:61' |
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
配置 | |
安装:: | |
sudo aptitude install openvpn udev lzop easy-rsa | |
生成 CA 证书:: | |
sudo su | |
make-cadir /etc/openvpn/easy-rsa/2.0 |
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
diff --git a/winetricks-zh b/winetricks-zh | |
--- a/winetricks-zh | |
+++ b/winetricks-zh | |
@@ -9857,6 +9857,20 @@ w_metadata fakechinese fonts \ | |
load_fakechinese() | |
{ | |
+ fc-list | grep -q "Noto Sans CJK SC Thin" && { | |
+ w_register_font_replacement "Microsoft JhengHei" "Noto Sans CJK SC Thin" | |
+ w_register_font_replacement "Microsoft YaHei" "Noto Sans CJK SC Thin" |
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
修改 wifi 验证服务器地址 | |
安卓 5.0~6.0 可以 | |
adb shell settings put global captive_portal_server google.cn | |
安卓 7.0~7.1 同上并需要服务器支持 https | |
安卓 7.1.1 可以 | |
adb shell settings put global captive_portal_https_url https://google.cn/generate_204 | |
上述 google.cn 可以也换成 www.qualcomm.cn 高通中国的验证服务器 |