Skip to content

Instantly share code, notes, and snippets.

View ped4enko's full-sized avatar

Ped4enko ped4enko

View GitHub Profile
public class ClassWithLazyLogs implements LazyLogging {
public String getNormalizedName(Person person) {
info(() -> "getNormalizedName called");
debug(() -> "Normalizing " + person.toString());
String normalizedName =
person.getName().toUpperCase().trim();
debug(() -> "Normalized name is: " + normalizedName);
return normalizedName;
}
}
@ped4enko
ped4enko / free_email_provider_domains.txt
Created March 14, 2018 06:21 — forked from tbrianjones/free_email_provider_domains.txt
A list of free email provider domains. Some of these are probably not around anymore. I've combined a dozen lists from around the web. Current "major providers" should all be in here as of the date this is created.
1033edge.com
11mail.com
123.com
123box.net
123india.com
123mail.cl
123qwe.co.uk
150ml.com
15meg4free.com
163.com
@ped4enko
ped4enko / Campaign Budget Overspend Monitoring
Created October 31, 2017 13:37 — forked from BrainlabsDigital/Campaign Budget Overspend Monitoring
Labels (and optionally pauses) campaigns that are overspending too much, and emails you a warning.
/**
*
* Campaign Budget Overspend Monitoring
*
* This script labels campaigns whose spend today is more than their daily
* budgets. Optionally, it also pauses campaigns whose spend exceeds the
* budget by too much. An email is then sent, listing the newly labelled
* and paused campaigns.
* When spend no longer exceeds budget, the campaigns are reactivated and
* labels are removed.