Skip to content

Instantly share code, notes, and snippets.

View amqp-quickref.md

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 (x64)
Last active Feb 21, 2018
java -client -Xint -XX:+UnlockDiagnosticVMOptions -XX:+PrintInterpreter -XX:PrintAssemblyOptions=intel
View java -XX:PrintInterpreter (x64)
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
@yulewei
yulewei / java -XX:PrintInterpreter (x86)
Last active Feb 21, 2018
java -client -Xint -XX:+UnlockDiagnosticVMOptions -XX:+PrintInterpreter -XX:PrintAssemblyOptions=intel
View java -XX:PrintInterpreter (x86)
----------------------------------------------------------------------
Interpreter
code size = 69K bytes
total space = 223K bytes
wasted space = 154K bytes
# of codelets = 266
avg codelet size = 268 bytes
View openjdk9 configure --help
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 Mar 10, 2018
$ gradle tasks --all
View gradle-tasks.txt
: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]
View catalina.sh-help.txt
$ ./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 / bash-shell-env-var.md
Last active Dec 11, 2019
bash shell 环境变量
View bash-shell-env-var.md

bash 特殊参数

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