Skip to content

Instantly share code, notes, and snippets.

View patch
From 63d4e6685c37985a519c33da862115d9190846b8 Mon Sep 17 00:00:00 2001
From: Nick Babcock <nbabcock19@hotmail.com>
Date: Sun, 24 Feb 2019 14:01:05 -0600
Subject: [PATCH] Disable tty allocation
---
src/docker.rs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/docker.rs b/src/docker.rs
View ValidatingEnumParamConverterProvider.java
package io.dropwizard.jersey.validation;
import com.google.common.base.Joiner;
import com.google.common.base.Strings;
import io.dropwizard.jersey.errors.ErrorMessage;
import javax.ws.rs.WebApplicationException;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
import javax.ws.rs.ext.ParamConverter;
@nickbabcock
nickbabcock / Program.java
Created Sep 3, 2016
Trying to replicate bug found in dropwizard
View Program.java
package com.example.jetty;
import com.google.common.base.Charsets;
import com.google.common.base.Joiner;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.ImmutableSet;
import com.google.common.io.CharStreams;
import org.eclipse.jetty.http.HttpHeader;
import org.eclipse.jetty.server.Connector;
import org.eclipse.jetty.server.Handler;
@nickbabcock
nickbabcock / mustache.diff
Created Aug 19, 2016
dropwizard-partial-mustache
View mustache.diff
diff --git a/dropwizard-views-mustache/src/test/java/io/dropwizard/views/mustache/MustacheViewRendererTest.java b/dropwizard-views-mustache/src/test/java/io/dropwizard/views/mustache/MustacheViewRendererTest.java
index 9e08168..0de4fbf 100644
--- a/dropwizard-views-mustache/src/test/java/io/dropwizard/views/mustache/MustacheViewRendererTest.java
+++ b/dropwizard-views-mustache/src/test/java/io/dropwizard/views/mustache/MustacheViewRendererTest.java
@@ -41,6 +41,18 @@ public class MustacheViewRendererTest extends JerseyTest {
}
@GET
+ @Path("/sub")
+ public SubDirectoryView showSub() {
@nickbabcock
nickbabcock / DropRawApplication.java
Last active Mar 8, 2019
Dropwizard Example using Raw Jetty
View DropRawApplication.java
package com.example;
import com.fasterxml.jackson.core.JsonFactory;
import com.fasterxml.jackson.core.JsonGenerator;
import com.google.common.base.Strings;
import io.dropwizard.Application;
import io.dropwizard.setup.Environment;
import org.eclipse.jetty.servlet.ServletHolder;
import javax.servlet.ServletException;
@nickbabcock
nickbabcock / graphite.conf
Last active Dec 11, 2018
Installs Graphite on CentOS 6
View graphite.conf
server {
listen 80;
root /opt/graphite/webapp/content;
location / {
# checks for static file, if not found proxy to app
try_files \$uri @app;
}
location @app {
You can’t perform that action at this time.