This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| http://www.juniper.net/documentation/en_US/learn-about/LA_VXLANinDCs.pdf | |
| vxlan encapsulation sets the udp src port | |
| == | |
| § | |
| Source UDP port – The VXLAN protocol repurposes this standard field in a UDP | |
| packet header. Instead of using this field for the source UDP port, the protocol uses | |
| it as a numeric identifier for the particular flow between VTEPs. The VXLAN |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: serving.knative.dev/v1alpha1 | |
| kind: Service | |
| metadata: | |
| name: foo-example-knative | |
| namespace: default | |
| spec: | |
| runLatest: | |
| configuration: | |
| revisionTemplate: | |
| spec: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| apiVersion: extensions/v1beta1 | |
| kind: Deployment | |
| metadata: | |
| name: foo-example | |
| namespace: default | |
| spec: | |
| replicas: 2 | |
| template: | |
| metadata: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| I've been doing this for a while. Over the years, this is the recipe that makes the most sense to me: | |
| * be good at what you do -- there is no replacement for true competence in the computing industry; | |
| * have fun -- together with being good, having fun makes you able to gracefully handle the work when things get challenging; | |
| * burning bridges is a form of suicide -- there is no room for arrogance in this industry, it is a small world; | |
| * working smart is as important as working hard -- burnout is real and life is short; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| vagrant@vagrant-ubuntu-trusty-64:~$ echo $GOPATH | |
| /home/vagrant/go | |
| vagrant@vagrant-ubuntu-trusty-64:~$ | |
| vagrant@vagrant-ubuntu-trusty-64:/vagrant/nfvapp$ cd ; rm -rf go ; mkdir -pv ~/go ; eval "$(gimme stable)" | |
| mkdir: created directory ‘/home/vagrant/go’ | |
| go version go1.11.2 linux/amd64 | |
| vagrant@vagrant-ubuntu-trusty-64:~$ go version ; go get github.com/google/gopacket | |
| go version go1.11.2 linux/amd64 | |
| vagrant@vagrant-ubuntu-trusty-64:~$ cd /vagrant/nfvapp && go build nfvapp.go && echo yay | |
| yay |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| steps from trying https://github.com/tvieira/presentations/blob/master/kiali/DEMO.md | |
| pre-reqs: | |
| # install kvm... | |
| sudo apt -y install uvtool ; # installs uvt-simplestreams-libvirt and uvt-kvm | |
| time uvt-simplestreams-libvirt sync release=xenial arch=amd64 | |
| =-==-=-= | |
| VM=minik |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| virt-addr() { | |
| VM="$1" | |
| vm_mac=$(virsh dumpxml $VM | grep "mac address" | sed "s/.*'\(.*\)'.*/\1/g") | |
| arp -an | grep "${vm_mac}" | awk '{ gsub(/[\(\)]/,"",$2); print $2 }' | |
| } | |
| for x in $(virsh list --all | awk '{ if (NR > 2 && $2 != "") {print $2} }') ; do \ | |
| v=$(virsh vncdisplay $x 2> /dev/null || true) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "fmt" | |
| "net" | |
| "os" | |
| "sync" | |
| "io" | |
| "strconv" | |
| "flag" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| https://www.thegeekstuff.com/2012/08/c-linked-list-example/ | |
| $ diff -u orig.c bug.c | |
| --- orig.c 2018-05-26 14:40:12.495407923 +0000 | |
| +++ bug.c 2018-05-26 14:41:03.335407923 +0000 | |
| @@ -150,6 +150,10 @@ | |
| print_list(); | |
| + add_to_list(666,true); |