Skip to content

Instantly share code, notes, and snippets.

@yulewei
yulewei / docker-commands-restructure.md
Last active August 23, 2023 11:23
Docker通用命令映射管理命令
@yulewei
yulewei / kafka-acls
Last active June 26, 2020 10:29
kafka 2.2.0 help
$ kafka-acls --help
This tool helps to manage acls on kafka.
Option Description
------ -----------
--add Indicates you are trying to add ACLs.
--allow-host <String: allow-host> Host from which principals listed in --
allow-principal will have access. If
you have specified --allow-principal
then the default for this option
will be set to * which allows access
@yulewei
yulewei / martinfowler-microservices-zh-cn.md
Last active July 21, 2023 09:55
微服务 | Martin Fowler
$ ./scripts/config
Manipulate options in a .config file from the command line.
Usage:
config options command ...
commands:
--enable|-e option Enable option
--disable|-d option Disable option
--module|-m option Turn option into a module
--set-str option string
Set option to "string"
/* This page contains the client program. The following one contains the
* server program. Once the server has been compiled and started, clients
* anywhere on the Internet can send commands (file names) to the server.
* The server responds by opening and returning the entire file requested.
*/
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
@yulewei
yulewei / bash-shell-env-var.md
Last active December 11, 2019 08:37
bash shell 环境变量

bash 特殊参数

变量 描述
* 含有所有命令行参数(以单个文本值的形式)
@ 含有所有命令行参数(以多个文本值的形式)
# 命令行参数数目
? 最近使用的前台进程的退出状态码
- 当前命令行选项标记
$ 当前 shell 的进程 ID(PID)
$ ./catalina.sh
Using CATALINA_BASE: /Users/yulewei/apache-tomcat-8.0.26
Using CATALINA_HOME: /Users/yulewei/apache-tomcat-8.0.26
Using CATALINA_TMPDIR: /Users/yulewei/apache-tomcat-8.0.26/temp
Using JRE_HOME: /Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home
Using CLASSPATH: /Users/yulewei/apache-tomcat-8.0.26/bin/bootstrap.jar:/Users/yulewei/apache-tomcat-8.0.26/bin/tomcat-juli.jar
Usage: catalina.sh ( commands ... )
commands:
debug Start Catalina in a debugger
debug -security Debug Catalina with a security manager
@yulewei
yulewei / gradle-tasks.txt
Last active March 10, 2018 12:34
$ gradle tasks --all
:tasks
------------------------------------------------------------
All tasks runnable from root project
------------------------------------------------------------
Build tasks
-----------
assemble - Assembles the outputs of this project. [jar]
build - Assembles and tests this project. [assemble, check]