Skip to content

Instantly share code, notes, and snippets.

View cnwangjie's full-sized avatar
👀
Exploring life

WangJie cnwangjie

👀
Exploring life
View GitHub Profile
@cnwangjie
cnwangjie / local-mongo-replicaset-with-docker
Created May 25, 2021 17:01 — forked from oleurud/local-mongo-replicaset-with-docker
[Local mongo replicaset with docker] #docker #mongo
# pull the official mongo docker container
docker pull mongo
# create network
docker network create my-mongo-cluster
# create mongos
docker run -d --net my-mongo-cluster -p 27017:27017 --name mongo1 mongo mongod --replSet my-mongo-set --port 27017
docker run -d --net my-mongo-cluster -p 27018:27018 --name mongo2 mongo mongod --replSet my-mongo-set --port 27018
docker run -d --net my-mongo-cluster -p 27019:27019 --name mongo3 mongo mongod --replSet my-mongo-set --port 27019
@cnwangjie
cnwangjie / README.md
Created November 16, 2018 13:56
These are notes for using my awesome system.

-= NOTES FOR USING MY AWESOME SYSTEM =-

NOTICE: All depends on the custom configurations

1. Shortcuts

(awesome wm)*

  • Super + S Display all shortcuts of Awesome WM
  • Super + R Spawn a software
@cnwangjie
cnwangjie / limbo.js
Last active August 30, 2018 05:21
healthcheck examples
// 支持es6 module和async function的写法
export const healthcheck = {
required: '*',
info () {
return 'version: ' + this.required
},
async check () {
setTimeout(() => reject(new Error('timeout')), 1000)
if (teambitionConn.readyState !== 1) {
teambitionConn.once('error', err => throw err)
@cnwangjie
cnwangjie / gsoc 2018 summary.md
Last active August 8, 2018 02:02
It is the gsoc 2018 summary of me.

GSoC 2018 Summary

  • Project: MetricsGraphics
  • Organization: Mozilla
  • Student: Yunhao Zhang
  • Mentor: William Lachance

Introduction

Keybase proof

I hereby claim:

  • I am cnwangjie on github.
  • I am wangjie (https://keybase.io/wangjie) on keybase.
  • I have a public key ASBMIKxpd0brwawRxkTQSUDZ8SQETeNYfnncX7n_O1D8zwo

To claim this, I am signing this object: