Skip to content

Instantly share code, notes, and snippets.

View woshidama323's full-sized avatar
💭
I may be slow to respond.

Harry Ma woshidama323

💭
I may be slow to respond.
View GitHub Profile
cd /opt
wget http://apache-mirror.rbc.ru/pub/apache/kafka/0.10.1.0/kafka_2.11-0.10.1.0.tgz
tar xvzf kafka_2.11-0.10.1.0.tgz
ln -s kafka_2.11-0.10.1.0/ kafka
vi /etc/systemd/system/kafka-zookeeper.service
[Unit]
Description=Apache Zookeeper server (Kafka)
Documentation=http://zookeeper.apache.org
@woshidama323
woshidama323 / client.go
Created November 16, 2018 09:50 — forked from jordanorelli/client.go
rpc server example in go
package main
import (
"bufio"
"log"
"net/rpc"
"os"
)
func main() {
yum install -y m2crypto python-setuptools
yum install -y python-pip
pip install shadowsocks
vim /etc/shadowsocks.json
{
"server":"server_ip",
"server_port":8000,
"local_port":1080,
"password":"passwd",
"timeout":600,