Skip to content

Instantly share code, notes, and snippets.

View marcelmaatkamp's full-sized avatar
🚢
Available

Marcel Maatkamp marcelmaatkamp

🚢
Available
View GitHub Profile
@marcelmaatkamp
marcelmaatkamp / gist:123e8793e07a72a382d8d0e8d66bbd8f
Last active November 3, 2025 09:12
Fix Sonatype Nexus OrientDB
$ 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
services:
pocketbase:
image: ghcr.io/muchobien/pocketbase:0.23.6
restart: unless-stopped
environment:
ENCRYPTION: $(openssl rand -hex 32)\
prts:
- "8090:8090"
volumes:
- pocketbase:/pb_data
mvn org.antlr:antlr4-maven-plugin:help -Ddetail=tru
owl-shop:
image: quay.io/cloudhut/owl-shop:sha-042112b
entrypoint: /bin/sh
command: -c "echo \"$$OWLSHOP_CONFIG_FILE\" > /tmp/config.yml; /app/owlshop"
environment:
CONFIG_FILEPATH: /tmp/config.yml
OWLSHOP_CONFIG_FILE: |
shop:
requestRate: 1
interval: 0.1s
https://medium.com/@ingridwickstevens/chat-with-your-local-documents-privategpt-lm-studio-c6ff94d0dfe3
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"\n
brew install make tcl-tk sqlite pyenv-virtualenv
curl https://pyenv.run | bash
export PATH="$HOME/.pyenv/bin:$PATH"
@marcelmaatkamp
marcelmaatkamp / cp-kafka.yml
Created October 2, 2020 06:33
docker-compose cp-kafka
---
version: '2'
services:
zookeeper:
image: confluentinc/cp-zookeeper:5.3.1
hostname: zookeeper
container_name: zookeeper
ports:
- "2181:2181"
environment:
---
from sqlalchemy import create_engine
engine = create_engine('postgresql://postgres:postgres@postgres:5432/postgres', echo=False)
---
import pandas as pd
with engine.connect() as connection:
df = pd.read_sql('ais', connection)
df
import java.security.MessageDigest
import java.io.*
/**
* Determine the MD5 or SHA1Sum of a file:
*
* println Checksum.getMD5Sum(new File("file.bin"))
* println Checksum.getSHA1Sum(new File("file.bin"))
*
* @author: Marcel Maatkamp (m.maatkamp avec gmail dot com)
@marcelmaatkamp
marcelmaatkamp / Data.java
Last active September 13, 2022 21:06
AES(256) wrapped in RSA(2048) example
import java.io.Serializable;
/**
* Created by marcelmaatkamp (m.maatkamp@gmail.com)
*/
public class Data implements Serializable {
public String msg;
public Data(String s) {
this.msg = s;
@marcelmaatkamp
marcelmaatkamp / install_terraform_and_kubectl.sh
Created February 4, 2022 10:56
Install terraform and kubectl
$ \
sudo apt-get install -y \
apt-transport-https \
ca-certificates \
curl \
&&\
curl -fsSL https://apt.releases.hashicorp.com/gpg | \
sudo apt-key add - &&\
sudo apt-add-repository \
"deb [arch=$(dpkg --print-architecture)] https://apt.releases.hashicorp.com $(lsb_release -cs) main" &&\