Skip to content

Instantly share code, notes, and snippets.

View LiShuMing's full-sized avatar

shuming.li LiShuMing

  • StarRocks
  • HangZhou
View GitHub Profile
2018-05-21T10:30:45.905842Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2018-05-21T10:30:45.907883Z 0 [Note] --secure-file-priv is set to NULL. Operations related to importing and exporting data are disabled
2018-05-21T10:30:45.908587Z 0 [Note] mysqld (mysqld 5.7.21) starting as process 73491 ...
2018-05-21T10:30:45.919278Z 0 [Warning] Setting lower_case_table_names=2 because file system for /usr/local/var/mysql/ is case insensitive
2018-05-21T10:30:45.925278Z 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2018-05-21T10:30:45.925321Z 0 [Note] InnoDB: Uses event mutexes
2018-05-21T10:30:45.925328Z 0 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
2018-05-21T10:30:45.925334Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.3
2018-05-21T10:30:45.927012Z 0 [Note] InnoDB: Number of pools: 1
2018-05-21T10:30:45.928327Z 0 [Note] InnoDB: Using CPU crc32 inst
@LiShuMing
LiShuMing / how-to-install
Last active April 25, 2018 06:46
Install thrift in Mac OSX Mavericks
1) install boost
brew install boost
it will ask to create link. just follow the instruction
2) install libevent
brew install libevent
@LiShuMing
LiShuMing / install-proto.sh
Created January 30, 2018 06:10 — forked from samklr/install-proto.sh
Install Protobuf debian ...
#! /bin/bash
wget https://github.com/google/protobuf/releases/download/v2.6.1/protobuf-2.6.1.tar.gz
tar xzf protobuf-2.6.1.tar.gz
cd protobuf-2.6.1
sudo apt-get update
sudo apt-get install build-essential
sudo ./configure
sudo make
sudo make check
sudo make install
source_agent.sources = syslog_tail
source_agent.channels = memoryChannel
source_agent.sinks = kafka_sink
# http://flume.apache.org/FlumeUserGuide.html#exec-source
source_agent.sources.syslog_tail.type = exec
source_agent.sources.syslog_tail.command = tail -F /var/log/messages
source_agent.sources.syslog_tail.batchSize = 1
source_agent.sources.syslog_tail.channels = memoryChannel
@LiShuMing
LiShuMing / 00_input.conf
Created April 7, 2017 03:19 — forked from steveash/00_input.conf
ELK configuration for aggregating cassandra and spark logs
input {
lumberjack {
# The port to listen on
port => 5043
# The paths to your ssl cert and key
ssl_certificate => "/etc/pki/tls/certs/logstash-forwarder/logstash-forwarder.crt"
ssl_key => "/etc/pki/tls/private/logstash-forwarder/logstash-forwarder.key"
# default type, but this will already be set by logstash-forwarder anyways
@LiShuMing
LiShuMing / SimpleHTTPServerWithUpload.py
Created September 6, 2016 06:09 — forked from UniIsland/SimpleHTTPServerWithUpload.py
Simple Python Http Server with Upload
#!/usr/bin/env python
"""Simple HTTP Server With Upload.
This module builds on BaseHTTPServer by implementing the standard GET
and HEAD requests in a fairly straightforward manner.
"""
package main
import (
"bufio"
"encoding/csv"
"encoding/json"
"fmt"
"io"
"os"
"path/filepath"
@LiShuMing
LiShuMing / 0_reuse_code.js
Created August 18, 2014 06:24
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
(1)算法导论学习笔记
实现功能:
二叉搜索树的建立、遍历功能