Skip to content

Instantly share code, notes, and snippets.

View pavolloffay's full-sized avatar
🚀
Let's build something together!

Pavol Loffay pavolloffay

🚀
Let's build something together!
View GitHub Profile
@pavolloffay
pavolloffay / ovirt-fedora
Last active July 3, 2018 13:02
ovirt-fedora
virt-builder centos-7.4 --root-password password:nolamavaio --size=15G --ssh-inject=root --format=qcow2 -o centos74.qcow2
sudo virt-install --import --disk centos74.qcow2 --memory 10000 --name oc-test --cpu core2duo,+x2apic,disable=vmx
Destroy
virsh destroy oc-test
virsh undefine oc-test --managed-save
Restart
virsh shutdown oc-test
virsh start oc-test
@pavolloffay
pavolloffay / devnation
Last active September 10, 2018 19:58
devnation
docker run --net=host --rm -it jaegertracing/all-in-one
java -jar target/preference.jar --spring.profiles.active=local
curl localhost:8180
Istio headers propagation
https://gist.github.com/pavolloffay/164e20c4f43abb24cbb6d1c35d4834d5
Advanced routing
istioctl create -f istiofiles/destination-rule-recommendation-v1-v2.yml -n tutorial
istioctl create -f istiofiles/virtual-service-recommendation-v1.yml -n tutorial
@pavolloffay
pavolloffay / kiali.md
Created September 10, 2018 08:35
Kiali
JAEGER_URL=http://tracing-istio-system.`minishift ip`.nip.io
GRAFANA_URL="http://grafana-istio-system.`minishift ip`.nip.io"

cat kiali-configmap.yaml | VERSION_LABEL=v0.7.0 JAEGER_URL=http://tracing-istio-system.`minishift ip`.nip.io GRAFANA_URL="http://grafana-istio-system.`minishift ip`.nip.io" envsubst | oc create -n istio-system -f -
cat kiali-secrets.yaml | VERSION_LABEL=v0.7.0 envsubst | oc create -n istio-system  -f  - 
cat kiali.yaml | IMAGE_NAME=kiali/kiali IMAGE_VERSION=latest NAMESPACE=istio-system VERSION_LABEL=master VERBOSE_MODE=4  IMAGE_PULL_POLICY_TOKEN="imagePullPolicy: IfNotPresent" envsubst | oc create -n istio-system -f -
[
{
"_id": "AWYWCtQZezvXAqIiUTRh",
"_type": "dashboard",
"_source": {
"title": "demo-dashboard",
"hits": 0,
"description": "",
"panelsJSON": "[{\"col\":1,\"id\":\"AWYWClB3ezvXAqIiUTQo\",\"panelIndex\":1,\"row\":1,\"size_x\":6,\"size_y\":3,\"type\":\"visualization\"},{\"col\":7,\"id\":\"AWYWC5A-ezvXAqIiUTSc\",\"panelIndex\":2,\"row\":4,\"size_x\":6,\"size_y\":3,\"type\":\"visualization\"},{\"size_x\":6,\"size_y\":3,\"panelIndex\":3,\"type\":\"visualization\",\"id\":\"AWYWDjk2ezvXAqIiUTWZ\",\"col\":1,\"row\":4},{\"size_x\":6,\"size_y\":3,\"panelIndex\":4,\"type\":\"visualization\",\"id\":\"AWYWEU_YezvXAqIiUTzQ\",\"col\":7,\"row\":1}]",
"optionsJSON": "{\"darkTheme\":false}",
@pavolloffay
pavolloffay / create_archive_index.yml
Created January 15, 2019 16:43
Jaeger-es-archive-rollover
# curator --config plugin/storage/es/curator.yml plugin/storage/es/
actions:
1:
action: create_index
description: Create archive index.
options:
name: jaeger-span-archive-000001
continue_if_exception: False
disable_action: False
2:
@pavolloffay
pavolloffay / ConversationService.java
Last active April 18, 2019 16:01
quarkus-microprofile-blog-post
@Traced
@ApplicationScoped
public class ConversationService {
@Inject
@RestClient
private GreetingService greetingService;
public String talk() {
return greetingService.hello() + " -> " + greetingService.bonjour();

GOROOT=/home/ploffay/bin/go #gosetup GOPATH=/home/ploffay/projects/golang #gosetup /home/ploffay/bin/go/bin/go build -o /tmp/___go_build_main_go /home/ploffay/projects/golang/src/github.com/pavolloffay/github-changelog/cmd/main.go #gosetup /tmp/___go_build_main_go #gosetup getting pulls getting pulls getting pulls getting pulls getting pulls getting pulls

"""
Note: There are several variations to do the same thing (see # or). The idea
is to choose the best (one or so) of the variations and implement that. I.E.
these are different designs possibilities for the API.
"""
"""
Filtering
"""
cat <<EOF | kubectl apply -f -
apiVersion: jaegertracing.io/v1
kind: Jaeger
metadata:
name: simple-prod
spec:
strategy: production
storage:
type: elasticsearch
options:
This file has been truncated, but you can view the full file.
java.lang.Exception: Event onLoad failed for instrument class com.oracle.truffle.tools.agentscript.impl.AgentScriptInstrument and listener/factory com.oracle.truffle.tools.agentscript.impl.AgentObject$1@7fac1c65f790.
at com.oracle.truffle.api.instrumentation.ProbeNode.exceptionEventForClientInstrument(ProbeNode.java:649)
at com.oracle.truffle.api.instrumentation.InstrumentationHandler.notifySourceBindingLoaded(InstrumentationHandler.java:877)
at com.oracle.truffle.api.instrumentation.InstrumentationHandler.notifySourceBindingsLoaded(InstrumentationHandler.java:865)
at com.oracle.truffle.api.instrumentation.InstrumentationHandler.onLoad(InstrumentationHandler.java:209)
at com.oracle.truffle.api.instrumentation.InstrumentAccessor$InstrumentImpl.onLoad(InstrumentAccessor.java:174)
at com.oracle.truffle.api.impl.TVMCI.onLoad(TVMCI.java:154)
at org.graalvm.compiler.truffle.runtime.GraalTVMCI.onLoad(GraalTVMCI.java:92)
at org.graalvm.compiler.truffle.runtime.GraalTruffleRuntime.createClonedCallTarget(GraalT