软件合集

command tool

  • albert
  • axel
  • git
  • gitk
  • oh-my-zsh
  • tig
  • tmux
  • zsh

axel

1
axel -n 10 -a https://download.url

proxy

script
1
2
3
4
5
6
7
8
9
10
11
function openproxy() {
export https_proxy=https://127.0.0.1:1080
export http_proxy=http://127.0.0.1:1080
export all_proxy=socks5://127.0.0.1:1080
}

function offproxy() {
unset https_proxy
unset http_proxy
unset all_proxy
}

killByName

script
1
2
3
function killByName() {
sudo kill -9 $(ps -aux | grep $1 | awk '{print $2}')
}

Gnome

extensions

  • Clipboard Indicator
  • Dash to dock
  • Screenshot Tool
  • Topicons plus
  • Unite
  • User themes

themes

  • Mojave-light
  • Mojave-dark

Linux GUI software

  • calibre
  • goland
  • kchmViewer
  • phpstorm
  • OBS Studio (录屏软件)
  • Typora
  • XMind ZEN

PhpStorm

useful command

  • reset to factory settings rm -rf ~/.PhpStorm2018.3

some path

  • app cache path ~/.PhpStorm2018.3 /Users/rovast/Library/Preferences/PhpStorm2018.3
  • keymap path ~/.PhpStorm2018.3/config/keymaps/ /Users/rovast/Library/Preferences/PhpStorm2018.3/keymaps

keymap

  • sublime

plugins

  • DynamicReturnTypePlugin
  • CodeGlance
  • Material Theme UI Atom One Dark color:#7F7CE9

WebStorm

配置 webpack 别名

  • vue cli3 下的 @ alias 解决方案

https://intellij-support.jetbrains.com/hc/en-us/community/posts/360000578284--alias-in-vue-cli-3-projects

  1. 打开 webpack 配置,即 ctrl + shift + p
  2. 输入 node_modules/@vue/cli-service/webpack.config.js

.desktop

Jetbrains 家族创建桌面快捷方式,可以直接 tools -> create desktop entry 即可

/usr/share/applications 新建 .desktop 文件

1
2
3
4
5
6
7
8
9
10
[Desktop Entry]
Encoding=UTF-8
Name=phpstorm IDE
Comment=The Smarter Way to Code
Exec=/bin/sh "/home/rovast/Software/PhpStorm-182.4129.45/bin/phpstorm.sh"
Icon=/home/rovast/Software/PhpStorm-182.4129.45/bin/phpstorm.png
Categories=Application;Development;Java;IDE
Version=1.0
Type=Application
Terminal=0

QA

  • 文件导航失效(intellij-navigate-to-file-stopped-working)

点击菜单 File | Invalidate Caches ,然后 restart 即可

参考: https://stackoverflow.com/questions/10588408/intellij-navigate-to-file-stopped-working

Wechat

windows 微信多开

替换路径即可

1
2
3
4
5
6
7
@echo off

start /d "C:\Program Files (x86)\Tencent\WeChat\" wechat.exe

start /d "C:\Program Files (x86)\Tencent\WeChat\" wechat.exe

exit

MacOS 微信多开

1
2
#!/bin/bash
open -n /Applications/WeChat.app/Contents/MacOS/WeChat && open -n /Applications/WeChat.app/Contents/MacOS/WeChat

Nginx

Nginx 配置跨域

script
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
server {
listen 80;
server_name demo.test;
index index.php index.html;

error_log /var/log/nginx/demo-error.log;
access_log /var/log/nginx/demo-access.log;

root /home/rovast/Code/demo/public;

location / {
try_files $uri $uri/ /index.php$is_args$args;
}

location ~ \.php {
add_header Access-Control-Allow-Origin *;
add_header Access-Control-Allow-Methods 'GET, POST, OPTIONS, PUT';

try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
fastcgi_index index.php;
fastcgi_pass 127.0.0.1:9000;
fastcgi_read_timeout 180;
}

}