Skip to content

Instantly share code, notes, and snippets.

@little-pinecone
little-pinecone / .env
Last active February 3, 2022 10:00
Importing Keycloak realms from a directory
KEYCLOAK_VERSION=16.1.1
KEYCLOAK_USER=keycloak
KEYCLOAK_PASSWORD=keycloak
KEYCLOAK_IMPORT_FOLDER=./keycloak/realms/import
@little-pinecone
little-pinecone / README.md
Last active March 22, 2021 14:33
README.md template

Project name

[alt for logo](link to company landing page)

A short project description (1-2 sentences).

GitHub

Code analysis

@little-pinecone
little-pinecone / .env
Created September 29, 2020 11:17
SonarQube in Docker
SONAR_VERSION=8.4.2-community
@little-pinecone
little-pinecone / LuhnFormula.java
Last active September 10, 2020 11:54
Validate credit card numbers with the Luhn algorithm in Java
public class LuhnFormula {
public boolean validate(String input) {
char[] chars = convertToArrayOfValidChars(input);
return getSum(chars) % 10 == 0;
}
private char[] convertToArrayOfValidChars(String input) {
String sanitized = input.replaceAll("[^\\d]", "");
return sanitized.toCharArray();
git commit --amend --author "name <email>" --no-edit && git rebase --continue
docker system df -v
sudo du -sch /* | sort -n