Skip to content

Instantly share code, notes, and snippets.

yarn config set registry 'https://registry.npm.taobao.org'
yarn install chromedriver --chromedriver_cdnurl=http://cdn.npm.taobao.org/dist/chromedriver
yarn config set "chromedriver_cdnurl" "https://npm.taobao.org/mirrors/chromedriver"
yarn config set "chromedriver_cdnurl" "https://npm.taobao.org/mirrors/chromedriver"
yarn config set "chromedriver_cdnurl" "https://npm.taobao.org/mirrors/chromedriver"
yarn config set "selenium_cdnurl" "https://npm.taobao.org/mirrors/selenium/"
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<div id='demo'>
</div>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Vue JS</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.0.3/vue.js"></script>
</head>
<body>
<div id="app">
@ziqew
ziqew / curl_command
Created July 18, 2018 04:32
curl command
curl -i -H "Content-Type: application/json;charset=UTF-8" -H "access_token: 61df908cc0a242e79d8d086d109cc827" -H "Cookie: JSESSIONID=4502D90E5ED1C42DCCB1F891621BFC29" -X GET http://192.168.8.79:8090/ra/user/sbfz/1
@ziqew
ziqew / recurssive.tree.js
Created July 12, 2018 00:28 — forked from alonronin/recurssive.tree.js
Create recursive tree from json using lodash transform without recursion. Can have unlimited nesting.
var _ = require('lodash');
var arr = [
{"name":"my2child1","title":"My 2 Child 1","parent":"my2"},
{"name":"my2child2","title":"My 2 Child 2","parent":"my2"},
{"name":"parent","title":"A single parent"},
{"name":"child-parent","title":"A child parent","parent":"child1"},
{"name":"my","title":"My"},
{"name":"my2","title":"My2"},
{"name":"child1","title":"Child 1","parent":"my"},
@ziqew
ziqew / git_toturial
Created May 27, 2018 14:32 — forked from guweigang/git_toturial
git命令大全
git init # 初始化本地git仓库(创建新仓库)
git config --global user.name "xxx" # 配置用户名
git config --global user.email "xxx@xxx.com" # 配置邮件
git config --global color.ui true # git status等命令自动着色
git config --global color.status auto
git config --global color.diff auto
git config --global color.branch auto
git config --global color.interactive auto
git config --global --unset http.proxy # remove proxy configuration on git
git clone git+ssh://git@192.168.53.168/VT.git # clone远程仓库

some tools for diagrams in software documentation

Diagrams For Documentation

Obvious Choices

ASCII

@ziqew
ziqew / pandoc_slides.md
Created May 24, 2018 01:03
pandoc_slides

You can use pandoc to produce beautiful slides using reveal.js.

Setup

Download the latest reveal.js and place it in a folder called reveal.js:

wget https://github.com/hakimel/reveal.js/archive/master.tar.gz
tar -xzvf master.tar.gz
mv reveal.js-master reveal.js

MicroService Proxy Gateway Solutions

Kong, Traefik, Caddy, Linkerd, Fabio, Vulcand, and Netflix Zuul seem to be the most common in microservice proxy/gateway solutions. Kubernetes Ingress is often a simple Ngnix, which is difficult to separate the popularity from other things.

Github Star Trend:

Github Star History for Kong vs traefik vs fabio vs caddy vs Zuul

This is just a picture of this link from Feb

@ziqew
ziqew / puller.py
Created April 19, 2017 12:57 — forked from thoas/puller.py
Migration script from MySQL to PostgreSQL via SQLAlchemy
#!/usr/bin/env python
import getopt
import sys
from sqlalchemy import create_engine, MetaData, Table
from sqlalchemy.dialects.mysql.base import TINYINT
from sqlalchemy.orm import sessionmaker
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.exc import ProgrammingError