Skip to content

Instantly share code, notes, and snippets.

AMQP 0.9.1 Quick Reference, quickref

命令 Java API (Channel接口) 功能描述
basic
basic.ack basicAck Acknowledge one or more messages
basic.cancel basicCancel End a queue consumer
basic.consume basicConsume Start a queue consumer
basic.deliver - Notify the client of a consumer message
basic.get basicGet Direct access to a queue
@yulewei
yulewei / java -XX:PrintInterpreter (x86)
Last active February 21, 2018 15:30
java -client -Xint -XX:+UnlockDiagnosticVMOptions -XX:+PrintInterpreter -XX:PrintAssemblyOptions=intel
----------------------------------------------------------------------
Interpreter
code size = 69K bytes
total space = 223K bytes
wasted space = 154K bytes
# of codelets = 266
avg codelet size = 268 bytes
@yulewei
yulewei / java -XX:PrintInterpreter (x64)
Last active February 21, 2018 15:32
java -client -Xint -XX:+UnlockDiagnosticVMOptions -XX:+PrintInterpreter -XX:PrintAssemblyOptions=intel
This file has been truncated, but you can view the full file.
----------------------------------------------------------------------
Interpreter
code size = 119K bytes
total space = 255K bytes
wasted space = 136K bytes
# of codelets = 266
avg codelet size = 460 bytes
Running generated-configure.sh
`configure' configures OpenJDK jdk9 to adapt to many kinds of systems.
Usage: /Users/yulewei/openjdk/jdk9-hg/configure [OPTION]... [VAR=VALUE]...
To assign environment variables (e.g., CC, CFLAGS...), specify them as
VAR=VALUE. See below for descriptions of some of the useful variables.
Defaults for the options are specified in brackets.
@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]
$ ./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
/* 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>
$ ./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"
@yulewei
yulewei / bash-shell-env-var.md
Last active December 11, 2019 08:37
bash shell 环境变量

bash 特殊参数

变量 描述
* 含有所有命令行参数(以单个文本值的形式)
@ 含有所有命令行参数(以多个文本值的形式)
# 命令行参数数目
? 最近使用的前台进程的退出状态码
- 当前命令行选项标记
$ 当前 shell 的进程 ID(PID)