Skip to content

Instantly share code, notes, and snippets.

View build.gradle
apply plugin: 'java'
repositories {
// maybe more repos are necessary
mavenCentral()
}
dependencies {
implementation "ch.qos.logback:logback-core:1.4.5"
implementation "com.github.spotbugs:spotbugs-annotations:4.7.1"
View Firefox about:config
extensions.pocket.enabled=false
browser.urlbar.clickSelectsAll=true
browser.urlbar.doubleClickSelectsAll=false
browser.sessionstore.restore_on_demand=false
identity.fxaccounts.enabled=true
@crusy
crusy / uBlock filter rules (public)
Last active February 27, 2023 08:54
uBlock Filter
View uBlock filter rules (public)
# Make Outlook less cluttered:
outlook.office.com##div:has(:scope > div[title="Ordner"])
outlook.office.com##div:has(:scope > div[title="Favoriten"])
outlook.office.com##div:has(:scope > div[title="Gruppen"])
outlook.office.com##div:has(:scope > div[title="Aufgezeichnete Unterhaltungen"])
outlook.office.com##div:has(:scope > div[title="RSS-Abonnements"])
outlook.office.com##div:has(:scope > div[title="Notizen"])
outlook.office.com##div:has(:scope > div[title="Archiv"])
outlook.office.com##li:has(:scope > div > button[title="Gruppen"])
View ConditionalOnMissingProperty.java
package com.acme.condition;
import org.springframework.boot.autoconfigure.condition.ConditionMessage;
import org.springframework.boot.autoconfigure.condition.ConditionOutcome;
import org.springframework.boot.autoconfigure.condition.SpringBootCondition;
import org.springframework.context.annotation.ConditionContext;
import org.springframework.context.annotation.Conditional;
import org.springframework.core.Ordered;
import org.springframework.core.annotation.Order;
import org.springframework.core.type.AnnotatedTypeMetadata;