Skip to content

Instantly share code, notes, and snippets.

View pedes's full-sized avatar
:octocat:
I may be slow to respond.

Andres Cespedes Morales pedes

:octocat:
I may be slow to respond.
View GitHub Profile
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>properties-maven-plugin</artifactId>
<version>1.0.0</version>
<executions>
<execution>
<phase>generate-resources</phase>
<goals>
<goal>write-project-properties</goal>
</goals>
<?xml version="1.0" encoding="utf-8"?>
<!-- DO NOT FORGET TO ADD THE PACKAGES ATTRIBUTE, AND REFERENCE THE SPLUNK PACKAGE -->
<!-- DO NOT FORGET TO ADD THE PACKAGES ATTRIBUTE, AND REFERENCE THE SPLUNK PACKAGE -->
<!-- DO NOT FORGET TO ADD THE PACKAGES ATTRIBUTE, AND REFERENCE THE SPLUNK PACKAGE -->
<Configuration packages="com.mulesoft.ch.logging.appender,com.splunk.logging,org.apache.logging.log4j">
<!--These are some of the loggers you can enable.
There are several more you can find in the documentation.
Besides this log4j configuration, you can also use Java VM environment variables
public class MemoryInfoComponent {
private static final long MB = 1048576L;
public static Map<String, String> getMemoryStats() throws Exception {
Runtime rt = Runtime.getRuntime();
MemoryMXBean mbean = ManagementFactory.getMemoryMXBean();
long usedMemory = rt.totalMemory() - rt.freeMemory();
Map<String, String> memoryStats = new HashMap<>();
memoryStats.put("JVM total memory", (rt.totalMemory() / 1048576L) + " MB");
memoryStats.put("JVM used memory", (usedMemory / 1048576L) + " MB");

What not to do during a presentation

  • good speakers come from persistence.
    • use bad presentations as learning experiences
  • there is always another country or conf
  • don't feel discouraged
  • if you really want to be a better speaker, be open to any and all feedback
  • watch your own talks, you can really improve
  • speaking will open the world up to you
  • you get to meet lots of people that open other opportunities