Skip to content

Instantly share code, notes, and snippets.

View atooni's full-sized avatar
💭
Home and working on blended and the ZIO eco system :)

Andreas Gies atooni

💭
Home and working on blended and the ZIO eco system :)
View GitHub Profile
@atooni
atooni / gist:6976876
Created October 14, 2013 14:49
Package imports
System Bundle (0): org.osgi.framework.wiring; version=1.1.0
System Bundle (0): org.osgi.framework; version=1.7.0
System Bundle (0): org.osgi.resource; version=1.0.0
System Bundle (0): org.osgi.service.url; version=1.0.0
System Bundle (0): org.osgi.service.url; version=1.0.0
System Bundle (0): org.osgi.util.tracker; version=1.5.1
System Bundle (0): javax.net.ssl; version=0.0.0
System Bundle (0): javax.xml.namespace; version=0.0.0
System Bundle (0): javax.xml.parsers; version=0.0.0
System Bundle (0): javax.xml.transform; version=0.0.0
@atooni
atooni / gist:7101519
Last active December 26, 2015 05:29
Stack trace during container-list
2013-10-22 16:08:20,279 | WARN | ool-114-thread-1 | GitDataStore | fabric.git.internal.GitDataStore 1175 | 80 - org.fusesource.fabric.fabric-git - 7.3.0.redhat-129 | Failed to perform a pull org.fusesource.fabric.api.FabricException: org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss
org.fusesource.fabric.api.FabricException: org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss
at org.fusesource.fabric.api.FabricException.launderThrowable(FabricException.java:44)
at org.fusesource.fabric.git.internal.GitDataStore.gitOperation(GitDataStore.java:857)[80:org.fusesource.fabric.fabric-git:7.3.0.redhat-129]
at org.fusesource.fabric.git.internal.GitDataStore.gitOperation(GitDataStore.java:810)[80:org.fusesource.fabric.fabric-git:7.3.0.redhat-129]
at org.fusesource.fabric.git.internal.GitDataStore.gitOperation(GitDataStore.java:799)[80:org.fusesource.fabric.fabric-git:7.3.0.redhat-129]
at org.fusesource.fab
@atooni
atooni / gist:7119789
Created October 23, 2013 14:23
Restrict interbroker connections to transport connectors with a given name
Enhancement: Restrict a network connector in FUSE ENTMQ to transport connectors with a specified name when using the fabric discovery url.
In an ActiveMQ setup we may want to separate the traffic between the message brokers and external clients from the traffic between the brokers participating in a network of brokers. For example we may have the external transport connector secured and the interbroker connector plain tcp.
To achieve that we would define a profile within fabric that has a broker config with at least two named transport connectors. The corresponding fabric discovery url would specify the broker group, but wouldn't allow to restrict the interbroker connection to only one of the configured transport connectors.
In a future release that could be realiyzed as part orf the url (something like fab:/default/ib) or as a property of the network connector (something like "preferred-transport-name").
@atooni
atooni / gist:7152815
Created October 25, 2013 10:47
my fabric create command
fabric:create --external-git-url https://github.com/woq/fuse-fabric-profiles.git --external-git-user atooni --external-git-passowrd xxxx --clean ensemble1
container-list
container-list
@atooni
atooni / gist:863b7af8b029dc11de01
Created October 14, 2015 10:53
Build output for container with checksum failure
This file has been truncated, but you can view the full file.
95-210-84-10:blended andreas$ mvn clean install -P build,assembly,docker,itest
[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for de.wayofquality.blended:blended.akka.itest:jar:1.2-SNAPSHOT
[WARNING] 'parent.relativePath' of POM de.wayofquality.blended:blended.akka.itest:[unknown-version] (/Users/andreas/projects/blended/blended-akka-itest/pom.xml) points at de.wayofquality.blended:blended.reactor instead of de.wayofquality.blended:blended.parent, please verify your project structure @ de.wayofquality.blended:blended.akka.itest:[unknown-version], /Users/andreas/projects/blended/blended-akka-itest/pom.xml, line 25, column 11
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
/opt/java/bin/java -javaagent:/opt/idea-IU-173.3727.127/lib/idea_rt.jar=32813:/opt/idea-IU-173.3727.127/bin -Dfile.encoding=UTF-8 -classpath /opt/java/jre/lib/charsets.jar:/opt/java/jre/lib/deploy.jar:/opt/java/jre/lib/ext/cldrdata.jar:/opt/java/jre/lib/ext/dnsns.jar:/opt/java/jre/lib/ext/jaccess.jar:/opt/java/jre/lib/ext/jfxrt.jar:/opt/java/jre/lib/ext/localedata.jar:/opt/java/jre/lib/ext/nashorn.jar:/opt/java/jre/lib/ext/sunec.jar:/opt/java/jre/lib/ext/sunjce_provider.jar:/opt/java/jre/lib/ext/sunpkcs11.jar:/opt/java/jre/lib/ext/zipfs.jar:/opt/java/jre/lib/javaws.jar:/opt/java/jre/lib/jce.jar:/opt/java/jre/lib/jfr.jar:/opt/java/jre/lib/jfxswt.jar:/opt/java/jre/lib/jsse.jar:/opt/java/jre/lib/management-agent.jar:/opt/java/jre/lib/plugin.jar:/opt/java/jre/lib/resources.jar:/opt/java/jre/lib/rt.jar:/andreas/projects/blended/blended.scep/target/test-classes:/andreas/projects/blended/blended.scep/target/classes:/home/andreas/.m2/repository/org/scala-lang/scala-library/2.11.11/scala-library-2.11.11.jar:/home/andr
andreas@Toobuntu:~/docker/scep$ docker run -it -p 8080:8080 atooni/scep
level=info ts=2018-01-17T09:17:44.871121083Z caller=scepserver.go:154 transport=http address=:8080 msg=listening
level=info ts=2018-01-17T09:17:51.33220086Z caller=service_logging.go:22 component=scep_service method=GetCACaps err=null took=894ns
level=info ts=2018-01-17T09:17:51.332263877Z caller=endpoint.go:186 op=GetCACaps error=null took=65.396µs
level=info ts=2018-01-17T09:17:51.33228414Z caller=logutil.go:70 component=http method=GET status=200 proto=HTTP/1.1 host=172.17.0.1 user_agent=Java/1.8.0_152 path="/scep?operation=GetCACaps&message="
level=info ts=2018-01-17T09:17:51.512696947Z caller=service_logging.go:22 component=scep_service method=GetCACaps err=null took=776ns
level=info ts=2018-01-17T09:17:51.512750099Z caller=endpoint.go:186 op=GetCACaps error=null took=55.742µs
level=info ts=2018-01-17T09:17:51.512795914Z cal
@atooni
atooni / sbt.out
Last active April 16, 2018 06:19
[info] Loading settings from idea.sbt ...
[info] Loading global plugins from /home/andreas/.sbt/1.0/plugins
[info] Loading settings from plugins.sbt ...
[info] Loading project definition from /andreas/projects/sjscomponents/project
[info] Loading settings from build.sbt ...
[info] Set current project to scalajs-react-components (in build file:/andreas/projects/sjscomponents/)
[info] Running com.olvind.sui.SuiRunner /andreas/projects/sjscomponents/gen/target/scala-2.12/scalajs-bundler/main/node_modules/semantic-ui-react/dist/commonjs /andreas/projects/sjscomponents/core/target/scala-2.12/src_managed/main
[info] Running com.olvind.mui.MuiRunner /andreas/projects/sjscomponents/gen/target/scala-2.12/scalajs-bundler/main/node_modules/material-ui /andreas/projects/sjscomponents/core/target/scala-2.12/src_managed/main
[info] Running com.olvind.eui.EuiRunner /andreas/projects/sjscomponents/gen/target/scala-2.12/scalajs-bundler/main/node_modules/elemental /andreas/projects/sjscomponents/core/target/scala-2.12/src_mana
@atooni
atooni / PrometheusDataModel.scala
Created November 25, 2020 15:39
Refactor Prometheus DataModel
package zio.zmx.prometheus
import zio.Chunk
sealed abstract case class Metric[A <: Metric.Details](
name: String,
help: String,
labels: Chunk[(String, String)],
details: A
)
@atooni
atooni / package.scala
Last active December 2, 2020 15:12
Draft for effects with metrics
package zio.zmx
import zio._
package object metrics extends MetricsDataModel {
type ZMetrics = Has[ZMetrics.Service]
// A generic metrics service
object ZMetrics {