Skip to content

Instantly share code, notes, and snippets.

Guang Ya Liu gyliu513

Block or report user

Report or block gyliu513

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
View tcpdump
root@jupiter-vm1254:/# tcpdump -nn host
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on tunl0, link-type RAW (Raw IP), capture size 262144 bytes
05:35:39.908731 IP > Flags [S], seq 1406795194, win 27800, options [mss 1390,sackOK,TS val 299880142 ecr 0,nop,wscale 7], length 0
05:35:39.909613 IP > Flags [S.], seq 565181304, ack 1406795195, win 28960, options [mss 1460,sackOK,TS val 119945795 ecr 299880142,nop,wscale 7], length 0
05:35:39.909638 IP > Flags [.], ack 1, win 218, options [nop,nop,TS val 299880142 ecr 119945795], length 0
View ingress controller issue
ingress controller
[ubuntu@perfbriggs3 fs]$ kc -n kube-system get ds nginx-ingress-lb-ppc64le -oyaml
apiVersion: extensions/v1beta1
kind: DaemonSet
annotations: |
gyliu513 / gist:8a4500d6d4dea3307631c50d997a45c9
Created Feb 1, 2017
Commit mesos code with apach account
View gist:8a4500d6d4dea3307631c50d997a45c9
View Kubernetes Ref
go test -v
View ELK and Nginx Proxy
[root@kvm ~]# yum install httpd
[root@kvm ~]# echo "<html></html>" > /var/www/html/index.html
[root@lvs-backup ~]# yum install httpd
[root@lvs-backup~]# echo "<html></html>" > /var/www/html/index.html
View Control and configure Docker with systemd
Many Linux distributions use systemd to start the Docker daemon. This document shows a few examples of how to customize Docker’s settings.
Starting the Docker daemon
Once Docker is installed, you will need to start the Docker daemon.
$ sudo systemctl start docker
# or on older distributions, you may need to use
$ sudo service docker start
If you want Docker to start at boot, you should also:
View gist:275b17a08cfef447cb1f25d3c9d6b239
apply vm
cat /etc/systemd/system/docker.service.d/http-proxy.conf
vim ~/.ssh/config
View gist:4855a8db0ed3bcf062213c9aa7c270f6
./hack/ -O
git remote add upstream
111 git fetch upstream
View gist:464745d897d28ab70add993f42be039c
ok 1.098s
ok 0.090s
ok 0.114s
ok 0.092s
ok 0.083s
ok 0.261s
ok 0.080s
ok 0.142s
ok 0.095s
View gist:ee94a61b07b723a966b024b9d3fa40d0
Git global setup
git config --global "Guangya Liu"
git config --global ""
git config --global "Guangya Liu"
git config --global ""
git config "Guangya Liu"
git config ""
You can’t perform that action at this time.