Skip to content

Instantly share code, notes, and snippets.

View layandreas's full-sized avatar

Andreas Lay layandreas

View GitHub Profile
@layandreas
layandreas / choicesjs.css
Created August 2, 2025 10:56
choicesjs styling to make it fit in with the daisyui style
.choices {
position: relative;
overflow: hidden;
margin-bottom: 0px;
font-size: 16px
}
.choices:focus {
outline: 0
}
#!/usr/bin/env zsh
# This script will set up a docker compose environment with Kafka, Minio, and
# Kafka Connect. We publish messages to a Kafka topic and then use a
# Kafka Connect S3 sink connector to write those messages to a Minio bucket
# Setup folder structure
mkdir kafka-connect-example
cd kafka-connect-example
mkdir kafka-connect-plugins
@layandreas
layandreas / docker-compose.yml
Created July 21, 2025 20:51
Kafka Connect to S3
version: '3.8'
services:
zookeeper:
image: confluentinc/cp-zookeeper:7.4.0
container_name: zookeeper
environment:
ZOOKEEPER_CLIENT_PORT: 2181
ZOOKEEPER_TICK_TIME: 2000
# /// script
# requires-python = ">=3.13"
# dependencies = [
# "duckdb==1.2.1",
# "gcsfs>=2025.3.0",
# "ibis-framework[duckdb]==10.4.0",
# "pins==0.8.7",
# ]
# ///
import logging
import time
from typing import Any
from google.cloud import storage
logger = logging.getLogger(__name__)
class RemoteLock:

Privacy policy for the Hackerfluff app.

Information Collection and Use

The app does not send or collect any in app browsing data. This app only makes requests to the Official Hackernews API to stories & comments.

Links to Other Sites

Our Service may contain links to other apps and sites. If you click on a third-party link, you will be directed

Hackerfluff - A Hackernews Client App

If you face any problems with this app please contact me through my GitHub profile.

@layandreas
layandreas / sarimax_primer.ipynb
Created November 21, 2023 19:55
SARIMAX Primer
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.