Skip to content

Instantly share code, notes, and snippets.

@rmoff
Created January 21, 2020 14:52
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 rmoff/3aa1d3a6afb32c7bd24a38aea9c27e8c to your computer and use it in GitHub Desktop.
Save rmoff/3aa1d3a6afb32c7bd24a38aea9c27e8c to your computer and use it in GitHub Desktop.

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

== Example 03

Random code block


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