This file contains hidden or 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
### Display execution time if command took longer than REPORTTIME_TOTAL | |
# | |
# https://superuser.com/a/847411/376927 | |
# | |
REPORTTIME_TOTAL=1 # seconds | |
cmd_execution_time() { | |
local stop=$((`date "+%s"`)) | |
let local "cmd_elapsed = ${stop} - ${cmd_start_time}" | |
let local "cmd_minutes = ${cmd_elapsed} / 60" | |
let local "cmd_seconds = ${cmd_elapsed} % 60" |
This file contains hidden or 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
XVFB=/usr/bin/Xvfb | |
XVFBARGS=":1 -screen 0 1024x768x24 -ac +extension GLX +render -noreset" | |
PIDFILE=/var/run/xvfb.pid | |
case "$1" in | |
start) | |
echo -n "Starting virtual X frame buffer: Xvfb" | |
start-stop-daemon --start --quiet --pidfile $PIDFILE --make-pidfile --background --exec $XVFB -- $XVFBARGS | |
echo "." | |
;; | |
stop) |
This file contains hidden or 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 sanakirja; | |
import java.io.IOException; | |
public interface MuistavaSanakirja { | |
void lisaa(String sana, String kaannos); | |
String kaanna(String sana); | |
void poista(String sana); | |
void lataa() throws IOException; |