Instantly share code, notes, and snippets.

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