Skip to content

Instantly share code, notes, and snippets.

View ckeyer's full-sized avatar
🏍️
On My Way

Chuanjian Wang ckeyer

🏍️
On My Way
  • On My Way
  • Xian,Beijing,Wuhan
View GitHub Profile
@ckeyer
ckeyer / golang.md
Last active November 13, 2019 05:55
golang 学习大纲

Golang

环境配置

安装与配置

  • 普通安装
  • 自举安装

命令行工具介绍

环境变量介绍

@ckeyer
ckeyer / 抢票.py
Created January 28, 2018 18:01
抢票代码
# -*- coding: utf-8 -*-
"""
@author: ppy2790
"""
from splinter.browser import Browser
from time import sleep
import traceback
import time, sys
class huoche(object):
@ckeyer
ckeyer / 书籍.md
Created January 20, 2017 01:18
经典编程书籍大全

经典编程书籍大全

100+ 经典技术书籍,涵盖:计算机系统与网络、系统架构、算法与数据结构、前端开发、后端开发、移动开发、数据库、测试、项目与团队、程序员职业修炼、求职面试 和 编程相关的经典书籍。

这个列表综合了伯乐在线网站以往推荐经典书籍文章中的列表,以及在微信和微博中被广泛推荐的好书。虽然已经包括了100多本,覆盖的面也比较全。仍然有很多方面需要补充,而且相信还有很多没有被收录的好书。欢迎大家在 issues 中推荐或自荐。

计算机系统与网络

@ckeyer
ckeyer / hash_files.go
Created January 11, 2017 07:50
多线程Hash文件
package main
import (
"crypto/sha256"
"fmt"
"io"
"os"
"path/filepath"
"strconv"
"sync"
@ckeyer
ckeyer / index.html
Created December 20, 2016 13:30
线性网络连接图
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<!-- Meta, title, CSS, favicons, etc. -->
<meta charset="utf-8">
</head>
<body>
<canvas id="myDraw" >
A drawing of something...
@ckeyer
ckeyer / 红与黑.go
Created December 7, 2016 13:05
IDF--CTF
package main
import (
"image"
"image/color"
"image/jpeg"
"log"
"os"
)
#!/bin/bash
###
### Centos 7 x64
###
set -ex;
yum update -y;
yum install -y make gcc gcc-c++ snappy snappy-devel zlib zlib-devel bzip2 bzip2-devel vim git unzip wget;
#!/bin/bash
# ubuntu 16.04 x86_64 (4.4.0-34-generic)
# Mem:1G CPU:1
# user: root
set -ex
apt-get update -y
apt-get install -y make git wget gcc g++
FROM ckeyer/obc:dev
MAINTAINER Chuanjian Wang
ADD . /go/src/github.com/hyperledger/fabric
WORKDIR /go/src/github.com/hyperledger/fabric
RUN go build -o bin/peer peer/main.go
RUN go build -o bin/obc-ca membersrvc/server.go

1: leader

162.243.221.80

consul agent -server -bootstrap -data-dir /tmp/consul -bind=162.243.221.80

docker daemon -D --cluster-store=consul://localhost:8500 --label=com.docker.network.driver.overlay.bind_interface=eth0

docker network create -d overlay prod