Skip to content

Instantly share code, notes, and snippets.

View agebhar1's full-sized avatar

Andreas Gebhardt agebhar1

View GitHub Profile
@agebhar1
agebhar1 / pom.xml
Created November 11, 2021 19:09
Spring Milestone Maven Repository
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<repositories>
<repository>
<id>repository.spring.milestone</id>
<name>Spring Milestone Repository</name>
<url>https://repo.spring.io/milestone</url>
</repository>
@agebhar1
agebhar1 / mq.txt
Last active January 15, 2022 14:07
IBM MQ Container (Commands)
https://github.com/ibm-messaging/mq-container/blob/master/docs/usage.md
Fix Podman admin:
SET CHLAUTH(DEV.ADMIN.SVRCONN) TYPE(USERMAP) CLNTUSER('admin') MCAUSER(1001) ACTION(REPLACE)
---
http://www.mqseries.net/phpBB/viewtopic.php?t=68135&sid=905fec09d6969f9e0f4d18bfa5665c4d
setmqaut -m QM1 -n SYSTEM.ADMIN.COMMAND.QUEUE -t q -p app -all +inq +put
@agebhar1
agebhar1 / mq.yml
Created November 22, 2020 18:48
MQ
apiVersion: v1
kind: Pod
metadata:
name: mq
spec:
containers:
- image: ibmcom/mq:9.1.5.0-r2
name: mq
env:
- name: LICENSE
@agebhar1
agebhar1 / LdapConfigurationWorkaround.java
Last active October 12, 2019 14:17
Spring embedded LDAP Server
package com.example.springldapbug;
import org.springframework.boot.autoconfigure.ldap.LdapProperties;
import org.springframework.boot.autoconfigure.ldap.embedded.EmbeddedLdapProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.boot.test.context.TestConfiguration;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.DependsOn;
import org.springframework.core.env.Environment;
import org.springframework.ldap.core.ContextSource;
@agebhar1
agebhar1 / dependency-relationship.dot
Created August 18, 2019 16:13
(optimal) Database delete/insert sequence
digraph deps {
A -> B;
B -> C;
A -> D;
E -> D;
}
$ ls /opt/sonatype/sonatype-work/nexus3/db/
OSystem accesslog analytics audit component config model.properties security
$ docker-compose exec nexus java -jar ./lib/support/nexus-orient-console.jar
CONNECT PLOCAL:/opt/sonatype/sonatype-work/nexus3/db/component admin admin
REBUILD INDEX *
REPAIR DATABASE --fix-graph
REPAIR DATABASE --fix-links
REPAIR DATABASE --fix-ridbags
@agebhar1
agebhar1 / Vagrantfile
Last active May 4, 2019 19:37
Vagrantfile w/ vagrant-proxyconf plugin - read password w/o echo
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
if ARGV[0] == 'up'
ui = Vagrant::UI::Basic.new
user = ENV['USERNAME']
import java.time.Instant;
import java.time.ZoneId;
import java.time.ZoneOffset;
import java.time.ZonedDateTime;
import java.time.temporal.ChronoUnit;
/*
* https://bugs.openjdk.java.net/browse/JDK-8066982 -- ZonedDateTime.parse() returns wrong ZoneOffset around DST fall transition
*/
public class DaylightSavingTime {
[
{
"codes": {
"alpha2": "AF",
"alpha3": "AFG",
"fifa": "AFG",
"ioc": "AFG"
},
"lang": {
"de": "Afghanistan",