Skip to content

Instantly share code, notes, and snippets.

I may be slow to respond.

Darkness navono

Block or report user

Report or block navono

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
navono / dockertags
Created Apr 22, 2019
获取指定镜像的所有 tag
View dockertags
if [ $# -lt 1 ]
cat << HELP
dockertags -- list all tags for a Docker image on a remote registry.
- list all tags for ubuntu:
navono / tsconfig.js
Created Apr 15, 2019
appdev tsconfig
View tsconfig.js
"compilerOptions": {
"target": "esnext",
"module": "esnext",
"moduleResolution": "node",
"jsx": "react",
"lib": [
View package.json
"name": "xxx",
"version": "0.1.0",
"private": true,
"scripts": {
"start": "cross-env NODE_ENV=development node scripts/start.js",
"build": "node scripts/build.js",
"test": "node scripts/test.js"
"dependencies": {
navono / webpack.config.js
Created Apr 15, 2019
View webpack.config.js
'use strict';
const fs = require('fs');
const path = require('path');
const webpack = require('webpack');
const resolve = require('resolve');
const PnpWebpackPlugin = require('pnp-webpack-plugin');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const CaseSensitivePathsPlugin = require('case-sensitive-paths-webpack-plugin');
const InlineChunkHtmlPlugin = require('react-dev-utils/InlineChunkHtmlPlugin');
navono /
Created Mar 26, 2019 — forked from staltz/
The introduction to Reactive Programming you've been missing
navono /
Created Mar 18, 2019 — forked from roachhd/
EMOJI cheatsheet 😛😳😗😓🙉😸🙈🙊😽💀💢💥💏👫👄👃👀👛👛🗼🔮🔮🎄🎅👻


Emoji emoticons listed on this page are supported on Campfire, GitHub, Basecamp, Redbooth, Trac, Flowdock,, Kandan,, Kippt, Redmine, JabbR, Trello, Hall,, Qiita, Zendesk, Ruby China, Grove, Idobata, NodeBB Forums, Slack, Streamup, OrganisedMinds, Hackpad, Cryptbin, Kato, Reportedly, Cheerful Ghost, IRCCloud, Dashcube, MyVideoGameList, Subrosa, Sococo, Quip, And Bang, Bonusly, Discourse, Ello, and Twemoji Awesome. However some of the emoji codes are not super easy to remember, so here is a little cheat sheet. ✈ Got flash enabled? Click the emoji code and it will be copied to your clipboard.


:bowtie: 😄

navono / etcd3-demo.go
Created Mar 15, 2019
A demo for etcd3 golang client
View etcd3-demo.go
package main
import (
View gist:1b97f623087184bbdea279478d791488
  • What do Etcd, Consul, and Zookeeper do?
    • Service Registration:
      • Host, port number, and sometimes authentication credentials, protocols, versions numbers, and/or environment details.
    • Service Discovery:
      • Ability for client application to query the central registry to learn of service location.
    • Consistent and durable general-purpose K/V store across distributed system.
      • Some solutions support this better than others.
      • Based on Paxos or some derivative (i.e. Raft) algorithm to quickly converge to a consistent state.
      • Centralized locking can be based on this K/V store.
navono /
Created Dec 10, 2018
Install proto in ubuntu
# Make sure you grab the latest version
curl -OL
# Unzip
unzip -d protoc3
# Move protoc to /usr/local/bin/
sudo mv protoc3/bin/* /usr/local/bin/
# Move protoc3/include to /usr/local/include/
navono / readJSON.bat
Created Nov 16, 2018
read JSON field by batch
View readJSON.bat
:: Read file "package.json" into variable string, removing line breaks.
set string=
for /f "delims=" %%x in (package.json) do set "string=!string!%%x"
rem Remove quotes
set string=%string:"=%
rem Remove braces
set "string=%string:~2,-2%"
rem Change colon+space by equal-sign
set "string=%string:: ==%"
You can’t perform that action at this time.