Skip to content

Instantly share code, notes, and snippets.

<divelog program='subsurface' version='2'>
<settings>
<autogroup state='1' />
</settings>
<dives>
<dive number='1' date='2014-03-10' time='12:00:00' duration='2:08 min'>
<divecomputer>
<depth max='15.72 m' mean='9.3 m' />
<temperature water='13.0 C' />
<sample time='0:00 min' depth='1.38 m' />
<divelog program='subsurface' version='2'>
<settings>
<autogroup state='1' />
</settings>
<dives>
<dive number='1' date='2014-03-10' time='12:00:00' duration='MINUTES:SECONDS min'>
<divecomputer>
<depth max='ENTER THE MAX DEPTH IN METER HERE m' mean='ENTER THE MEAN DEPTH IN METER HERE m' />
<temperature water='ENTER THE WATER TEMPERATURE HERE' />
<sample time='0:00 min' depth='0.0 m' temp='25.0 C' />
@mguentner
mguentner / ceth.sh
Created July 4, 2012 00:50
An easy config manager for ethersex
#!/bin/sh
#
# ceth - saves and restores ethersex config files
# License: GPL v3 or later, http://www.gnu.org/licenses/
# Author: Maximilian Güntner <[email protected]>
#
# Version: v.1 - initial release
#
CONFIG=".config"
CONFIGDIR=".configs"
@mguentner
mguentner / effect.sh
Created May 28, 2012 16:40
A nice fading animation for the Alpengluehn Controller
#!/bin/zsh
ALPENIP="192.168.0.91"
ALPENPORT="2701"
NC="nc.openbsd"
echo "dmx fxslot reset" | $NC $ALPENIP $ALPENPORT -q 1
echo "dmx fxslot devices 0 1 0 0 1" | $NC $ALPENIP $ALPENPORT -q 1
echo "dmx fxslot devices 1 1 0 3 1" | $NC $ALPENIP $ALPENPORT -q 1
echo "dmx fxslot devices 2 1 0 6 1" | $NC $ALPENIP $ALPENPORT -q 1
echo "dmx fxslot devices 3 1 0 9 1" | $NC $ALPENIP $ALPENPORT -q 1
echo "dmx fxslot devices 4 12 0 12 1" | $NC $ALPENIP $ALPENPORT -q 1
@mguentner
mguentner / eeprom-check.c
Created April 27, 2012 14:02
Display the EEPROM allocation of an ethersex firmware/config
/* Compile with gcc eeprom_check.c -I /usr/avr/include/ -I . within the ethersex directory
How to get the MCU define (__AVR_AT....):
avr-gcc -mmcu=$MCU -E -dM - < /dev/null | grep _AVR_AT
where $MCU is MCU in autoconf.h */
#define __AVR_ATmega644P__
#include "config.h"
#include "core/eeprom.h"
#include "avr/io.h"
int