Skip to content

Instantly share code, notes, and snippets.

lowang-bh

Block or report user

Report or block lowang-bh

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
@lowang-bh
lowang-bh / trial.key
Created Jun 28, 2018 — forked from huqi/trial.key
Beyond Compare 4 license for Mac
View trial.key
Beyond Compare 4
Licensed to: ASIO Allsoftinone
Quantity: 1 user
Serial number: 1822-9597
License type: Pro Edition for Windows
--- BEGIN LICENSE KEY ---
H1bJTd2SauPv5Garuaq0Ig43uqq5NJOEw94wxdZTpU-pFB9GmyPk677gJ
vC1Ro6sbAvKR4pVwtxdCfuoZDb6hJ5bVQKqlfihJfSYZt-xVrVU27+0Ja
hFbqTmYskatMTgPyjvv99CF2Te8ec+Ys2SPxyZAF0YwOCNOWmsyqN5y9t
@lowang-bh
lowang-bh / tls-client.go
Created Sep 3, 2018 — forked from michaljemala/tls-client.go
SSL Client Authentication Golang sample
View tls-client.go
package main
import (
"crypto/tls"
"crypto/x509"
"flag"
"io/ioutil"
"log"
"net/http"
)
@lowang-bh
lowang-bh / client.go
Created Sep 6, 2018 — forked from spikebike/client.go
TLS server and client
View client.go
package main
import (
"crypto/tls"
"crypto/x509"
"fmt"
"io"
"log"
)
View tail_jenkins.py
#!/usr/bin/env python
"""
Tail a Jenkins build in a terminal
"""
import os
import requests
import sys
import time
View gist:c265748a23091396e18eb802ace3d320
docker rmi $(docker images -q -f dangling=true)
@lowang-bh
lowang-bh / etcdctl
Created Nov 7, 2018 — forked from swynter-ladbrokes/etcdctl
Basic bash completion for etcdctl
View etcdctl
#!bash
_etcdctl_list() {
local IFS=$'\n'
local wd="$cur"
local -a tokens
if ! etcdctl ls "$wd" &> /dev/null; then
wd=$(dirname "$wd")
fi
@lowang-bh
lowang-bh / etcd_cluster.sh
Created Apr 2, 2019 — forked from jolestar/etcd_cluster.sh
Run etcd cluster by docker with custom network
View etcd_cluster.sh
docker network create etcd --subnet 172.19.0.0/16
docker run -d --name etcd0 --network etcd --ip 172.19.1.10 quay.io/coreos/etcd etcd \
-name etcd0 \
-advertise-client-urls http://172.19.1.10:2379,http://172.19.1.10:4001 \
-listen-client-urls http://0.0.0.0:2379,http://0.0.0.0:4001 \
-initial-advertise-peer-urls http://172.19.1.10:2380 \
-listen-peer-urls http://0.0.0.0:2380 \
-initial-cluster-token etcd-cluster-1 \
-initial-cluster etcd0=http://172.19.1.10:2380,etcd1=http://172.19.1.11:2380,etcd2=http://172.19.1.12:2380 \
You can’t perform that action at this time.