start new:
tmux
start new with session name:
tmux new -s myname
| { | |
| "before": null, | |
| "after": | |
| { | |
| "O_ORDERKEY": 2, | |
| "O_CUSTKEY": 78002, | |
| "O_ORDERSTATUS": "O", | |
| "O_TOTALPRICE": "46929.18", | |
| "O_ORDERDATE": "1996-12-01", | |
| "O_ORDERPRIORITY": "1-URGENT", |
| version: '3' | |
| services: | |
| zookeeper: | |
| image: confluentinc/cp-zookeeper:7.2.1 | |
| container_name: zookeeper | |
| environment: | |
| ZOOKEEPER_CLIENT_PORT: 2181 | |
| kafka1: | |
| image: confluentinc/cp-kafka:7.2.1 | |
| container_name: kafka1 |
| { | |
| "schema": { | |
| "type": "struct", | |
| "fields": [ | |
| { | |
| "type": "struct", | |
| "fields": [ | |
| { | |
| "type": "int32", | |
| "optional": true, |
| Latency Comparison Numbers | |
| -------------------------- | |
| L1 cache reference 0.5 ns | |
| Branch mispredict 5 ns | |
| L2 cache reference 7 ns 14x L1 cache | |
| Mutex lock/unlock 25 ns | |
| Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
| Compress 1K bytes with Zippy 3,000 ns 3 us | |
| Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
| Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD |
| // Linux获取当前时区的时间 | |
| #include <iostream> | |
| #include <unistd.h> | |
| #include <stdio.h> | |
| #include <time.h> | |
| int main(int argc, char *argv[]) | |
| { |
| // 2017.2.17 | |
| #include <iostream> | |
| #include <unistd.h> | |
| #include <stdio.h> | |
| #include <string.h> | |
| #include <stdint.h> | |
| struct yfs_dir_entry { | |
| uint32_t inode; /* Inode number */ | |
| uint16_t rec_len; /* Directory entry length */ |
| #!/bin/sh | |
| ## | |
| # Install autoconf, automake and libtool smoothly on Mac OS X. | |
| # Newer versions of these libraries are available and may work better on OS X | |
| # | |
| # This script is originally from http://jsdelfino.blogspot.com.au/2012/08/autoconf-and-automake-on-mac-os-x.html | |
| # | |
| export build=~/devtools # or wherever you'd like to build |
| #!/bin/bash | |
| # | |
| # backup - Tiny script used to backup folders. This | |
| # is an exercise for learning shell programming. | |
| # | |
| # | |
| # Join elements in array | |
| # |
| #!/usr/bin/perl -w | |
| # | |
| # search - Search a file for text. Like grep, but prints a window. | |
| # Perl, Unix/Linux/Windows... | |
| # | |
| # 23-Jan-2006, ver 1.20 | |
| # | |
| # USAGE: search [-hinBI][-s num] pattern [files ...] | |
| # | |
| # -h # usage help |