zdharma/zinit
lukechilds/zsh-nvm
davidparsson/zsh-pyenv-lazy
优化 oh my zsh 启动速度
ZSH 自动读取 macOS 系统代理配置并设置环境变量
我就感觉到快 —— zsh 和 oh my zsh 冷启动速度优化
-----BEGIN PGP PUBLIC KEY BLOCK----- | |
mQINBF3afN4BEACt8Fx7uEcJifw85hM0BtjXqVPHSmGl5r6Omee/sHnLtJN3hPcT | |
pNi4XuWCdxzmpPGZP4I1HlgNV3d5Yvo10xMaY3m8AXBshiziL7xo23t05JfSAenL | |
1DmLNMak40IiCVH3j6wdFvexQJnYTW0UAyK06h5TXnr1HvRJMpxdaoXhi+CN2KG5 | |
b66cnxCL0QIoQ3q2hFrTbFVqPmqBSCV0J1tCdhPsSBchumNjOxt6blhVyqL3q5II | |
o2ZlvRNdmXh1ZxDoWeOJQAWlb2BKxVxyIdcHy4E3/Kv8kKMbT12+Eix4/vaHFS5J | |
PLzTXy1o+qooFsxUpIuZb2u+5uaC4NtVor1xc5gAIKBHCk1UlAJLVarS4QDFik7J | |
gG6JZYaFHf3CGIKAMQisAq9XxRiymT8b6lbvAEmg0tuY7O0yyu3JM4j2SNSERJxu | |
rdAHSqdiXfN4XDFbCYw+ZwS70g2bwihCOnVy8A1SzMMGhDMIl7tfa98FIR9XSIOB |
#!/bin/zsh | |
fswatch ~/Desktop/1 | while read file | |
do | |
rsync -trl --delete ~/Desktop/1 ~/Desktop/2 | |
now=$(date +"%T") | |
echo "⚠️ $now ${file} synced" | |
done | |
#https://imqsc.xyz/2018/10/16/fswatch-and-rsync/ |
javascript: (function() { | |
function copyToClipboard(text) { | |
if (window.clipboardData && window.clipboardData.setData) { | |
return clipboardData.setData("Text", text); | |
} else if (document.queryCommandSupported && document.queryCommandSupported("copy")) { | |
var textarea = document.createElement("textarea"); | |
textarea.textContent = text; | |
textarea.style.position = "fixed"; | |
document.body.appendChild(textarea); | |
textarea.select(); |
(* | |
Export All Safari Tabs in All Open Windows to a Markdown File | |
July 13, 2015 | |
// SCRIPT PAGE | |
http://hegde.me/urlsafari | |
// ORIGINAL SCRIPT ON WHICH THIS SCRIPT IS BUILT | |
http://veritrope.com/code/export-all-safari-tabs-to-a-text-file |
set system static-host-mapping host-name aaid.umeng.com inet 127.0.0.1 | |
set system static-host-mapping host-name abtest-ch.snssdk.com inet 127.0.0.1 | |
set system static-host-mapping host-name activity-aghbwh.awemeughun.com inet 127.0.0.1 | |
set system static-host-mapping host-name ai.login.umeng.com inet 127.0.0.1 | |
set system static-host-mapping host-name api1.kuaishoupay.com inet 127.0.0.1 | |
set system static-host-mapping host-name api3-core-c-lf.amemv.com inet 127.0.0.1 | |
set system static-host-mapping host-name api3-normal-c-lf.amemv.com inet 127.0.0.1 | |
set system static-host-mapping host-name api5-core-c-lf.amemv.com inet 127.0.0.1 | |
set system static-host-mapping host-name api5-normal-c-lf.amemv.com inet 127.0.0.1 | |
set system static-host-mapping host-name api100-core-c333.amemv.com inet 127.0.0.1 |
// URL of the endpoint we're going to contact. | |
NSURL *url = [NSURL URLWithString:@"http://localhost:8080/my.json"]; | |
// Create a simple dictionary with numbers. | |
NSDictionary *dictionary = @{ @"numbers" : @[@1, @2, @3] }; | |
// Convert the dictionary into JSON data. | |
NSData *JSONData = [NSJSONSerialization dataWithJSONObject:dictionary | |
options:0 | |
error:nil]; |