ora=<instaclient-install-dir>
gcc=
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
import org.apache.commons.lang3.Validate; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
import java.util.concurrent.Callable; | |
/** | |
* A database session and transaction-aware Callable | |
*/ | |
class DatabaseCallable<T> implements Callable<T> |
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
import io.netty.buffer.Unpooled; | |
import io.netty.channel.ChannelFutureListener; | |
import io.netty.channel.ChannelHandlerAdapter; | |
import io.netty.channel.ChannelHandlerContext; | |
import io.netty.channel.ChannelInboundHandlerAdapter; | |
import io.netty.handler.codec.http.*; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
import java.nio.charset.Charset; |
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 | |
# | |
# tomcat7 This shell script takes care of starting and stopping Tomcat | |
# | |
# chkconfig: - 80 20 | |
# | |
### BEGIN INIT INFO | |
# Provides: tomcat | |
# Required-Start: $network $syslog | |
# Required-Stop: $network $syslog |
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
curl -s -u "PasswordIsAuthToken:{\"token\":\"$UD_AUTH_TOKEN\"}" $UD_SERVER/rest/agent/all \ | |
| jq '.[] | {name} | select(.status != "ONLINE")' \ | |
| grep name \ | |
| awk 'BEGIN { FS = "\"" } { print $4 }' |
NewerOlder