Skip to content

Instantly share code, notes, and snippets.

@harageth
harageth / gist:7e22e119ac9c9fba81da72875b3d1dcc
Created May 14, 2018 18:42
Flume thrift source logger sink config
flume.sources = thriftSource
flume.channels = fileChannel
flume.sinks = loggerSink
flume.sources.thriftSource.type = thrift
flume.sources.thriftSource.bind = localhost
flume.sources.thriftSource.port = 4141
# flume.sources.thriftSource.channels = memoryChannel
flume.sources.thriftSource.channels = fileChannel
var TRIGGER_COLUMN = 2;
var EMAILED_COLUMN_VALIDATION = 3;
var EMAILED_COLUMN_VALIDATION_VALUE = "SENT"
var EMAIL_COLUMN = 1;
var SUBJECT = "YOUVE GOT MAIL"
var MESSAGE = "Hello %, \nThis is the UncleBot from Unclesoklaldkfjklasdf\n Game: %"
function myFunction(e) {
var sheet = SpreadsheetApp.getActiveSheet();
/Library/Java/JavaVirtualMachines/jdk1.8.0_91.jdk/Contents/Home/bin/java -XX:TieredStopAtLevel=1 -noverify -Dspring.output.ansi.enabled=always -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=54814 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Dspring.liveBeansView.mbeanDomain -Dspring.application.admin.enabled=true "-javaagent:/Applications/IntelliJ IDEA.app/Contents/lib/idea_rt.jar=54815:/Applications/IntelliJ IDEA.app/Contents/bin" -Dfile.encoding=UTF-8 -classpath /Library/Java/JavaVirtualMachines/jdk1.8.0_91.jdk/Contents/Home/jre/lib/charsets.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_91.jdk/Contents/Home/jre/lib/deploy.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_91.jdk/Contents/Home/jre/lib/ext/cldrdata.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_91.jdk/Contents/Home/jre/lib/ext/dnsns.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_91.jdk/Contents/Home/jre/lib/ext/jaccess.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_91.jdk/Content
{
"swagger" : "2.0",
"info" : {
"version" : "0.1.0",
"title" : "Salus Monitor Management"
},
"schemes" : [ "https", "http" ],
"paths" : {
"/api/boundMonitors/{envoyId}" : {
"get" : {
curl --request POST \
--url http://localhost:9000/player1-backend-nonprod/internal/metacritic/us/ \
--header 'Content-Type: application/json' \
--header 'User-Agent: insomnia/9.3.3' \
--cookie 'access_token=ODNlNzQyM2ItMjY3Zi00MmRjLTliMWItMjU4NzFhZDY0MGQ3; fandom_global_id=81a26221-79b4-4bcd-b286-340d4ea95bbc' \
--data '{"body":"<p><a href=\"https:\/\/go.skimresources.com\/?id=225336X1708649&amp;xs=1&amp;xcust=subid_value&amp;url=https%3A\/\/www.xbox.com\/en-US\/xbox-game-pass\">Sign up for Xbox Game Pass here &gt;<\/a> <br> <a href=\"https:\/\/go.skimresources.com\/?id=225336X1708649&amp;xs=1&amp;xcust=subid_value&amp;url=https%3A%2F%2Fwww.xbox.com%2Fen-US%2Fxbox-game-pass%2Fpc-game-pass%3Fxr%3Dshellnav\">Sign up for PC Game Pass here &gt;<\/a> <\/p><p>All games are available on both console and PC unless otherwise indicated.<\/p><hr><h2>Updates<\/h2><p>KEY:<br> <strong>(U)<\/strong> = console version is exclusive to Game Pass Ultimate subscribers (including EA Play titles)<br> <strong>(G
curl --request POST \
--url http://localhost:9000/player1-backend-nonprod/internal/metacritic/us/ \
--header 'Content-Type: application/json' \
--header 'User-Agent: insomnia/9.3.3' \
--cookie 'access_token=ODNlNzQyM2ItMjY3Zi00MmRjLTliMWItMjU4NzFhZDY0MGQ3; fandom_global_id=81a26221-79b4-4bcd-b286-340d4ea95bbc' \
--data '{"body":"[\"<p>\\nSonic Frontiers \\n</p>\\n<p>\\n</p>\\n<p>\\n</p>\\n<p>\\n\\t<span data-shortcode=\\\"textscore\\\" data-score=\\\"61\\\" data-classnames=\\\"o-inlineScore-green\\\">61</span> \\t<span data-shortcode=\\\"link\\\" data-asset-type=\\\"catalog_game\\\" data-uuid=\\\"1300575852\\\" data-score=\\\"true\\\"><br/>\\n </span> \\n</p>\\n<p>\\n\\t<span data-shortcode=\\\"link\\\" data-asset-type=\\\"catalog_game\\\" data-uuid=\\\"1400576188\\\" data-score=\\\"true\\\"></span><br/>\\n</span> \\n</p>\",\"<p>Hunter Doohan in '\''Wednesday'\'' </p><p><span data-shortcode=\\\"link\\\" data-asset-type=\\\"catalog_game\\\" data-uuid=\\\"1300570889\\\" data-score=\\\"tr