Inspired By: grafana/loki#333
- docker-compose.yml
version: "3"
networks:
loki:
Inspired By: grafana/loki#333
version: "3"
networks:
loki:
| rgname={your-resource-group-name} | |
| servicebus_uri={namespace-name}.servicebus.windows.net/{queue-name} | |
| shared_access_key_name={your-shared-access-key-name} | |
| shared_access_key={your-shared-access-key} | |
| EXPIRY=${EXPIRY:=$((60 * 60 * 24))} | |
| ENCODED_URI=$(echo -n $servicebus_uri | jq -s -R -r @uri) | |
| TTL=$(($(date +%s) + $EXPIRY)) | |
| UTF8_SIGNATURE=$(printf "%s\n%s" $ENCODED_URI $TTL | iconv -t utf8) |
| #!/user/bin/env ruby | |
| require 'bundler/inline' | |
| gemfile(true) do | |
| source 'https://rubygems.org' | |
| gem 'sinatra', '~> 1.4' | |
| gem 'bcrypt', '~> 3.1' | |
| end | |
| require 'sinatra/base' |
| @startuml | |
| ' uncomment the line below if you're using computer with a retina display | |
| ' skinparam dpi 300 | |
| !define Table(name,desc) class name as "desc" << (T,#FFAAAA) >> | |
| ' we use bold for primary key | |
| ' green color for unique | |
| ' and underscore for not_null | |
| !define primary_key(x) <b>x</b> | |
| !define unique(x) <color:green>x</color> | |
| !define not_null(x) <u>x</u> |
Using JSON in Postgres by example.
docker run --name my-postgres -e POSTGRES_PASSWORD=mysecretpassword -d postgres http://10.10.57.62:8080/jolokia/list
http://10.10.57.62:8080/jolokia/search/org.hornetq:module=JMS,type=Queue,name=*
http://10.10.57.62:8080/jolokia/read/java.lang:type=Memory/HeapMemoryUsage
http://10.10.57.62:8080/jolokia/read/org.hornetq:module=JMS,type=Queue,name=%22MyQueue%22/MessageCount
http://10.10.57.63:8080/jolokia/read/org.hornetq:module=JMS,type=Queue,name=%22MyQueue%22/DeliveringCount
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
| <modelVersion>4.0.0</modelVersion> | |
| <groupId>com.github.pfmiles</groupId> | |
| <artifactId>jar.groovy</artifactId> | |
| <version>1.0-SNAPSHOT</version> | |
| <packaging>jar</packaging> | |
| <name>jar.groovy</name> |
| nginx/ | |
| !nginx/.gitkeep | |
| !nginx/logs/.gitkeep | |
| src/ | |
| tmp/ |
| # Run me with: | |
| # | |
| # $ nginx -p /path/to/this/file/ -c nginx.conf | |
| # | |
| # All requests are then routed to authenticated user's index, so | |
| # | |
| # GET http://user:password@localhost/_search?q=* | |
| # | |
| # is rewritten to: | |
| # |
Part of a series of examples. See: