>>> docker exec -it CONTAINERID /bin/sh
/app # telnet
/bin/sh: telnet: not found
/app # apk update
fetch http://dl-cdn.alpinelinux.org/alpine/v3.7/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.7/community/x86_64/APKINDEX.tar.gz
v3.7.0-243-gf26e75a186 [http://dl-cdn.alpinelinux.org/alpine/v3.7/main]
v3.7.0-229-g087f28e29d [http://dl-cdn.alpinelinux.org/alpine/v3.7/community]
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/usr/bin/python | |
""" | |
Match up tests starting and completing to find hung tests | |
""" | |
import re | |
import sys | |
STARTED_RE = re.compile(r'^.* > .*STARTED$') | |
PASSED_RE = re.compile(r'^.* > .*PASSED$') | |
SKIPPED_RE = re.compile(r'^.* > .*SKIPPED$') | |
FAILED_RE = re.compile(r'^.* > .*FAILED$') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* eslint-disable no-console */ | |
const https = require('https'); | |
const fetch = require('node-fetch'); | |
const ntlm = require('httpntlm').ntlm; | |
const keepAlive = new https.Agent({ keepAlive: true }); | |
const handleErrors = (response) => { | |
if (!response.ok) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.unboundid.ldap.listener.InMemoryDirectoryServer; | |
import com.unboundid.ldap.listener.InMemoryDirectoryServerConfig; | |
import com.unboundid.ldap.listener.InMemoryListenerConfig; | |
import com.unboundid.ldap.sdk.*; | |
import com.unboundid.ldif.LDIFException; | |
/** | |
* Sample code to demonstrate password change. | |
* Error handling is not demonstrated here. | |
*/ |
In Preferences>Java>Editor>Templates, create a new template named logger in the Java type members context and with the following pattern:
/** The usual Logger.*/ private static final Logger LOGGER = LoggerFactory.getLogger(${enclosing_type}.class); ${:import('org.slf4j.Logger','org.slf4j.LoggerFactory')}
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Copyright (c) 2014. | |
* This file is licensed under the Apache License, | |
* Version 2.0 (the "License"); you may not use this file except | |
* in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.*; | |
public class TestProcessIO { | |
public static boolean isAlive(Process p) { | |
try { | |
p.exitValue(); | |
return false; | |
} | |
catch (IllegalThreadStateException e) { |