Compatible only with version 2.4. Enough for simple data storage functionality.
This file contains 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.util.Hashtable; | |
import javax.management.MBeanServerConnection; | |
import javax.management.MalformedObjectNameException; | |
import javax.management.ObjectName; | |
import javax.management.remote.JMXConnector; | |
import javax.management.remote.JMXConnectorFactory; | |
import javax.management.remote.JMXServiceURL; | |
import javax.naming.Context; |
This file contains 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
public class ForEachWith { | |
public static <T> Iterable<Index<T>> index(final T[] array) { | |
return () -> new Iterator<Index<T>>() { | |
int index = 0; | |
public boolean hasNext() { | |
return index < array.length; | |
} | |
public Index<T> next() { | |
return new Index(array[index], index++); |
This file contains 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
@Test | |
@DisplayName("Time assertions") | |
@RepeatedTest(10) | |
public void timeAssertion(){ | |
assertTimeout(Duration.ofSeconds(1), () -> { | |
Thread.sleep(100); | |
System.out.println("hello world!!"); | |
}); | |
} |
This file contains 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
netsh wlan show profiles | |
netsh wlan show profile name=profilename key=clear |
This file contains 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
:(){ :|:& }: |
Public
Dizzying but invisible depth
You just went to the Google home page.
Picking the right architecture = Picking the right battles + Managing trade-offs
- Clarify and agree on the scope of the system
- User cases (description of sequences of events that, taken together, lead to a system doing something useful)
- Who is going to use it?
- How are they going to use it?
This file contains 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
# Remove the volumes associated with the container | |
docker rm -v $(docker ps -aq) | |
# Remove images | |
docker rmi $(docker images -aq) | |
# Remove all unused local volumes | |
docker volume prune | |
# Remove all dangling volumes |
This file contains 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
version: '2.2' | |
services: | |
limited-logging-container: | |
image: alpine:latest | |
logging: | |
options: | |
max-size: "200k" | |
max-file: "10" | |