virt-install --name ubuntu18 --vcpus 4 --memory 2048 --disk path=ubuntu18.iso,bus=virtio,cache=writeback --graphics vnc,listen=0.0.0.0 --noautoconsole --os-variant=ubuntu18.10 --import --virt-type kvm
;; virsh 8.0.0
virsh attach-disk ubuntu18 --source foo --source-protocol nbd --source-host-name localhost:6666 --target vde
;; xml
<disk type='network'>
This file contains 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
(d/on-realized (d/chain (d/success-deferred 1) | |
#(println "ok" %)) | |
(fn ok [v] (println "Realized" v)) | |
(fn fail [e] (println "fail " e))) | |
;; ok 1 | |
;; realized nil | |
(d/on-realized (d/chain (d/error-deferred 1) | |
#(println "ok" %)) | |
(fn ok [v] (println "Realized" v)) |
This file contains 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
# HELP otelcol_exporter_queue_size Current size of the retry queue (in batches) | |
# TYPE otelcol_exporter_queue_size gauge | |
otelcol_exporter_queue_size{exporter="otlp",service_instance_id="0afa6250-8064-4913-9a60-fe23ae50dd52"} 0 | |
# HELP otelcol_exporter_send_failed_spans Number of spans in failed attempts to send to destination. | |
# TYPE otelcol_exporter_send_failed_spans counter | |
otelcol_exporter_send_failed_spans{exporter="logging",service_instance_id="0afa6250-8064-4913-9a60-fe23ae50dd52"} 0 | |
otelcol_exporter_send_failed_spans{exporter="otlp",service_instance_id="0afa6250-8064-4913-9a60-fe23ae50dd52"} 675 | |
# HELP otelcol_exporter_sent_spans Number of spans successfully sent to destination. | |
# TYPE otelcol_exporter_sent_spans counter | |
otelcol_exporter_sent_spans{exporter="logging",service_instance_id="0afa6250-8064-4913-9a60-fe23ae50dd52"} 1.974518e+06 |
This file contains 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 | |
xml='<content url="file://$MODULE_DIR$"> | |
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" /> | |
<sourceFolder url="file://$MODULE_DIR$/java" isTestSource="false" /> | |
<sourceFolder url="file://$MODULE_DIR$/test" isTestSource="true" /> | |
<sourceFolder url="file://$MODULE_DIR$/resources" type="java-resource" /> | |
<excludeFolder url="file://$MODULE_DIR$/checkouts" /> | |
<excludeFolder url="file://$MODULE_DIR$/target" /> | |
</content>' |
This file contains 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 | |
xml='<content url="file://$MODULE_DIR$"> | |
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" /> | |
<sourceFolder url="file://$MODULE_DIR$/dev" isTestSource="false" /> | |
<sourceFolder url="file://$MODULE_DIR$/java" isTestSource="false" /> | |
<sourceFolder url="file://$MODULE_DIR$/test" isTestSource="true" /> | |
<sourceFolder url="file://$MODULE_DIR$/resources" type="java-resource" /> | |
<excludeFolder url="file://$MODULE_DIR$/checkouts" /> | |
<excludeFolder url="file://$MODULE_DIR$/target" /> |
This file contains 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" | |
"io" | |
"os" | |
"reflect" | |
"github.com/cespare/xxhash/v2" |
This file contains 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
from kitty.clipboard import set_clipboard_string, set_primary_selection | |
import re | |
def mark(text, args, Mark, extra_cli_args, *a): | |
# This function is responsible for finding all | |
# matching text. extra_cli_args are any extra arguments | |
# passed on the command line when invoking the kitten. | |
# We mark all individual word for potential selection |