Skip to content

Instantly share code, notes, and snippets.

View WymanY's full-sized avatar
💭
I may be slow to respond.

Wymany Wu WymanY

💭
I may be slow to respond.
  • Qunar
  • Beijing
View GitHub Profile
@WymanY
WymanY / coderun.json
Created August 8, 2022 09:25
未命名
{"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":[]}}}
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
@WymanY
WymanY / ignore.js
Created April 22, 2021 12:54
[ts eslint] ignore error #ts #js
//TS 忽略错误
// @ts-ignore: Unreachable code error
@WymanY
WymanY / dns.shell
Last active April 28, 2021 15:15
[mac dns]dns 设置相关 #dns
#查看所有的 网络端口
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 后清除缓存
@WymanY
WymanY / python.py
Last active November 25, 2021 01:04
[python]python小知识 #python
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
@WymanY
WymanY / git.js
Last active May 7, 2021 03:51
[git] git 相关命令行备忘 #git
//查看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 设置忽略大小写操作
@WymanY
WymanY / shell.sh
Last active September 7, 2020 13:22
[shell 脚本]常见的shell 脚本命令
#查看端口
nettop -nm tcp
#查看端口打开监听
lsof -Pni4 | grep LISTEN
#kill 掉制定相关名称的所有进程
ps aux | grep stf | awk '{ print $2 }' | xargs kill -9
赋值文件到剪贴板:
@WymanY
WymanY / proxy
Last active August 24, 2020 13:28
[代理]git 等网站代理 #proxy #mirror
#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,可以加速访问
@WymanY
WymanY / config
Last active December 13, 2020 07:54
Python 等配置
# 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
}
@WymanY
WymanY / pac.txt
Last active July 5, 2020 10:53
pac
.github.com
||github.com
github.global.ssl.fastly.net
.githubassets.com
||githubassets.com
.githubusercontent.com
||githubusercontent.com
DNS 解析
#google