Skip to content

Instantly share code, notes, and snippets.

View mesketh's full-sized avatar
🏠
Working from home

Mark Hesketh mesketh

🏠
Working from home
  • Crestwood, NSW, Australia
View GitHub Profile
<?xml version="1.0" encoding="UTF-8"?>
<code_scheme name="GoogleStyle">
<option name="OTHER_INDENT_OPTIONS">
<value>
<option name="INDENT_SIZE" value="2" />
<option name="CONTINUATION_INDENT_SIZE" value="4" />
<option name="TAB_SIZE" value="2" />
<option name="USE_TAB_CHARACTER" value="false" />
<option name="SMART_TABS" value="false" />
<option name="LABEL_INDENT_SIZE" value="0" />
@mesketh
mesketh / AppConfig.java
Created March 28, 2022 23:10
example percentiles - spring boot
package org.eclipse.jkube.maven.sample.spring.boot;
import io.prometheus.client.CollectorRegistry;
import io.prometheus.client.Histogram;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Lazy;
@Configuration
@mesketh
mesketh / PaymentTxn.java
Created February 26, 2020 01:03
Judy - this is what i've implemented.
String usernamePrefix =
box.getEnv().getUsername().toUpperCase().replaceAll("[^a-zA-Z0-9]", StringUtil.EMPTY_STRING);