Skip to content

Instantly share code, notes, and snippets.

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

Roland Leitenberger trepeschr

🏠
Working from home
  • Henrichsen4S
  • Straubing
View GitHub Profile
@thezawzaw
thezawzaw / automate-tls-ssl-certs-cert-manager.md
Last active October 9, 2025 05:11
Automating TLS/SSL Cert Management with Cert-Manager on Kubernetes

Automating TLS/SSL Cert Management with Cert-Manager on Kubernetes

This page describes how to setup Cert-manager and generate TLS/SSL certificates automatically using Cert-manager on Kubernetes.

Prerequisites

  • Kubernetes
  • Helm Package Manager Tool

Installation

@github-dorian-grasset
github-dorian-grasset / Dockerfile
Last active March 5, 2026 10:56
How I Cut Docker Image Size by Switching to a Distroless Base Image
# ---- Full Dependency and Build Stage ----
FROM node:22-alpine AS build
WORKDIR /src
COPY package*.json ./
RUN npm ci --ignore-scripts --no-fund
COPY . .
@alishahlakhani
alishahlakhani / madeofzero-nextjs-framer-flip-card.tsx
Last active January 28, 2026 13:17
Create a Tarot card deck selection page using Framer Motion and Nextjs
"use client";
import React, { useState } from "react";
import { AnimatePresence, motion } from "framer-motion";
import Image from "next/image";
import clsx from "clsx";
type Props = {
onPick?: (card: string | null) => void;
onSelect?: (card: string) => void;
};
@nimone
nimone / Sidebar.jsx
Created June 29, 2023 09:33
Retractable Sidebar Component purely in ReactJS and TailwindCSS
import { MoreVertical, ChevronLast, ChevronFirst } from "lucide-react"
import { useContext, createContext, useState } from "react"
const SidebarContext = createContext()
export default function Sidebar({ children }) {
const [expanded, setExpanded] = useState(true)
return (
<aside className="h-screen">
@mukeshmodiindia
mukeshmodiindia / README.md
Last active November 3, 2024 05:24
Deploy Percona Server for MongoDB Replica set with Ansible

Deploy the MongoDB Replica set using Ansible.

Pre-requisite:

Make sure to add hosts entries in /etc/hosts in all mongod instance. Verify whether it's reachable, i.e within network. Check it with ping or telnet. ping hostname/ip telnet hostname/ip mongo_port Quick guide

Adjust the hosts details in inventory. Adjust the global variables in group_vars/all

@nicoclau
nicoclau / KeyCloakService.ts
Last active October 19, 2022 14:34
KeyCloakService
import Keycloak from "keycloak-js";
const keycloakInstance = new Keycloak();
/**
* Initializes Keycloak instance and calls the provided callback function if successfully authenticated.
*
* @param onAuthenticatedCallback
*/
const Login = (onAuthenticatedCallback: Function) => {
@kennwhite
kennwhite / Dockerfile
Last active July 18, 2024 10:14
MongoDB .NET Alpine Dockerfile CSFLE example (MSFT's Alpine SDK image and Alpine's official image)
# syntax=docker/dockerfile:1
FROM mcr.microsoft.com/dotnet/sdk:6.0-alpine3.15
# FROM alpine:3.15
#
ENV MDB_CONN_STR="mongodb+srv://user:password@clusterX.XXX.mongodb.net/test?retryWrites=true&w=majority"
#
RUN apk update
RUN apk add git make cmake g++ libbson-static musl-dev libc-dev openssl openssl-dev py3-pip icu-dev bash nano coreutils
RUN mkdir -p /code/app
WORKDIR /code/app