Skip to content

Instantly share code, notes, and snippets.

View yuechuanx's full-sized avatar
🎯
Focusing

Yuechuan Xiao yuechuanx

🎯
Focusing
View GitHub Profile
@yuechuanx
yuechuanx / cloudSettings
Last active April 14, 2021 04:00 — forked from ryerh/tmux-cheatsheet.markdown
VScode settings
{"lastUpload":"2021-04-14T04:00:28.093Z","extensionVersion":"v3.4.3"}
@yuechuanx
yuechuanx / mysqldump-snippet
Created November 16, 2022 02:37
The command about mysqldump | mysqldump 导出数据相关的命令
# --all-databases , -A
# 导出全部数据库
mysqldump -uroot -p --all-databases
# --all-tablespaces , -Y
# 导出全部表空间。
mysqldump -uroot -p --all-databases --all-tablespaces
# --no-tablespaces , -y
# 不导出任何表空间信息。
# 更新与升级
brew update 自动升级homebrew(从github下载最新版本)
brew outdated 检测已经过时的软件
brew upgrade 升级所有已过时的软件,即列出的以过时软件
brew upgrade <formula> 升级指定的软件
brew pin <formula> 禁止指定软件升级
brew unpin <formula> 解锁禁止升级
brew upgrade --all 升级所有的软件包,包括未清理干净的旧版本的包
# 清理与卸载
@yuechuanx
yuechuanx / jenkinsfile
Created September 8, 2023 02:50
Jenkins Pipeline Syntax Example
pipeline {
// ----------------------------------------------------------------------//
// 在任何可用代理上执行管道或阶段
agent any
// 当应用于pipeline块的顶层时,不会为整个管道运行分配全局代理,并且每个stage部分都需要包含其自己的agent部分
agent none
// 使用提供的标签在Jenkins环境中可用的代理上执行管道或阶段。不同机器可以相同 label
agent {
@yuechuanx
yuechuanx / jvm_option_sample
Created September 12, 2023 06:06
JVM Option Sample
# -Xms:设置JVM初始堆内存大小,默认为物理内存的1/64,可以设置为比如1024m。
# -Xmx:设置JVM最大堆内存大小,默认为物理内存的1/4,可以设置为比如1024m。
# -Xmn:设置新生代内存大小,一般配置为整个堆的3/8,比如768m。
# -XX:MetaspaceSize:设置元空间大小,默认为21M,可以设置为比如256m。
# -XX:MaxMetaspaceSize:设置最大元空间大小,默认无限制,可以设置为比如512m。
# -XX:SurvivorRatio:设置新生代中Eden区与Survivor区的大小比值,默认为8,可以设置为比如4。
# -XX:NewRatio:配置新生代和老年代在堆结构的占比,默认为2,可以设置为比如4。
# -XX:MaxTenuringThreshold:设置垃圾最大年龄,如果设置为0则不经过Survivor区直接进入老年代,默认为15。
# -Xss:设置每个线程的堆栈大小,一般默认为512k~1024k,可以设置为比如256k。