Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View MalloZup's full-sized avatar
💟
Focusing and spreading love :)

Dario Maiocchi MalloZup

💟
Focusing and spreading love :)
View GitHub Profile
#!/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
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
[
%{
"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,
@MalloZup
MalloZup / libvirt-listen-events.py
Created October 29, 2018 09:21 — forked from toabctl/libvirt-listen-events.py
Listen for libvirt events
#!/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",
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 "#".
#################################################################
apiVersion: apps/v1
kind: ChristmasPresent
metadata:
name: Christmas
namespace: december
labels:
k8s-app: present
spec:
selector:
matchLabels:
```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)
package main
import (
"fmt"
)
type joinData struct {
Cfg string
}
# Rationale:
This is a quick guide for using local jars in #clojure.
# create project with lein
```
lein new foo
cd foo
```
@MalloZup
MalloZup / clojoure-local-jars.md
Created July 11, 2019 11:01
use local-jars with clojure lein

Rationale:

This is a quick guide for using local jars in #clojure.

create project with lein

lein new foo
cd foo