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 / holtwinters.py
Created February 4, 2016 10:13 — forked from andrequeiroz/holtwinters.py
Implementation of Holt-Winters algorithms in Python 2
#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:
@pavolloffay
pavolloffay / Hawkular APM
Last active October 31, 2016 16:08
Hawkular APM
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 \
atom
@pavolloffay
pavolloffay / kubernetes
Last active October 4, 2019 11:02
kubernetes, gcloud, minikube
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
@pavolloffay
pavolloffay / Jaeger.md
Last active November 13, 2019 11:34
Jaeger.md

This readme describes how to configure Jaeger storages and various Jaeger services.

Cassandra

This section describes how to configure Jaeger with Cassandra storage

Run Cassandra with ccm

https://github.com/pcmanus/ccm

# create one node cassandra
ccm create test -v 3.11.0 -n 1 -s
@pavolloffay
pavolloffay / brewery.md
Last active September 1, 2017 13:34
brewery app
@pavolloffay
pavolloffay / Controller.java
Last active February 2, 2018 13:05
opentracing-istio-envoy
@RestController
public class HelloController {
@Autowired
private RestTemplate restTemplate;
@RequestMapping(value = "/hello")
public String hello() {
return "Hello from Spring Boot!";
}
@pavolloffay
pavolloffay / Configuration.java
Created February 2, 2018 13:25
jaeger tracer bean
@Bean
public io.opentracing.Tracer jaegerTracer() {
Builder builder = new Builder("spring-boot",
new RemoteReporter(new HttpSender("http://jaeger-collector.istio-system:14268/api/traces"), 10,
65000, new Metrics(new StatsFactoryImpl(new NullStatsReporter()))),
new ConstSampler(true))
.registerInjector(Builtin.HTTP_HEADERS, new B3TextMapCodec())
.registerExtractor(Builtin.HTTP_HEADERS, new B3TextMapCodec());
return builder.build();
}
@pavolloffay
pavolloffay / installing-oh-my-zsh-fedora.md
Created February 13, 2018 14:13 — forked from jshcrowthe/installing-oh-my-zsh-fedora.md
Installing Oh My ZSH oh Fedora (2015 CIT 325 Image)

Installing oh-my-zsh on Fedora (for DB class images)

Oh-my-zsh is an extension of the traditional z shell that is extensible via community created plugins (Plugins found here: oh-my-zsh github repo). It is, in my opinion, a breath of fresh air in comparison to the traditional bash shell.

DO THE FOLLOWING IN ORDER

Installing ZSH (using yum)

The first step for this install is getting zsh we will do this via yum. From your terminal:

@pavolloffay
pavolloffay / installer-guidelines.md
Last active January 17, 2023 22:00
Guidelines for Jaeger installer on OpenShift
  1. download istiooc binary https://github.com/openshift-istio/origin/releases
  2. run ./istiooc_linux cluster up --istio=true

Change openshift-ansible and reflect changes in OC cluster

Build and tag the image brefore running oc cluster up so it can be consumed from local registry.

  1. build modified ansible image cd openshift-ansible && docker build -f images/installer/Dockerfile.istio -t openshiftistio/origin-ansible .
  2. remove/rename the old image docker rmi <sha>
  3. tag new image appropriately docker tag 17fece18c5ca openshiftistio/origin-ansible:<> the version is usually the same as istiooc