Skip to content

Instantly share code, notes, and snippets.

@zefanja
zefanja / nut-plugin-client
Created November 27, 2017 00:58
Check_MK integration for NUT (check plugin for Server and Client)
#!/bin/sh
if which upsc > /dev/null 2>&1 ; then
echo '<<<nut>>>'
for ups in $(upsc -l)
do
upsc $ups| sed "s,^,$ups ,"
done
fi
@zefanja
zefanja / index.html
Last active June 8, 2019 19:33
My two files for my little robot project
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Robot Project</title>
<script src="/socket.io/socket.io.js"></script>
<script>
//Damit lesen wir den Gyroskopen aus
window.addEventListener("deviceorientation", handleOrientation, true);
@zefanja
zefanja / index.html
Created May 28, 2013 14:02
browser implementation
<html>
<head>
<script type="text/javascript" src="lib/inflate_stream.min.js"></script>
</head>
<body>
<h2>Sword Browser Version</h2>
<input type="file" id="files" name="files[]"/>
<script type="text/javascript" src="sword.js"></script>
</body>
</html>