Skip to main content
intro

Wang Zhi

  • email: ben.wangz@foxmail.com
  • blog: https://blog.geekcity.tech

Summary

  • experienced Java developer with 8+ years of expertise in designing and implementing scalable data processing platforms.
  • proficient in Apache Flink, Kubernetes, and handling large volumes of data.
  • proven ability to lead teams and deliver high-performance systems.
  • achieved developing data processing platforms for various companies, including Alibaba Group, ZhejiangLab and tianrang-inc.

ben.wangzAbout 3 min
commands

what

  • record some useful commands

ben.wangzLess than 1 minutecommandslinuxshelltool
git

init global config

git config --global user.name "ben.wangz"
git config --global user.email ben.wangz@foxmail.com
git config --global pager.branch false
git config --global pull.ff only
git --no-pager diff

ben.wangzLess than 1 minute
java

show gc info

jstat -gcutil $pid 1000 100

ben.wangzLess than 1 minute
k8s

completion for bash

source<(kubectl completionbash)

port forwarding


ben.wangzLess than 1 minute
mac

install rosetta for apple m1 chip

/usr/sbin/softwareupdate --install-rosetta --agree-to-license

mac chrome access https with self-signed certificate

just type thisisunsafe after open the website


ben.wangzLess than 1 minute
mysql

show transaction info

select 
    trx_id, 
    trx_started, 
    trx_wait_started, 
    trx_mysql_thread_id, 
    trx_query, 
    trx_operation_state, 
    trx_tables_locked 
from information_schema.INNODB_TRX;

ben.wangzLess than 1 minute
python

I need a random string(including digits)

python -c "import random;import string;print(''.join(random.sample(string.ascii_letters + string.digits, 8)))"

ben.wangzLess than 1 minute