Skip to content

Instantly share code, notes, and snippets.

{
"swagger" : "2.0",
"info" : {
"version" : "0.1.0",
"title" : "Salus Monitor Management"
},
"schemes" : [ "https", "http" ],
"paths" : {
"/api/boundMonitors/{envoyId}" : {
"get" : {
/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
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();
@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
test.sources = thriftSource
test.channels = fileChannel
test.sinks = outLogger
# A single thrift source to send to all channels
test.sources.thriftSource.type = thrift
test.sources.thriftSource.bind = localhost
test.sources.thriftSource.port = 7878
test.sources.thriftSource.threads = 20
package passByReference;
public class passByReference {
int value;
public passByReference(int value) {
this.value = value;
}
}
@harageth
harageth / blah
Created September 21, 2017 20:12
package passByReference;
public class blah {
public static void main(String[] args) {
passByReference value = new passByReference(2);
System.out.println(value.value);
changeValueByReference(value);
System.out.println(value.value);
}
==> default:
==> default: [ivy:retrieve] :::: WARNINGS
==> default: [ivy:retrieve] [FAILED ] org.javassist#javassist;3.18.1-GA!javassist.jar(bundle): invalid sha1: expected=d9a09f7732226af26bf99f19e2cffe0ae219db5b computed=1153878fa3db0c164318521e8e77106f9099f4e5 (218ms)
==> default: [ivy:retrieve] [FAILED ] org.javassist#javassist;3.18.1-GA!javassist.jar(bundle): invalid sha1: expected=d9a09f7732226af26bf99f19e2cffe0ae219db5b computed=1153878fa3db0c164318521e8e77106f9099f4e5 (218ms)
==> default: [ivy:retrieve] ==== httpscentral: tried
==> default: [ivy:retrieve] https://repo1.maven.org/maven2/org/javassist/javassist/3.18.1-GA/javassist-3.18.1-GA.jar
==> default: [ivy:retrieve] ::::::::::::::::::::::::::::::::::::::::::::::
==> default: [ivy:retrieve] :: FAILED DOWNLOADS ::
==> default: [ivy:retrieve] :: ^ see resolution messages for details ^ ::
==> default:
/opt/zookeeper/bin$ ./zkServer.sh start ../config/zookeeper.properties
/opt/kafka$ bin/kafka-server-start.sh config/server.properties
/opt/kafka$ $ bin/kafktopics.sh --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic flume-ingestor-test
/opt/kafka$ $ bin/kafktopics.sh --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic flume-aep-test
/opt/kafka$ bin/kafka-console-producer.sh --broker-list localhost:9092 --topic flu-aep-test
vagrant@dev-maas-dev-dev0:/opt/ele$ npm-v6.2.2 run integration-skip-flaky
> ele@0.1.0 integration-skip-flaky /opt/ele
> node ./tests/run-integration.js --skip-suite-flaky
regenerating version filez...
Error: Cannot find module 'strip-ansi'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)