Skip to content

Instantly share code, notes, and snippets.

View stuchl4n3k's full-sized avatar
💭
🔑 0xADAB0057

Petr Stuchlík stuchl4n3k

💭
🔑 0xADAB0057
View GitHub Profile
@stuchl4n3k
stuchl4n3k / KeycloakSecurityConfig.java
Last active June 25, 2018 18:56
PoC for Spring Boot 2 + Spring Security 5 + Keycloak 3.4.3 without Keycloak Adapter
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.autoconfigure.security.oauth2.client.OAuth2ClientProperties;
#!/bin/bash
# Argument = -h -v -i groupId:artifactId:version -c classifier -p packaging -r repository
#shopt -o -s xtrace
# Define Nexus Configuration
NEXUS_BASE=http://repository.example.com:8081/nexus
REST_PATH=/service/local
ART_REDIR=/artifact/maven/redirect
@stuchl4n3k
stuchl4n3k / uctenkovka.sh
Last active November 30, 2018 08:41
Simple curl script for POSTing to Uctenkovna API (Tax Lottery app by Czech Ministry of Finance)
#!/bin/bash
##
# UCTENKOVKA SENDER
#
# Simple curl script for POSTing to Uctenkovna API (Tax Lottery app by Czech Ministry of Finance).
#
# @todo: add support for BKP and phone fields
#
#