Skip to content

Instantly share code, notes, and snippets.

View mafulafunk's full-sized avatar
🏠
Working from home

Martin Funk mafulafunk

🏠
Working from home
  • Freelancer
  • Wiesbaden, Germany
View GitHub Profile
@mafulafunk
mafulafunk / hostPortConnect.sh
Created May 21, 2025 13:46
SMTP Test Script
#!/bin/bash
if [ -z "$BASH_VERSION" ]; then
echo "Dieses Skript muss mit bash ausgeführt werden. Bitte verwenden Sie: bash $0"
exit 1
fi
# Protokolldateiname mit Zeitstempel erstellen
TIMESTAMP=$(date +"%Y%m%d_%H%M%S")
LOG_FILE="connection_test_${TIMESTAMP}.log"
TCPDUMP_FILE="tcpdump_${TIMESTAMP}.pcap"
@mafulafunk
mafulafunk / EgoEchoAgentSummarizer.java
Created May 7, 2025 21:03 — forked from ice09/EgoEchoAgentSummarizer.java
JBang script for extracting personality traits and character from different Markdown sources and data model population with LLMs.
//usr/bin/env jbang
//JAVA 21
//DEPS com.openai:openai-java:1.6.0
import com.openai.client.OpenAIClient;
import com.openai.client.okhttp.OpenAIOkHttpClient;
import com.openai.models.responses.ResponseCreateParams;
import com.openai.models.responses.ResponseOutputText;
import java.io.IOException;
package ch_015;
import java.time.LocalDate;
import java.util.function.Function;
import java.util.function.Supplier;
public class SuppliFication {
public static void main(String[] args) {
Function<MySupplier, String> foo = MySupplier::get;
System.out.println(foo.get());

Keybase proof

I hereby claim:

  • I am mafulafunk on github.
  • I am funkattack (https://keybase.io/funkattack) on keybase.
  • I have a public key whose fingerprint is C431 F645 A11D BA07 999F BF29 1182 C715 8145 05F2

To claim this, I am signing this object:

@mafulafunk
mafulafunk / URLTest.java
Created January 17, 2012 09:45
URL get Content as InputStream, ignore any SSL security
package de.martinfunk;
import java.io.IOException;
import java.io.InputStream;
import java.net.Authenticator;
import java.net.PasswordAuthentication;
import java.net.URISyntaxException;
import java.net.URL;
import java.net.URLConnection;
import java.security.KeyManagementException;