2018年12月

chrome插件备忘

必备

  • Proxy SwitchyOmega
  • Markdown Preview
  • User-Agent Switcher for Chrome
  • Charset
  • Redirector

开发

  • LiveReload
  • Moesif Origin & CORS Changer
  • React Developer Tools
  • Redux DevTools
  • User JavaScript and CSS
  • Vue.js devtools

跨域插件配置

如果想要携带cookie需要配置 Access-Control-Allow-Origin

  • Access-Control-Allow-Origin: http://localhost:8080
  • Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept
  • Access-Control-Allow-Methods: GET, HEAD, POST, PUT, DELETE, CONNECT, OPTIONS, TRACE, PATCH
  • Access-Control-Allow-Credentials: true

爬虫puppeteer

https://segmentfault.com/a/1190000019539509?utm_source=tag-newest
https://www.jb51.net/article/139808.htm

BASH小工具(2)

jq

用于命令行处理json数据

  • https://github.com/stedolan/jq
  • https://www.ibm.com/developerworks/cn/linux/1612_chengg_jq/index.html

xmlstarlet

用于命令行处理xml文档

  • https://www.ibm.com/developerworks/cn/xml/x-starlet.html
  • http://xmlstar.sourceforge.net/

断点续传

rsync -P --rsh=ssh myfile.tar 192.168.205.34:/home/myfile.tar
wget --no-check-certificate -c http://192.168.3.36/myfile.tar
curl --insecure -C -o myfile.tar http://192.168.3.36/myfile.tar

直接发送tcp/udp包

dd if=binary.dat bs=160 count=1 > /dev/udp/192.168.2.5/9000
echo '0006303030304e43' | xxd -r -p | nc -l localhost 8181

www.000webhost.com