warning: core file may not match specified executable file.
[New LWP 2336796]
[New LWP 2336695]
[New LWP 2337128]
[New LWP 2336792]
[New LWP 2336794]
[New LWP 2336799]
[New LWP 2336793]
[New LWP 2336797]
View commands.sh
# 1.0.0.1 and 1.1.1.1 are public nameservers | |
# VM attached to virtual network `lars-net-2019-06`, see `contrail-subnet.json` | |
# Resolving works for the first and second given nameserver | |
% dig @1.0.0.1 +short google.com | |
172.217.17.78 | |
% dig @1.1.1.1 +short google.com | |
172.217.17.78 | |
# But only the second nameserver responds to TCP queries |
View core-dumps.md
View contrail.make
# This Makefile deploys OpenContrail on Kubernetes | |
# Start with a Kubernetes cluster and run `make`on the master node. | |
all: clean patch build/values.yml build/contrail-docker helm | |
build: | |
mkdir -p ./build | |
build/contrail-docker: build | |
git clone --depth=1 https://github.com/Juniper/contrail-docker.git -b R4.0 ./build/contrail-docker |
View kubectl.sh
# kubectl get pods --all-namespaces -o wide |grep contrail | |
kube-system contrail-agent-b0lgc 0/1 CrashLoopBackOff 1 26s 10.100.0.4 k8s-node2 | |
kube-system contrail-agent-mqtqb 0/1 CrashLoopBackOff 1 26s 10.100.0.5 k8s-node3 | |
kube-system contrail-agent-wv64l 0/1 PodInitializing 0 26s 10.100.0.3 k8s-node1 | |
kube-system contrail-analytics-2kcw0 0/1 CrashLoopBackOff 2 27s 10.100.0.3 k8s-node1 | |
kube-system contrail-analyticsdb-v7kk5 0/1 CrashLoopBackOff 1 27s 10.100.0.3 k8s-node1 | |
kube-system contrail-controller-l5zhf 0/1 CrashLoopBackOff 1 26s 10.100.0.3 k8s-node1 | |
kube-system contrail-kube-manager-v6dbx 0/1 CrashLoopBackOff 1 26s 10.100.0.3 k8s-node1 |
View keybase.md
Keybase proof
I hereby claim:
- I am namsral on github.
- I am namsral (https://keybase.io/namsral) on keybase.
- I have a public key ASCgpD3lowV8y1LOOsihBEmW089Dl-vTPn8jAe2G02ekgQo
To claim this, I am signing this object:
View mach_absolute_time.s
// Source from the xnu kernel used in macOS | |
// source https://opensource.apple.com/source/xnu/xnu-3248.60.10/libsyscall/wrappers/mach_absolute_time.s | |
.globl _mach_absolute_time | |
_mach_absolute_time: | |
pushq %rbp // set up a frame for backtraces | |
movq %rsp,%rbp | |
movq $(_COMM_PAGE_TIME_DATA_START),%rsi | |
1: | |
movl _NT_GENERATION(%rsi),%r8d // get generation | |
testl %r8d,%r8d // if 0, data is being changed... |
View gist:c535fd258ddf94c272c4824244065986
Control group /: | |
-.slice | |
├─624 /sbin/cgmanager -m name=systemd | |
├─machine.slice | |
│ └─machine-rkt\x2d6ff19b11\x2d0075\x2d48c6\x2d95e1\x2dc632da796d4e.scope | |
│ ├─init.scope | |
│ │ └─13469 /usr/lib/systemd/systemd --default-standard-output=tty --log-target=null --show-status=0 | |
│ └─system.slice | |
│ ├─nginx.service | |
│ │ ├─13490 nginx: master process /usr/sbin/nginx -g daemon off |
View go.snippets
snippet tt "table-driven tests" | |
func Test${1:Func}(t *testing.T) { | |
testCases := []struct { | |
${2:input} ${3:Type} | |
want ${4:Type} | |
}{ | |
{$2: ${5:""}, want: ${6:""}},${0: // comment} | |
} | |
for _, tc := range testCases { | |
if got := $1(tc.$2); got != tc.want { |
View person.go
package person_test | |
import ( | |
"fmt" | |
"strings" | |
) | |
// Person is a modern human with a name. | |
type Person struct { | |
name string |
View ziphttpd.go
package main | |
import ( | |
"archive/zip" | |
"flag" | |
"log" | |
"net/http" | |
"golang.org/x/tools/godoc/vfs/httpfs" | |
"golang.org/x/tools/godoc/vfs/zipfs" |
NewerOlder