Skip to content

Instantly share code, notes, and snippets.

View marcokrikke's full-sized avatar
💻

Marco Krikke marcokrikke

💻
View GitHub Profile
@marcokrikke
marcokrikke / postman.js
Created September 7, 2022 08:05
JMESPath in Postman
pm.visualizer.set(`
<pre id="jmespath"/>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jmespath/0.16.0/jmespath.min.js"></script>
<script>
pm.getData((err, data) => {
var query = "[?pn==null].{code: c, pn: pn}";
var result = jmespath.search(data.response, query);
@marcokrikke
marcokrikke / keybase.md
Created April 18, 2016 11:40
keybase.md

Keybase proof

I hereby claim:

  • I am marcokrikke on github.
  • I am marcokrikke (https://keybase.io/marcokrikke) on keybase.
  • I have a public key ASBQUmnSq8S4EQgnWDaHkRAtEtkM1fjbYxVJNfMqSDhnEQo

To claim this, I am signing this object:

@marcokrikke
marcokrikke / XmlOutputter.java
Created April 29, 2013 11:19
xCal outputter
package nl.eveoh.scheduleviewer.export;
import java.io.IOException;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
import java.io.Writer;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
@marcokrikke
marcokrikke / eclipsetask.groovy
Created April 29, 2013 11:14
Eclipse Gradle task
eclipse {
project {
natures 'com.google.gwt.eclipse.core.gwtNature'
buildCommand 'com.google.gdt.eclipse.core.webAppProjectValidator'
buildCommand 'com.google.gwt.eclipse.core.gwtProjectValidator'
}
classpath {
containers 'com.google.gwt.eclipse.core.GWT_CONTAINER'
}
}
@marcokrikke
marcokrikke / compileGwt.groovy
Created April 29, 2013 11:13
compileGwt Gradle task
task compileGwt (dependsOn: classes, type: JavaExec) {
buildDir = "${project.buildDir}/gwt"
extraDir = "${project.buildDir}/extra"
inputs.source sourceSets.main.java.srcDirs
inputs.dir sourceSets.main.output.resourcesDir
outputs.dir buildDir
// Workaround for incremental build (GRADLE-1483)
outputs.upToDateSpec = new org.gradle.api.specs.AndSpec()
@marcokrikke
marcokrikke / build.gradle
Created April 29, 2013 11:12
Gradle build file
dependencies {
// Compile GWT libs, needed for gwtCompile and the javaCompile
// Also includes the servlet-api
providedCompile 'com.google.gwt:gwt-user:2.4.0'
providedCompile 'com.google.gwt:gwt-dev:2.4.0'
// Needed for GWT compile and at runtime for RequestBuilder
// Specify two artifacts as workaround for GRADLE-1934
compile('javax.validation:validation-api:1.0.0.GA') {
artifact {
@marcokrikke
marcokrikke / gist:5480954
Created April 29, 2013 10:59
ADSI Java example
import nl.eveoh.jacob.ado.*;
import com.jacob.activeX.ActiveXComponent;
import com.jacob.com.ComThread;
import com.jacob.com.Dispatch;
import com.jacob.com.Variant;
public class MyClass {
private String getEmployeeNumber(String username) {
try {
@marcokrikke
marcokrikke / gist:5480951
Created April 29, 2013 10:58
Jacob dependencies
dependencies {
// Jacob and accompanying wrappers (from own at http://www.eveoh.nl/files/maven2/)
compile 'net.sf.jacob-project:jacob:1.15-M4'
compile 'net.sf.jacob-project:jacob-ado-wrappers:1.0' // ADO wrappers, available from the Jacob source package, under GPLv3, repacked to nl.eveoh.jacob.ado namespace
}
@marcokrikke
marcokrikke / gist:5263976
Created March 28, 2013 15:17
Tomcat connector SSL configuration.
<Connector
port="443" maxThreads="200"
scheme="https" secure="true" SSLEnabled="true"
keystoreFile="path to keystore file" keystorePass="my keystore password" />
<Connector
port="443" maxThreads="200"
scheme="https" secure="true" SSLEnabled="true"
SSLCertificateFile="cert.pem"
SSLCertificateKeyFile="key.pem"