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 | |
# | |
# This script surrounds the command passed in with start and finish notifications | |
# to the cronitor monitoring application. | |
# | |
# === SETUP | |
# | |
# * Make sure the cronitor script is executable. | |
# | |
# chmod +x cronitor |
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 kafka.server.KafkaConfig; | |
import kafka.server.KafkaServer; | |
import java.io.File; | |
import java.io.FileNotFoundException; | |
import java.util.ArrayList; | |
import java.util.Collections; | |
import java.util.List; | |
import java.util.Properties; |
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
[ | |
{ | |
"productId": "8d5b0391-3990-4f5f-b856-1a5c2bdce464", | |
"sku": "831-46-2908-pink-xs", | |
"amount": 1, | |
"reason": "ORDERED_MISTAKE" | |
} | |
] |
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
SELECT | |
DATE_FORMAT(date_value, '{{ groupby }}') AS date_value, | |
SUM(values) AS sum | |
FROM | |
table | |
GROUP BY | |
date_value |
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
<? | |
public static function getVariableOptions($params, &$report) { | |
$report->conn->SetFetchMode(ADODB_FETCH_NUM); | |
$query = 'SELECT DISTINCT '.$params['column'].' FROM '.$params['table']; | |
if(isset($params['where'])) { | |
$query .= ' WHERE '.$params['where']; | |
} | |
$macros = $report->macros; |