Instantly share code, notes, and snippets.

🐶
i do minimalistic software by passion. Listen, learn, code. Repeat. Human && dog

Dario Maiocchi MalloZup

View GitHub Profile
View batman
package main
import (
"fmt"
)
type joinData struct {
Cfg string
}
View join_panic
```golang
kubeadm join phase preflight -v 10
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0x13b78f9]
goroutine 1 [running]:
k8s.io/kubernetes/cmd/kubeadm/app/cmd.newJoinData(0xc000451400, 0xc0000a2d20, 0x18e8b60, 0xc000094008, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
cmd/kubeadm/app/cmd/join.go:347 +0xf9
k8s.io/kubernetes/cmd/kubeadm/app/cmd.NewCmdJoin.func2(0xc000451400, 0x0, 0x0, 0x0, 0x0)
View distributed-presents
apiVersion: apps/v1
kind: ChristmasPresent
metadata:
name: Christmas
namespace: december
labels:
k8s-app: present
spec:
selector:
matchLabels:
View example_ libvirtd.conf
cat /etc/libvirt/libvirtd.conf
# Master libvirt daemon configuration file
#
# For further information consult http://libvirt.org/format.html
#
# NOTE: the tests/daemon-conf regression test script requires
# that each "PARAMETER = VALUE" line in this file have the parameter
# name just after a leading "#".
#################################################################
View libvirt-listen-events.py
#!/usr/bin/python
import libvirt
import sys
# virDomainEventType is emitted during domain lifecycles (see libvirt.h)
VIR_DOMAIN_EVENT_MAPPING = {
0: "VIR_DOMAIN_EVENT_DEFINED",
1: "VIR_DOMAIN_EVENT_UNDEFINED",
2: "VIR_DOMAIN_EVENT_STARTED",
View dataex
[
%{
"cases" => [
%{
"age" => 0,
"className" => "Management of configuration of all types of clients in a single channel",
"duration" => 4.765004,
"errorDetails" => nil,
"errorStackTrace" => nil,
"failedSince" => 0,
View ab-out
ab -n 1000 -c 10 http://suma-31-srv.mgr.suse.de/
This is ApacheBench, Version 2.3 <$Revision: 1706008 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking suma-31-srv.mgr.suse.de (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Completed 400 requests
View debug_gitarro
#!/usr/bin/ruby
require 'English'
require 'octokit'
require 'optparse'
require_relative 'lib/gitarro/opt_parser'
require_relative 'lib/gitarro/git_op'
require_relative 'lib/gitarro/backend'
b = Backend.new