Skip to content

Instantly share code, notes, and snippets.

View LiShuMing's full-sized avatar
🎄
Working

shuming.li LiShuMing

🎄
Working
  • StarRocks
  • HangZhou
View GitHub Profile
@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