Skip to content

Instantly share code, notes, and snippets.

View iambowen's full-sized avatar
💭
on distributed system

bowen iambowen

💭
on distributed system
View GitHub Profile
@iambowen
iambowen / md
Created July 2, 2018 08:25
go chassis user example build error info
../../../go/src/github.com/ServiceComb/go-chassis/auth/auth.go:21:2: cannot find package "github.com/ServiceComb/auth" in any of:
/Users/praise/go/src/github.com/ServiceComb/go-chassis/vendor/github.com/ServiceComb/auth (vendor tree)
/usr/local/Cellar/go/1.8/libexec/src/github.com/ServiceComb/auth (from $GOROOT)
/Users/praise/go/src/github.com/ServiceComb/auth (from $GOPATH)
../../../go/src/github.com/ServiceComb/go-chassis/core/archaius/archaius.go:10:2: cannot find package "github.com/ServiceComb/go-archaius" in any of:
/Users/praise/go/src/github.com/ServiceComb/go-chassis/vendor/github.com/ServiceComb/go-archaius (vendor tree)
/usr/local/Cellar/go/1.8/libexec/src/github.com/ServiceComb/go-archaius (from $GOROOT)
/Users/praise/go/src/github.com/ServiceComb/go-archaius (from $GOPATH)
../../../go/src/github.com/ServiceComb/go-chassis/core/archaius/archaius.go:11:2: cannot find package "github.com/ServiceComb/go-archaius/core" in any of:
/Users/praise/go/src/github.com/ServiceComb/go-chassis/vendor/git
~> curl -v  -X PUT   -d "{\"secret_shares\":1, \"secret_threshold\":1}"   http://127.0.0.1:8200/v1/sys/init
*   Trying 127.0.0.1...
* Connected to 127.0.0.1 (127.0.0.1) port 8200 (#0)
> PUT /v1/sys/init HTTP/1.1
> Host: 127.0.0.1:8200
> User-Agent: curl/7.49.1
> Accept: */*
> Content-Length: 41
> Content-Type: application/x-www-form-urlencoded

Keybase proof

I hereby claim:

  • I am iambowen on github.
  • I am iambowen (https://keybase.io/iambowen) on keybase.
  • I have a public key ASD1lDolAooCbi0ZvCV72HHu55550ZIeHLp-pSTNOfJI_wo

To claim this, I am signing this object:

@iambowen
iambowen / tech_radar_devops.md
Last active August 29, 2015 14:13
ThoughtWorks Tech Radar Devops Part

class: center, middle, inverse

Tech Radar Walkthrough

The DevOps Part

???

Notes for the first slide!


@iambowen
iambowen / tech_radar_devops.md
Last active August 29, 2015 14:12
Devops part that worth an talk in tech radar.

####Techniques

  • Adopt
    • Structured logging Larry
  • Trail
    • Canary Build
    • build pipeline for machine images
    • Pace-layered Application Strategy
  • HOLD
    • Cloud lift and shift
@iambowen
iambowen / random_number.sh
Created January 30, 2014 02:40
send random numbers and time to graphite server and generate charts
#!/bin/bash
while true; do echo "local.random.diceroll $RANDOM `date +%s`" | nc localhost 2003; done
@iambowen
iambowen / install_python_2.7.sh
Last active January 4, 2016 18:29
install and config python 2.7 in centos 6.4
#!/bin/bash
yum groupinstall "Development tools" -y
yum install -y zlib-devel bzip2-devel openssl-devel ncurses-devel
wget http://www.python.org/ftp/python/2.7.6/Python-2.7.6.tgz && tar xzf Python-2.7.6.tgz && rm Python-2.7.6.tgz
cd Python-2.7.6
./configure --prefix=/usr/local/python
make && make install
ln -s /usr/local/python/bin/python /usr/local/bin/python
wget -q https://raw.github.com/pypa/pip/master/contrib/get-pip.py && python get-pip.py
ln -s /usr/local/python/bin/pip /usr/local/bin/pip
# First do a fresh install of CentOS 5.7 i386, server configuration (no GUI)
# This should be performed as root since it's going to be installing a bunch of stuff
# --- Update things to make sure we have the latest patches ---
# Add EPEL so we can get reasonably recent packages
rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
# --- Install all the packages --- #
yum -y install python-whisper python-carbon graphite-web python-memcached python-ldap httpd memcached
yum install -y nc
@iambowen
iambowen / hubot_init.sh
Created January 27, 2014 03:48
hubot init script for centos 6.4
#!/bin/bash
yum install http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
yum install qtwebkit.i686 webkitgtk.i686
yum groupinstall -y "Desktop"
yum groupinstall -y "Development Tools"
yum install tigervnc-server -y
yum install wget telnet -y
yum install sqlite-devel
yum install nodejs npm -y
yum install redis -y
#!/usr/bin/env bash
# repository
cd /tmp
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -Uvh epel-release-6-8.noarch.rpm
# system update
yum -y update
yum -y groupinstall "Development Tools"
yum -y install libxslt-devel libyaml-devel libxml2-devel gdbm-devel libffi-devel zlib-devel openssl-devel libyaml-devel readline-devel curl-devel openssl-devel pcre-devel git memcached-devel valgrind-devel mysql-devel ImageMagick-devel ImageMagick