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
minikube start --vm=kvm | |
minikube stop | |
minikube delete | |
minikube service jaeger-all-in-one | |
# Google Cloud | |
gcloud auth application-default login | |
gcloud auth activate-service-account --key-file client-secret.json | |
gcloud auth revoke | |
gcloud projects list |
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
atom |
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
target/hawkular-btm-dist-0.8.1.Final-SNAPSHOT/bin/standalone.sh --debug -Dkeycloak.import=target/hawkular-btm-dist-0.8.1.Final-SNAPSHOT/standalone/configuration/hawkular-realm-for-dev.json -Djboss.socket.binding.port-offset=100 -Dkeycloak.server.url=http://localhost:8180/auth | |
# jdoe:password | |
dist/target/hawkular-btm-dist-0.8.1.Final-SNAPSHOT/bin/standalone.sh --debug -Djboss.socket.binding.port-offset=100 | |
source ~/projects/hawkular/hawkular-btm/dist/target/hawkular-btm-dist-0.8.1.Final-SNAPSHOT/btm/setenv.sh | |
export BTM_AGENT_JAR_PATH=/home/pavol/projects/hawkular/hawkular-btm/dist/target/hawkular-btm-dist-0.8.1.Final-SNAPSHOT/btm/hawkular-btm-agent-rest.jar | |
export JAVA_OPTS="-javaagent:$BTM_AGENT_JAR_PATH \ |
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
#The MIT License (MIT) | |
# | |
#Copyright (c) 2015 Andre Queiroz | |
# | |
#Permission is hereby granted, free of charge, to any person obtaining a copy | |
#of this software and associated documentation files (the "Software"), to deal | |
#in the Software without restriction, including without limitation the rights | |
#to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
#copies of the Software, and to permit persons to whom the Software is | |
#furnished to do so, subject to the following conditions: |
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
#!/usr/bin/env python | |
# -*- coding: ascii -*- | |
#----------------------------------------------------------------------------- | |
""" | |
Time Series Analysis | |
pytsa (read "pizza") depends on scipy and numpy. | |
Pytsa is a simple timeseries utility for python. | |
It is good for pedagogical purposes, such as to understand moving averages, | |
linear regression, interpolation, and single/double/triple exponential smoothing. |
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
Helper functions for extracting Tenant and Feed id and their canonical paths. | |
feedId() { | |
curl -s GET 'http://jdoe:password@localhost:8080/hawkular/inventory/feeds'| grep --color=never -oP 'id" : "\K[\w-]+' | |
} | |
tenantId() { | |
curl -s GET 'http://jdoe:password@localhost:8080/hawkular/inventory/tenant'| grep --color=never -oP 'id" : "\K[\w-]+' | |
} | |
feed() { | |
curl -s GET 'http://jdoe:password@localhost:8080/hawkular/inventory/feeds'| grep --color=never -oP 'path" : "\K/t;[\w-]+/f;[\w-]+' |
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
tenant=$(curl -s GET 'http://jdoe:password@localhost:8080/hawkular/inventory/tenant'| grep --color=never -oP 'id" : "\K[0-9a-z\-]+') | |
feed=$(curl -s GET 'http://jdoe:password@localhost:8080/hawkular/inventory/feeds'| grep --color=never -oP 'id" : "\K[0-9a-z\-]+') | |
function feed() { | |
echo `curl -s GET 'http://jdoe:password@localhost:8080/hawkular/inventory/feeds'| grep --color=never -oP 'id" : "\K[0-9a-z\-]+'` | |
} | |
function tenant() { | |
echo `curl -s GET 'http://jdoe:password@localhost:8080/hawkular/inventory/tenant'| grep --color=never -oP 'id" : "\K[0-9a-z\-]+'` | |
} | |
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
14:59 0 hawkular-bus-sample-mdb <master>$ mvn clean install -Pdev -Dorg.hawkular.wildfly.home=/home/pavol/projects/hawkular/hawkular/modules/nest/hawkular-nest-distro/target/hawkular-nest-distro-1.0.0.Alpha8-SNAPSHOT-distribution/wildfly-9.0.1.Final^C | |
15:09 130 hawkular-bus-sample-mdb <master>$ | |
15:09 130 hawkular-bus-sample-mdb <master>$ pwd | |
/home/pavol/projects/hawkular/hawkular-bus/hawkular-bus-samples/hawkular-bus-sample-mdb | |
15:09 0 hawkular-bus-sample-mdb <master>$ |
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
public static <T extends BasicMessage> BasicMessageWithExtraData<T> fromJSON(InputStream in, Class<T> clazz) { | |
ClassLoader contextClassLoader = Thread.currentThread().getContextClassLoader(); | |
try { | |
Thread.currentThread().setContextClassLoader(AbstractMessage.class.getClassLoader()); | |
final T obj; | |
final byte[] remainder; | |
try (JsonParser parser = new JsonFactory().configure(Feature.AUTO_CLOSE_SOURCE, false).createParser(in)) { | |
Method buildObjectMapperForDeserializationMethod = findBuildObjectMapperForDeserializationMethod(clazz); |
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
@Test | |
public void testA() throws Exception { | |
ObjectMapper objectMapper = new ObjectMapper(); | |
InventoryJacksonConfig.configure(objectMapper); | |
Query relationships = Query.filter().with(RelationWith.name("__inPrediction")).with(RelationWith.sourceOfType | |
(Tenant.class)).with(RelationWith.targetOfType(Metric.class)).get(); | |
String json = serialize(relationships, objectMapper); |