Skip to content

Instantly share code, notes, and snippets.

View jieniu's full-sized avatar
🎯
Focusing

jieniu jieniu

🎯
Focusing
View GitHub Profile
@jieniu
jieniu / go_tools.md
Last active May 26, 2016 08:03
go的工具
  1. go build – 编译包,不安装
  2. go get – 解析并安装依赖,
    // 嵌套获取所有包依赖  
    go get ./...
    如果包有更新,可以使用-u参数进行更新
    
    go get -u package
    
  3. go test – 执行测试用例和性能测试,
  4. go install – 安装包,
@jieniu
jieniu / 单机HBase运行thrift server.md
Last active May 30, 2016 09:28
单机HBase运行thrift server
  1. 运行hbase时不会运行thrift server
  2. $HBASE_HOME/conf/hbase-site.xml下不要设置thrift端口为9090,不然默认的thrift起不来
  3. 运行hbase+thrift,thrift1会被弃用,建议使用thrift2

  start-hbase.sh
  hbase-daemon.sh start thrift2 
 
@jieniu
jieniu / index.html
Created September 18, 2016 14:31
ozzNwR
<link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">
<div class="container-fluid b1">
<h1 class="text-center">孙中山</h1>
<h3 class="text-center"><em>中国近代民主革命的伟大先行者</em></h3>
<div id="pic">
<img src="http://www.gzzxws.gov.cn/gzws/gzws/ml/hqcc/201107/W020110720464217405067.jpg" class="img-responsive imgbox">
<p class="text-center imgtextbox">
1924年4月,孙中山在广州大元帅府办公室书写《国民政府建国大纲》
@jieniu
jieniu / css.markdown
Last active August 14, 2018 14:02
CSS布局练习
# 添加dev组为sudoer组
groupadd dev
chmod u+x /etc/sudoers
sed -i 's,wheel,dev,' /etc/sudoers
# 不允许root用户登录,一定要提前设置其他登录用户
sed -i 's,#PermitRootLogin yes,PermitRootLogin no,' /etc/ssh/sshd_config
service sshd restart
# zookeeper安装
#!/bin/sh
SALT_HOME="/srv/salt/user"
if [ $# -lt 3 ]
then
echo "usage: $0 username passwd hostnames group"
echo "example: sudo ./useradd.sh test test ko-79,ko-78 dev"
exit
fi
{"sig":"87058829e86fa3d345d0f72e6a72425c2ab8e60a29fdc2b03c43dc73d414c7ab25acf466e8a14fdefcaab8a07c2e5ff760b91642b878303f0d64d149bdc0c1a30","msghash":"4b3370128fe7e0899a9d23151ab0a425f296c2bda535470e7c1b3830c32e2826"}
{"sig":"87058829e86fa3d345d0f72e6a72425c2ab8e60a29fdc2b03c43dc73d414c7ab25acf466e8a14fdefcaab8a07c2e5ff760b91642b878303f0d64d149bdc0c1a30","msghash":"4b3370128fe7e0899a9d23151ab0a425f296c2bda535470e7c1b3830c32e2826"}
{"sig":"87058829e86fa3d345d0f72e6a72425c2ab8e60a29fdc2b03c43dc73d414c7ab25acf466e8a14fdefcaab8a07c2e5ff760b91642b878303f0d64d149bdc0c1a30","msghash":"4b3370128fe7e0899a9d23151ab0a425f296c2bda535470e7c1b3830c32e2826"}
{"sig":"87058829e86fa3d345d0f72e6a72425c2ab8e60a29fdc2b03c43dc73d414c7ab25acf466e8a14fdefcaab8a07c2e5ff760b91642b878303f0d64d149bdc0c1a30","msghash":"4b3370128fe7e0899a9d23151ab0a425f296c2bda535470e7c1b3830c32e2826"}