$ cat ~/.gdbinit python import sys sys.path.insert(0, '/usr/share/gcc-4.8.2/python') from libstdcxx.v6.printers import register_libstdcxx_printers register_libstdcxx_printers (None) end
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { 'by_id': { 'id1': {many, fields, of, data, ...}, | |
| 'id2': {otther fields, of, data, ...}, | |
| ... | |
| }, | |
| 'ordering': [id1, id2, ...] | |
| } | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cat master_events.log |jq -c '.|select(.bucket=="default" and (.type=="vbucketMoveDone" or .type=="vbucketMoveStart"))' | jq -c -s 'group_by(.vbucket) | .[] | select(length % 2 == 1) | sort_by(.ts)' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| for file in /proc/*/status ; do awk '/VmSwap|Name/{printf $2 " " $3}END{ print ""}' $file; done | sort -k 2 -n -r | less |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ExternalProject_Add(rocksdb | |
| GIT_REPOSITORY https://github.com/couchbasedeps/rocksdb.git | |
| GIT_TAG ${_git_rev} | |
| BUILD_IN_SOURCE 1 | |
| CONFIGURE_COMMAND "" | |
| LIST_SEPARATOR " " | |
| BUILD_COMMAND CFLAGS=-Ifoo/include;-Ibar/include $(MAKE) | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <chrono> | |
| #include <cstddef> | |
| #include <cstdint> | |
| #include <limits> | |
| #include <iostream> | |
| #include <vector> | |
| #include "date.h" // From https://github.com/HowardHinnant/date/blob/master/include/date/date.h | |
| static constexpr const size_t magnitude_bits = 4; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| grep table_file_creation cbcollect_info_ns_1\@172.23.96.117_20180103-232325/kv_rocks.log|cut -d ' ' -f 4- | jq -c '[.cf_name, (.table_properties.raw_key_size + .table_properties.raw_value_size) / .table_properties.data_size]' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <atomic> | |
| #if defined(__i386__) || defined(__x86_64__) | |
| #include <cpuid.h> | |
| #endif | |
| #include <cstdio> | |
| #include <chrono> | |
| #include <cinttypes> | |
| static inline uint64_t rdtscp( uint32_t & aux ) | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ cat undefined.cc | |
| #include <stdexcept> | |
| enum Enum { | |
| A, | |
| B, | |
| C, | |
| Invalid | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| b __asan_backtrace_alloc | |
| # GCC 7 on Ubuntu 16.06 requires a different symbol: | |
| break __sanitizer::Die() |