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
{ | |
init: function(elevators, floors) { | |
var availables = []; | |
var callingFloorsUp = []; | |
var callingFloorsDown = []; | |
elevators.forEach(function(elevator) { | |
elevator.goingUpIndicator(false); | |
elevator.goingDownIndicator(false); |
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
QUERY = "select * from Role_ where roleid IN (17,18)" | |
MAX_ROWS = 100 | |
# Implementation | |
java_import java.io.PrintStream | |
java_import com.liferay.portal.kernel.io.unsync.UnsyncByteArrayOutputStream | |
java_import com.liferay.portal.kernel.dao.jdbc.DataAccess | |
if $out.class == UnsyncByteArrayOutputStream # Fix for Liferay version < 6.0.11 |
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 | |
# executar enviando o codigo do processo, | |
# exemplo: ps aux | grep java | |
# chamada: ./thread-dump.sh <pid> | |
# deve ser executado com o mesmo usuario dono do processo, | |
# su -p -s /bin/sh jboss -c ./thread-dump.sh <pid> | |
[ -z $pid ] && echo "Informe o pid do processo java" && exit 1 |
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 | |
# | |
# Generate the Source file using: find -type f > filelist.txt | |
# | |
if [ $# -lt 1 ]; | |
then | |
echo "Usage: $0 dl-filelist.txt [placeholder]" | |
else |