全屏浏览
缩小浏览
回到页首

mac tip---->开发的tip

delete webstorm

Besides we delete the Webstorm App, We also need to delete related config or log directory as following.

  • ~/Library/Preferences/
  • ~/Library/Caches/
  • ~/Library/Application\ Support
  • ~/Library/Logs/
> rm -rf Webstorm*(tab)

base64 command

# encode: output is SSBsb3ZlIHlvdQo=
> base64 <<< 'I love you'

# decode: output is I love you
> base64 -D <<< SSBsb3ZlIHlvdQo=

create the folder and enter it

> take a/b/c

image-20200703102920092

device connect use wifi

> adb tcpip 5555
> adb connect 192.168.1.5

install via Brewfile

# define the software in Brewfile
brew "adr-tools"

# languages support
brew 'rbenv'

# run command to install, it will find the Brewfile file by default
> brew bundle install
> brew bundle install --file="directory/Brewfile"

dump all app into Brewfile

# export the all app you installed by brew into Brewfile, useful when you want to backup.
> brew bundle dump

curl basic auth

# username and password
curl https://reqbin.com/echo -u "login:password"

# Authorization header,'bG9naW46cGFzc3dvcmQ='是"login:password"字符串的base64编码
curl https://reqbin.com/echo -H "Authorization: Basic bG9naW46cGFzc3dvcmQ="

posted @ 2020-07-23 09:15  huhx  阅读(288)  评论(0编辑  收藏  举报