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 -x | |
# An set of disks to ignore from partitioning and formatting | |
BLACKLIST="/dev/sda" | |
# Base directory to hold the data* files | |
DATA_BASE="/mnt" | |
usage() { | |
echo "Usage: $(basename $0) <new disk>" | |
} |
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
[ | |
"titel":[ | |
"ABS00001.pdf":"O 001 - DEVELOPMENT OF QUICK DRYING CASING MATERIAL FOR ABLAST FURNACE", | |
"ABS00002.pdf":"O 002 - ASSESSING THE CHEMICAL WEAR RESISTANCE OF BLASTFURNACE CERAMIC CUP MATERIALS AT TATA STEEL IN IJMUIDEN", | |
"ABS00003.pdf":"O 003 - SHOTCRETING CASTABLES FOR BLAST-FURNACE HOT REPAIRS", | |
"ABS00004.pdf":"O 004 - PREMATURE WEAR IN THE HEARTH OF A BLAST FURNACE ANDITS DIMINUTION BY THE APPLICATION OF TITANIUM DIOXIDE", | |
"ABS00005.pdf":"O 007 - REFRACTORY CASTABLES FOR MAIN RUNNERS - DEVELOPMENTSFOR NEW CHALLENGES IN BLAST FURNACE CASTHOUSE OPERATION", | |
"ABS00006.pdf":"O 008 - COMPARISON OF BLAST FURNACE PLUGGING PRACTICE INEUROPE AND INDIA", | |
"ABS00007.pdf":"O 009 - TILTING RUNNERS: REFRACTORY SOLUTIONS FOR HIGH IRONIMPACT RESISTANCE", | |
"ABS00008.pdf":"O 010 - IMPROVEMENT OF HOT METAL LADLE LIFE WITH LININGTEMPERATURE CONTROL", |
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
private[this] def send() { | |
if (preCommitBuffer.size > maxQueueSize || System.currentTimeMillis - lastSendTime > maxHoldTime) { | |
lastSendTime = System.currentTimeMillis | |
val batches = preCommitBuffer groupBy (_.sendHour) | |
batches foreach { | |
case (hour, events) => { | |
try { | |
val inputStream = new ByteArrayInputStream( | |
(events map (JSON.toJson(_)) mkString (System.getProperty("line.separator"))).getBytes("UTF-8")) | |
info("Sending batch of %d messages, de-queued from %s, for hour boundary %d".format(events.size, queueName, hour)) |
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
@JsonIgnoreProperties(ignoreUnknown = true) | |
case class ApiEmailSendEventQueueItemMessage | |
(messageId: String, | |
accountId: Int, | |
channelId: Int, | |
sessionId: Int, | |
sendTime: Int, | |
eventTime: Int, | |
sendHour: Int, | |
toEmail: String, |
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
var emailOrTemplateRegex = /(.*\{\{.*\}\}.*)|(.*@.*)/; |