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
| #!/bin/bash | |
| # | |
| # Get PID of a process which listens on given port. | |
| # | |
| if [ $# -lt 1 ] | |
| then | |
| echo "Specify port number to look for" | |
| echo "e.g. $0 22" |
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
| import java.text.DateFormat | |
| import java.util.regex.Pattern | |
| // | |
| // In given CSV file, converts dates formatted like | |
| // | |
| // Monday, August 1, 2016 8:39:28 PM +07:00 | |
| // | |
| // to dates like | |
| // |
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
| @JmxResource(domainName = "mobi.eyeline.mps.core", beanName = "ETPService") | |
| public class EtpService implements MQSender { | |
| private final Logger logger = Logger.getLogger("ETP"); | |
| /** | |
| * Queue name for sending issue state change notifications. | |
| */ | |
| private final String queueStateOut; |
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
| @JmxResource(domainName = "mobi.eyeline.mps.core", beanName = "ApplicationHandler") | |
| public class ApplicationHandler extends MQConsumerTask { | |
| private final Logger logger = Logger.getLogger("ETP"); | |
| private static final String HEADER_SSOID = "SSOId"; | |
| private final CoordinateDataCoder decoder = new CoordinateDataCoder(); | |
| private final CoreDbService db; |
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
| class MQConnection implements ExceptionListener { | |
| private final MQQueueConnectionFactory brokerConnectionFactory; | |
| private Connection connection; | |
| private boolean receiverTransacted; | |
| private int receiverAcknowledge; | |
| private final Map<String, Consumer> consumers; | |
| private final Map<String, Producer> producers; |
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
| public class MQConnectionWrapper { | |
| private static final long RECONNECT_DELAY_MILLIS = TimeUnit.SECONDS.toMillis(30); | |
| private static final long MESSAGE_WAIT_MILLIS = TimeUnit.SECONDS.toMillis(30); | |
| private final Logger logger = Logger.getLogger("ETP"); | |
| private final Object RECONNECT_MONITOR = new Object(); | |
| private final String hosts; |
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
| abstract class MQConsumerTask extends Thread { | |
| private static final Logger logger = Logger.getLogger("ETP"); | |
| private final String queueName; | |
| private final MQConnectionWrapper connection; | |
| private volatile boolean isStopped; | |
| public MQConsumerTask(String name, String queueName, MQConnectionWrapper connection) { |
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
| | ̄ ̄ ̄ ̄ ̄ ̄ ̄| | |
| | ЗАЕБАЛИ! | | |
| |_______| | |
| (\__/) || | |
| (•ㅅ•) || | |
| / づ |
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
| (function(depth0,helpers,partials,data | |
| /**/) { | |
| var stack1; | |
| return "\n\n" | |
| + ((stack1 = helpers['if'].call(depth0,(depth0 != null ? depth0.length : depth0),{"name":"if","hash":{},"fn":this.program(1, data, 0),"inverse":this.program(8, data, 0),"data":data})) != null ? stack1 : "") | |
| + "\n"; | |
| }) |
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
| ██████████████████████████████████ | |
| ▌ ▐█ ▐ | |
| ▌ ▄ ▄█▓█▌ ▐ | |
| ▌ ▐██▄ ▄▓░░▓▓ ▐ | |
| ▌ ▐█░██▓ ▓▓░░░▓▌ ▐ | |
| ▌ ▐█▌░▓██ █▓░░░░▓ ▐ | |
| ▌ ▓█▌░░▓█▄███████▄███▓░▓█ ▐ | |
| ▌ ▓██▌░▓██░░░░░░░░░░▓█░▓▌ ▐ | |
| ▌ ▓█████░░░░░░░░░░░░▓██ ▐ | |
| ▌ ▓██▓░░░░░░░░░░░░░░░▓█ ▐ |