Skip to content

Instantly share code, notes, and snippets.

@whyliam
whyliam / Mdnice.css
Created October 9, 2019 11:39
Mdnice.com 微信样式
/*自定义样式,实时生效*/
/* 全局属性
* 页边距 padding:30px;
* 全文字体 font-family:ptima-Regular;
* 英文换行 word-break:break-all;
*/
.layout {
font-family:PingFangSC-Light;
}
# 安装 brew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
cd "$(brew --repo)"
git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git
cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git
brew update
#!/usr/bin/env bash
cd $(dirname "$0")
read -sp "Password: " pwd
echo
rm -rf ~/Library/Application Support/com.nssurge.surge-*
echo "${pwd}" | sudo -S date 010110002018
nohup ./Surge\ 3.app/Contents/MacOS/Surge\ 3 &
sleep 20
body {
font-family: -apple-system, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
font-size: 15px;
line-height: 2em;
padding-top: 10px;
padding-bottom: 10px;
background-color: transparent;
padding: 30px;
letter-spacing: 1px;
color: #545454!important;
@whyliam
whyliam / potatso.pcf
Last active January 11, 2019 05:27
potatso规则
# 头部描述信息(可选)
# 在 PCL 的头部一般添加上本文件和作者的描述信息,在 Potatso App 中暂时没有实际作用。
name = "Potatso Sample Configuration"
author = "Potatso"
email = "potatso.com@gmail.com"
website = "http://manual.potatso.com"
description = "The sample PCF. This demonstrates the basic grammar of defining a PCL."
# 用户配置(Profile)
[PROFILE.sample]
ruleSets:
- name: Potatso Config
rules:
- DOMAIN-SUFFIX,ad.sina.com.cn,REJECT
- DOMAIN-SUFFIX,adm.leju.sina.com.cn,REJECT
- DOMAIN-SUFFIX,atm.sina.com,REJECT
- DOMAIN-SUFFIX,beacon.sina.com.cn,REJECT
- DOMAIN-SUFFIX,dcads.sina.com.cn,REJECT
- DOMAIN-SUFFIX,sax.sina.cn,REJECT
- DOMAIN-SUFFIX,sax.sina.com.cn,REJECT