Skip to content

Instantly share code, notes, and snippets.

View ludwigm's full-sized avatar

Michael Ludwig ludwigm

  • Netlight Consulting
  • Germany
View GitHub Profile
@ludwigm
ludwigm / gist:f0b51211f968ee305b4a
Created January 4, 2016 14:14
ElasticSearch for Analytics presentation - Paste buffer
bin/elasticsearch
bin/plugin install mobz/elasticsearch-head // Broken in ES 2.0
bin/kibana -dev
http://localhost:9200/
http://localhost:9200/_plugin/head/
[{"id":"89afb086.76505","type":"http in","name":"","url":"/presence","method":"get","x":118,"y":513,"z":"79c218da.863de8","wires":[["22302f8f.ddcfd"]]},{"id":"22302f8f.ddcfd","type":"function","name":"Inject state","func":"msg.presence = context.global.state\nreturn msg;","outputs":1,"x":336,"y":512,"z":"79c218da.863de8","wires":[["167cd70a.e98329"]]},{"id":"167cd70a.e98329","type":"template","name":"Build template","template":"<h3>Presence: {{presence}}!</h3>","x":541,"y":512,"z":"79c218da.863de8","wires":[["cd28a3e8.32d76"]]},{"id":"cd28a3e8.32d76","type":"http response","name":"","x":720,"y":512,"z":"79c218da.863de8","wires":[]}]
@ludwigm
ludwigm / cec-commands.sh
Created May 30, 2014 21:09
CEC commands usable by raspberry pi
# libcec compile tutorial: http://nyxi.eu/blog/2013/04/15/raspbian-libcec/
# switch off TV
echo "tx 10 36" | cec-client -s
# switch on TV
echo "on 0" | cec-client -s
# or
echo "tx F0 36" | cec-client -s