Skip to content

Instantly share code, notes, and snippets.

@gAmUssA
Created January 21, 2020 16:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gAmUssA/ec9fe0cde6b926021ff087377b57db14 to your computer and use it in GitHub Desktop.
Save gAmUssA/ec9fe0cde6b926021ff087377b57db14 to your computer and use it in GitHub Desktop.
source with ----

Asciidoc code formatting

Example 01

-- SQL Code block
SELECT SOME_FIELD FROM FOO;

Example 02

docker exec -it influxdb influx -execute 'show measurements' -database 'sonos'
name: measurements
name
----
metrics
docker exec -it influxdb influx -database 'sonos' -execute 'SELECT LAST("AVG_NOISE_FLOOR_DBM")  FROM "influxTestDB"."autogen"."TEST" GROUP BY "device" LIMIT 5;'
name: TEST
tags: device=
time                last
----                ----
1579607744957000000 104.33333333333333
name: TEST
tags: device=Bedroom
time                last
----                ----
1579608296503000000 103.66666666666667
name: TEST
tags: device=Dining Room
time                last
----                ----
1579608234480000000 0
name: TEST
tags: device=Kitchen
time                last
----                ----
1579608296491000000 104.33333333333333

docker exec -it influxdb influx -database 'sonos' -execute 'SELECT LAST("AVG_NOISE_FLOOR_DBM")  FROM "influxTestDB"."autogen"."TEST" GROUP BY "device" LIMIT 5;'
name: TEST
tags: device=
time                last
----                ----
1579607744957000000 104.33333333333333
name: TEST
tags: device=Bedroom
time                last
----                ----
1579608296503000000 103.66666666666667
name: TEST
tags: device=Dining Room
time                last
----                ----
1579608234480000000 0
name: TEST
tags: device=Kitchen
time                last
----                ----
1579608296491000000 104.33333333333333

Example 03

Random
code    block
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment