Skip to content

Instantly share code, notes, and snippets.

'use strict';
const AWS = require('aws-sdk');
const url = require('url');
const https = require('https');
const hookUrlParameter = process.env.hookUrlParameter;
let hookUrl;
let ssm = new AWS.SSM();
@walterwhites
walterwhites / DebugUtils.java
Created December 6, 2019 16:11
DebugUtils for java EE stack (Zipkin, HttpServletRequest etc.)
import javax.servlet.http.HttpServletRequest;
import java.util.Enumeration;
public final class DebugUtils {
private static String PURPLE = "\033[0;35m"; // PURPLE
private static String RED = "\u001B[31m"; // RED
private static String RESET = "\u001B[0m";
public static class ZipkinDebug {
@walterwhites
walterwhites / Dockerfile
Created November 13, 2019 23:46
dockerfile_codeception
FROM codeception/codeception
MAINTAINER Flo Flo contact.magician@gmail.com
# Install docker and docker-compose
RUN apt-get update -y && apt-get install -y apt-transport-https ca-certificates \
curl gnupg2 software-properties-common \
&& curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add - \
&& apt-key fingerprint 0EBFCD88 \
&& add-apt-repository \
docker-compose up --scale chrome=2
hub:
image: selenium/hub
ports:
- "4444:4444"
environment:
- GRID_TIMEOUT=180
restart: always
chrome:
image: selenium/node-chrome
ports: