Home

macOS 查看应用的bundle identifier

macOS 查看应用的bundle identifier osascript -e ‘id of app “Name of App”’ osascript -e ‘id of app “Microsoft Excel”’ 单独设置应用的显示模式 defaults write com.oracle.workbench.MySQLWorkbench NSRequiresAquaSystemAppearance -bool yes Reference Easily see any app’s bundle identifier

Read more

Tools FZF

Tools FZF Reference junegunn/fzf How FZF and ripgrep improved my workflow Why you should be using fzf, the command line fuzzy finder

Read more

VIM coc-java

VIM coc-java [language-client-index] - Language server “java” started with jdk 版本需要大于等于11 Pre-requisite: Java 11 must be installed on your machine and accessible in the PATH. 删除workspaceStorage %APPDATA%\Code\User\workspaceStorage ~/.config/Code/User/workspaceStorage/ ~/Library/Application Support/Code/User/workspaceStorage Reference

Read more

Java JDB

Java JDB jdb -attach <address> 关联一个VM -sourcepath 指定源码路径, 使用:分隔 -classpath 指定class路径, 使用:分隔 jdb -attach 1099 jdb -listen 8088 jdb –listenany jdb -tclient jdb -tserver // 指定源码路径 javac -sourcepath src -d target src/mypackage/Main.java # if you have multiple files, you can always do find . -name “*.java” -exec javac -sourcepat...

Read more

Linux sendmail

Linux sendmail 安装mailx // 卸载 yum remove sendmail yum remove postfix // 安装 yum install mailx 配置mailx vim /etc/mail.rc set from="dingkaitest@163.com" #用来发送邮件的邮箱 set smtp=smtp.163.com      #163的邮件发送服务器  set smtp-auth-user=dingkaitest  #邮箱用户名(也可以写成"dingkaitest@163.com") set smtp-auth-password=密码  #邮箱密码 set smtp-auth=login // ssl set from=xx...

Read more

Tools MySqlWorkbench

Tools MySqlWorkbench 问题 1. Fatal Python error: initfsencoding: unable to load the file system codec sys.path = ['/Applications/MySQLWorkbench.app/Contents/Resources/libraries' , '/Library/Frameworks/Python.framework/Versions/3.7/lib/python37.zip' , '/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7' , '/Library/Frameworks/Python....

Read more

Proj PostMail

Proj PostMail 名词 // 类型 tracked mail: 可以投递到信箱里, 针对500克下的信件, 有轨迹查询 registered mail(挂号): 有特殊的预防措施, 注重安全性, 遗失后会赔偿 // 大小 Small(P): A5纸或者更小的 Medium(G): A4纸大小 Package(E): 小于2kg Boxable(B): 可以装箱的, 可以投进家庭邮箱 Non-boxable(N): 不可装箱的, 不能投进家庭邮箱 // 税号 EORI: 即“经营者注册和识别号码”, 欧盟国家内清关必备的欧盟税号。如果你申请了一个EORI号码,你的进出口商品将更容易通过海关. VAT: 这个号码被称为“增值税”。这是一种消费税,这个商品的价值有关,也和商...

Read more

Python uuid and token

Python uuid and token uuid import uuid uuid.uuid1() uuid.uuid3(namespace, len) uuid.uuid4() uuid.uuid5(namespace, len) random import random import string print(‘‘.join(random.sample(string.ascii_letters + string.digits + string.ascii_uppercase + string.digits, 64))) Reference

Read more