Skip to content

Instantly share code, notes, and snippets.

View lizan's full-sized avatar

Lizan Zhou lizan

  • San Francisco Bay Area
  • 22:36 (UTC -07:00)
  • X @zlizan
View GitHub Profile
@lizan
lizan / chrome-20121211.crash
Created December 10, 2012 17:18
Chrome Crash Log
Process: Google Chrome [524]
Path: /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
Identifier: com.google.Chrome
Version: 23.0.1271.95 (1271.95)
Code Type: X86 (Native)
Parent Process: launchd [259]
Date/Time: 2012-12-11 01:55:06.950 +0900
OS Version: Mac OS X 10.7.5 (11G63)
Report Version: 9
@lizan
lizan / bazel-cmakelists
Last active September 15, 2020 17:17
Transfrom bazel C++ target to CMakeLists.txt only for IDEs
#!/usr/bin/env python2.7
#
# A script to generate CMakeLists.txt from bazel C++ target.
# With CMakeLists.txt file, it can be opened directly from CLion.
#
# Usage:
# $ bazel-cmakelists
#
# CMake also support generating other IDE project files such as Eclipse and Xcode.
# Run following command additionally to generate Xcode project:
@lizan
lizan / README.md
Last active November 21, 2017 00:52
proto descriptor

MD5: 77c57f42b536325d0e489a684335e040

static_resources:
listeners:
- address:
socket_address:
address: 0.0.0.0
port_value: 8000
filter_chains:
- filters:
- name: envoy.http_connection_manager
config:
[2018-03-28 21:29:13.903][11163][info][main] source/server/server.cc:187] initializing epoch 0 (hot restart version=9.200.16384.127.options=capacity=16384, num_slots=8209 hash=228984379728933363)
[2018-03-28 21:29:13.911][11163][debug][main] source/server/server.cc:215] admin address: 0.0.0.0:8081
[2018-03-28 21:29:13.914][11166][debug][grpc] source/common/grpc/google_async_client_impl.cc:37] completionThread running
[2018-03-28 21:29:13.916][11163][debug][upstream] source/common/upstream/cluster_manager_impl.cc:651] adding TLS initial cluster dummy
[2018-03-28 21:29:13.917][11163][debug][upstream] source/common/upstream/cluster_manager_impl.cc:651] adding TLS initial cluster local_envoy
[2018-03-28 21:29:13.917][11163][debug][upstream] source/common/upstream/upstream_impl.cc:685] starting async DNS resolution for 127.0.0.1
[2018-03-28 21:29:13.917][11163][debug][upstream] source/common/upstream/upstream_impl.cc:692] async DNS resolution complete for 127.0.0.1
[2018-03-28 21:29:13.917][11163][debug][upstream]
bin/gobuild.sh /home/zlizan/go/out/linux_amd64/release/istioctl istio.io/istio/pkg/version ./istioctl/cmd/istioctl
real 0m0.687s
user 0m1.360s
sys 0m0.588s
./install/updateVersion.sh -a gcr.io/istio-perf-zlizan,dec9966b5a80719cac5c148fb48fc662f1f2bbf2
/tmp/templates ~/go/src/istio.io/istio
~/go/src/istio.io/istio
/tmp/templates/addons ~/go/src/istio.io/istio
~/go/src/istio.io/istio
struct LcNode {
uint32_t branch_ : 5;
uint32_t skip_ : 7;
uint32_t address_ : 20; // If this 20-bit size changes, please change MaxLcTrieNodes too.
};
static void StructVectorInitialization(benchmark::State& state) {
for (auto _ : state) {
std::vector<LcNode> struct_vector;
struct_vector.resize(2000000);
Enabled checks:
abseil-string-find-startswith
boost-use-to-string
bugprone-argument-comment
bugprone-assert-side-effect
bugprone-bool-pointer-implicit-conversion
bugprone-copy-constructor-init
bugprone-dangling-handle
bugprone-exception-escape
bugprone-fold-init-type
This file has been truncated, but you can view the full file.
Enabled checks:
abseil-string-find-startswith
bugprone-argument-comment
bugprone-assert-side-effect
bugprone-bool-pointer-implicit-conversion
bugprone-copy-constructor-init
bugprone-dangling-handle
bugprone-exception-escape
bugprone-fold-init-type
bugprone-forward-declaration-namespace
This file has been truncated, but you can view the full file.
Enabled checks:
abseil-string-find-startswith
bugprone-argument-comment
bugprone-assert-side-effect
bugprone-bool-pointer-implicit-conversion
bugprone-copy-constructor-init
bugprone-dangling-handle
bugprone-exception-escape
bugprone-fold-init-type
bugprone-forward-declaration-namespace