Skip to content

Instantly share code, notes, and snippets.

View Kamrad117's full-sized avatar

Dzmitry Bradnitski Kamrad117

  • Leaseplan
  • Amsterdam, Netherlands
View GitHub Profile
@Kamrad117
Kamrad117 / index.html
Last active April 16, 2018 22:21
Mongoose os example of toggling led using index.html
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<div id="notifications"></div>
<a href="/rpc/Control" >Toggle Led</a>
<script>
$('a').click(function(event) {
event.preventDefault();
$.ajax({
#!/bin/bash
# Set of all jars, that script will manage
jars=( test1.jar test2.jar )
# Group id parsed to uri format com.asd => com/asd
GROUP_URI=$(echo $GROUP | tr . /)
echo Parameters: