This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
IFS=':' read -r -a fullArtifactId <<< "$1" | |
usage () { | |
echo "Usage: $0 <groupId>:<artifactId>:<version>" | |
} | |
if [ ${#fullArtifactId[@]} -ne 3 ] ; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## | |
# Provides heartbeat monitor | |
## | |
record(longout, "$(DEVICE):HB_TIMER") { | |
field(DESC, "Timer for heartbeat.") | |
field(SCAN, "1 second") | |
field(SDIS, "$(SWITCH)") | |
field(DISV, 0) | |
field(OUT, "$(DEVICE):HEART PP") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package low.level.stuff; | |
import java.lang.reflect.InvocationTargetException; | |
import java.util.EnumSet; | |
import java.util.Set; | |
interface EnumBitsetGeneric<T extends Enum<T> & EnumBitsetGeneric<T>> { // Actually as none of this works EnumBitset does not need to be generic | |
int getBitPosition(); | |
//byte valueOf(Set<T> flags); // Cannot do this, as I want this method to be static | |
//Set<T> flagsOf(byte value); // Cannot do this, as I want this method to be static |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
mplayer -loop 0 -slave /var/local/elevator.ogg &>/dev/null & | |
ELEVATOR_PID=$! | |
/usr/bin/make "$@" | |
function finally() { | |
kill $ELEVATOR_PID &>/dev/null | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python2 | |
# Implementation of visual encryption generator from | |
# http://www.datagenetics.com/blog/november32013/index.html | |
# | |
# The input files are three png images and should be placed in the same directory. | |
# The names are hardcoded: | |
# in1.png, in2.png : input images that are used on the encoded images | |
# hidden.png : input image that is shown when encoded images are overlayed | |
import numpy as np |