Skip to content

Instantly share code, notes, and snippets.

View jseparovic's full-sized avatar

Jason Separovic jseparovic

View GitHub Profile
@jseparovic
jseparovic / Dockerfile
Created August 29, 2023 06:45
nginx-certbot with fancyindex
FROM jonasal/nginx-certbot:4.3.0-nginx1.25.2 AS builder
ENV NGINX_VERSION 1.25.2
ENV FANCY_INDEX_VERSION 0.5.2
RUN apt-get update && apt-get install --no-install-recommends --no-install-suggests -y \
gnupg1 \
ca-certificates \
gcc \
libc-dev \
@jseparovic
jseparovic / systemd_service_restart_forever.service
Created January 26, 2023 01:32
This systemd service configuration will ensure that your service will attempt to restart your service FOREVER instead of the systemd default of 5 failed retries within 10 seconds and then giving up forever.
# This systemd service configuration will ensure that your service will
# attempt to restart your service FOREVER instead of the systemd default
# of 5 failed retries within 10 seconds and then giving up forever.
[Unit]
Description=MY AMAZING SERVICE
After=multi-user.target
# NOTES ABOUT THE StartLimitBurst OPTION:
# systemd default is StartLimitBurst=5 (give up after 5 failed attempts)
@jseparovic
jseparovic / TransformDateTime.java
Last active November 8, 2022 00:26
Kafka Connect transforms mysql datetime(6) - microsecond precision
package io.raasify.kafka.connect.transform.datetime;
import org.apache.kafka.common.cache.Cache;
import org.apache.kafka.common.cache.LRUCache;
import org.apache.kafka.common.cache.SynchronizedCache;
import org.apache.kafka.common.config.ConfigDef;
import org.apache.kafka.connect.connector.ConnectRecord;
import org.apache.kafka.connect.data.Field;
import org.apache.kafka.connect.data.Schema;
@jseparovic
jseparovic / all_email_provider_domains.txt
Created April 12, 2022 22:27 — forked from ammarshah/all_email_provider_domains.txt
A list of all email provider domains (free, paid, blacklist etc). Some of these are probably not around anymore. I've combined a dozen lists from around the web. Current "major providers" should all be in here as of the date this is created.
0-mail.com
007addict.com
020.co.uk
027168.com
0815.ru
0815.su
0clickemail.com
0sg.net
0wnd.net
0wnd.org