Skip to content

Instantly share code, notes, and snippets.

View XiaochenCui's full-sized avatar
🎯
Focusing

Xiaochen Cui XiaochenCui

🎯
Focusing
View GitHub Profile
#!/bin/bash
LINE_NUMBER=${LINE_NUMBER:-1}
HEADER=""
ERROR_HEADER=("E" "F")
END_FLAG=false
print_message() {
if [ -n "$MESSAGE" ]
then
brew install gmp
brew install mpfr
brew install libmpc
pip install gmpy2
@XiaochenCui
XiaochenCui / test.py
Created November 4, 2018 09:08
一个简单的爬虫
# -*- coding: utf-8 -*-
"""
Spyder Editor
This is a temporary script file.
"""
# 这个程序将会处理一个页面
# 第一步:下载网页(人类:在浏览器中打开网页)
import requests
@XiaochenCui
XiaochenCui / system.md
Last active June 2, 2023 14:10
System Research
@XiaochenCui
XiaochenCui / note.md
Created May 7, 2019 05:21
FP (Functional Programming) Studying
@XiaochenCui
XiaochenCui / note.md
Created May 8, 2019 02:42
Network library, knowledge, etc.
@XiaochenCui
XiaochenCui / note.md
Created May 9, 2019 06:21
Network Issues
@XiaochenCui
XiaochenCui / devops-cheatsheet.md
Last active June 20, 2019 05:45
devops cheasheet

Hbase shell

  • count rows of a table
    hbase org.apache.hadoop.hbase.mapreduce.RowCounter <tablename>

Kafka

  • count message of a topic

./bin/kafka-run-class.sh kafka.tools.GetOffsetShell