This file contains 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
{"config":{"codeTheme":"OneDarkPro","pageThemeSyncCodeTheme":true,"openAlmightyConsole":false,"autoRun":false,"layout":"default","keepPreviousLogs":true,"codeFontSize":16},"title":"未命名","code":{"HTML":{"language":"html","content":"<div id=\"root\"></div>","resources":[]},"CSS":{"language":"css","content":"","resources":[]},"JS":{"language":"babel","content":"ReactDOM.render(\n()=> {\n\n \nconsole.log(\"hello\",location);\n\n return<h1>Hello, world!</h1>\n },\ndocument.getElementById('root')\n);","resources":[{"name":"React","url":"./lib/react@18.2.0.js"},{"name":"react-dom","url":"./lib/react-dom@18.2.0.js"}]},"VUE":{"language":"vue2","content":"","resources":[]}}} |
This file contains 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
GET /api/v2/check_health HTTP/1.1 | |
Host: athena2.api.in.zhihu.com | |
Accept: */* | |
Cookie: KLBRSID=0c06466ce400f822d240b750e6a6b31d|1657704732|1657692333 | |
User-Agent: %E7%9F%A5%E4%B9%8E%E4%B8%80%E4%BD%93%E5%8C%96%E5%B7%A5%E5%85%B7/1891 CFNetwork/1333.0.4 Darwin/21.5.0 | |
Accept-Language: zh-cn | |
Accept-Encoding: gzip, deflate | |
Connection: keep-alive | |
This file contains 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
//TS 忽略错误 | |
// @ts-ignore: Unreachable code error |
This file contains 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
#查看所有的 网络端口 | |
networksetup -listallnetworkservices | |
#设置dns 的相关文档 | |
https://superuser.com/questions/86184/change-dns-server-from-terminal-or-script-on-mac-os-x | |
#将DNS置为空 | |
sudo networksetup -setdnsservers "Apple USB Ethernet Adapter" empty | |
#修改完DNS 后清除缓存 |
This file contains 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
from platform import python_version | |
import sys | |
#获取当前执行该python 脚本的python 路径和版本 | |
print(f"{sys.executable}:{python_version()}") | |
#为xcode中的python安装对应的frida or requirements | |
#/Applications/Xcode.app/Contents/Developer/usr/bin/python3 -m pip --user install -r requirements.txt |
This file contains 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
//查看commit 所在的分支号 | |
git name-rev ${commmitId} | |
//查看某一行的改动历史,参考:https://stackoverflow.com/questions/8435343/retrieve-the-commit-log-for-a-specific-line-in-a-file | |
git log --pretty=short -u -L 155,155:git-web--browse.sh | |
查看某一个commit来自哪一个分支: | |
https://stackoverflow.com/questions/2706797/finding-what-branch-a-git-commit-came-from | |
#git 设置忽略大小写操作 |
This file contains 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
#查看端口 | |
nettop -nm tcp | |
#查看端口打开监听 | |
lsof -Pni4 | grep LISTEN | |
#kill 掉制定相关名称的所有进程 | |
ps aux | grep stf | awk '{ print $2 }' | xargs kill -9 | |
赋值文件到剪贴板: |
This file contains 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
#github git 代理设置 | |
git config --global http.https://github.com.proxy socks5://127.0.0.1:1080 | |
#GitHub git 取消代理 | |
git config --global --unset http.https://github.com.proxy | |
#github 加速访问参考地址:https://www.zhihu.com/question/27159393 | |
#github 加速访问 1 | |
将https://github.com/openstf/stf.git => https://github.com.cnpmjs.org/openstf/stf.git | |
在域名后添加cnpmjs.org,可以加速访问 |
This file contains 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
# python 源配置 | |
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple | |
#pyenv 安装 | |
function pyinst() { | |
v=$1 | |
echo "to be download version is $v" | |
wget https://npm.taobao.org/mirrors/python/$v/Python-$v.tar.xz -P ~/.pyenv/cache/; pyenv install $v | |
} |
This file contains 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
.github.com | |
||github.com | |
github.global.ssl.fastly.net | |
.githubassets.com | |
||githubassets.com | |
.githubusercontent.com | |
||githubusercontent.com | |
DNS 解析 | |
NewerOlder