Skip to content

Instantly share code, notes, and snippets.

View culmat's full-sized avatar

Matthias Cullmann culmat

View GitHub Profile
apiVersion: backstage.io/v1alpha1
kind: Group
metadata:
name: team-devops-guild
title: Team DevOps Guild
description: The DevOps Guild
links:
- url: https://baloise.com
title: Homepage
spec:
@culmat
culmat / index.html
Last active October 26, 2023 16:05
Geo URI HTML link
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Geo URI</title>
</head>
<body>
<script>
function openGeo(geo) {
try {
@culmat
culmat / DevOps.html
Last active September 6, 2023 11:22
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>DevOps</title>
<style>
.do_icon:hover {
filter: drop-shadow(8px 8px 3px grey);
cursor: pointer;
package culmat.photo;
import static java.util.Arrays.asList;
import static java.util.Arrays.stream;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.nio.file.Path;
digraph G {
rankdir=TB
bgcolor = "transparent"
ranksep = "1.2"
node [fontname = "Sans", shape = "record", margin = ".4"]
n1 [label = "Import from camera",fillcolor=lightblue,style = "filled"]
n2 [label = "Import from directory",fillcolor=lightblue,style = "filled"]
n3 [label="Create \n temporary local disk"]
n4 [label="Check remote for duplicates"]
n5 [label = "Display overview",fillcolor=lightblue,style = "filled"]
# some gnome key bindings conflict with eclipse short cuts that I use frequently
# free up '<Control><Alt>Down'
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-down "['<Super>Page_Down']"
# free up '<Control><Alt>Up'
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-up "['<Super>Page_Up']"
@culmat
culmat / mount-cloud.sh
Last active April 27, 2019 10:28
Mount cloud storage on linux
gio mount davs://dav.box.com
gio mount google-drive://xxx.yyy@gmail.com
@culmat
culmat / ImportTLSCert.java
Last active March 25, 2024 16:58
Imports the (selfsigned) untrusted certificated from an HTTPS server or proxy server into a (current JREs) cacerts file
package com.baloise.proxy;
import static java.io.File.separator;
import static java.lang.String.format;
import static java.lang.System.getProperty;
import static java.util.Arrays.asList;
import static java.util.regex.Pattern.quote;
import static java.util.stream.Collectors.joining;
import java.io.File;
import java.io.IOException;
package common;
/**
* <blockquote>
* <pre>
* Map<String, Integer> myMap = map("a", 1).with("b", 2);
* </pre>
* </blockquote>
*
* The first tuple determines the map type, so cast as appropriate:
* <blockquote>
package common;
import java.util.function.Consumer;
import java.util.function.Function;
public class Consumers {
/**
* <pre>