Skip to content

Instantly share code, notes, and snippets.

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

audomsak

🏠
Working from home
View GitHub Profile
@swamikevala
swamikevala / rhel9-sssd-samba-ad.md
Last active September 2, 2025 20:20
Configure RHEL9.5 with sssd, samba and AD (by OpenAI Deep Research)

RHEL 9.5 AD Integration with SSSD and Samba (Step-by-Step Guide)

Important Note: (18-Feb-2025) This gist has some issues. Please see the addendum. Thanks @hortimech for pointing this out

A step-by-step configuration guide for setting up RHEL 9.5 with SSSD and Samba for Active Directory integration. Covers all required configuration files, settings, and explanations for each option. Also sources for further documentation and troubleshooting recommendations:

  • Domain Joining with SSSD (configuring sssd.conf, realmd, Kerberos, and automatic authentication for SSH and Samba)
  • Samba Configuration with SSSD (using sss as the backend for identity mapping, Kerberos authentication, and ensuring smooth Windows/Mac access)
  • Kerberos-based Single Sign-On (SSO) (ensuring users can access SMB shares without re-entering credentials)
  • Offline Authentication (caching credentials for when AD is unreachable)
@bakavets
bakavets / kubernetes-certifications.md
Last active November 12, 2025 12:24
How I passed Kubernetes KCNA, CKAD, CKA, and CKS exams. My experience. Exam tips and tricks.
@dasniko
dasniko / _keycloak-cluster-config.md
Last active October 29, 2025 14:41
How to configure a Keycloak cluster properly (Quarkus edition)

Keycloak Cluster Configuration (How to)

This is a short and simple example on how to build a proper Keycloak cluster, using DNS_PING as discovery protocol and an NGINX server as reverse proxy.

If you prefer to use JDBC_PING, see @xgp's example gist here: https://gist.github.com/xgp/768eea11f92806b9c83f95902f7f8f80


Please see also my video about Keycloak Clustering: http://www.youtube.com/watch?v=P96VQkBBNxU
NOTE: The video covers JDBC_PING protocol and uses the legacy Keycloak Wildfly distribution!

@idleberg
idleberg / vscode-macos-context-menu.md
Last active December 3, 2025 08:01
“Open in Visual Studio Code” in macOS context-menu

Open in Visual Studio Code

  • Open Automator
  • Create a new document
  • Select Quick Action
  • Set “Service receives selected” to files or folders in any application
  • Add a Run Shell Script action
    • your default shell should already be selected, otherwise use /bin/zsh for macOS 10.15 (”Catalina”) or later
    • older versions of macOS use /bin/bash
  • if you're using something else, you probably know what to do 😉
@mikroskeem
mikroskeem / cadvisor.sh
Last active June 15, 2025 19:22
cadvisor with podman
#!/bin/sh
VERSION=v0.36.0 # use the latest release version from https://github.com/google/cadvisor/releases
sudo podman run -d --name cadvisor \
--volume /:/rootfs:ro \
--volume /nix:/nix:ro \
--volume /var/run:/var/run:rw \
--volume /sys:/sys:ro \
--volume /sys/fs/cgroup:/sys/fs/cgroup:ro \
--volume /dev/disk/:/dev/disk:ro \
@bb01100100
bb01100100 / kafka-change-replication-factor
Last active October 7, 2024 04:47
Change the replication factor for an existing Kafka topic by nominating a new set of replicas
#!/bin/bash
# Author: Kel Graham
# Date: 2022-05-19
# Purpose: Increase the replication factor of one or more topics, using only
# a connection to the Kafka broker (no Zookeeper, REST APIs etc)
# and the standard kafka-topics, kafka-reassign-partitions scripts
# that come with Kafka.
#
@eenblam
eenblam / linux_reading_list.md
Last active December 3, 2025 13:58
Linux Networking Reading List

Linux Networking Reading List

Currently in no particular order. Most of these are kind of ancient.

Where's all the modern documentation? So much of what I've turned up searching is other folks complaining about having few options beyond reading source code.

The OREILLY books, while dated, seem to be some of the best available. Note that these can be read with a 7-day trial. Do this! At least get through the introduction section and first chapter of each to see if it's what you're after.

https://www.netfilter.org/

@mareks77
mareks77 / 001-Tradingview-Watchlist.md
Last active December 11, 2024 10:54 — forked from cryppadotta/001-Tradingview-Watchlist.md
Tradingview Watchlist Import Files for Crypto Exchanges

Tradingview Watchlist Import Files for Binance

The files below can be imported into a Tradingview watchlist.

Tradingview Watchlists

List is sorted by volume

@HeratPatel
HeratPatel / git-flow.md
Last active August 8, 2025 10:08
Git Flow: Git branches workflow for larger and continues releasing projects. #git #gitflow

Git Flow: A Successful Git branching model

Alt Text

Gitflow is a Git workflow design that was first published and made popular by Vincent Driessen at nvie. The Gitflow defines a strict branching model designed around the project release. This provides a robust framework for managing larger projects.

Gitflow is ideally suited for projects that have a scheduled release cycle. This workflow doesn’t add any new concepts or commands beyond what’s required for the Feature Branch Workflow. Instead, it assigns very specific roles to different branches and defines how and when they should interact. In addition to feature branches, it uses individual branches for preparing, maintaining, and recording releases. Of course, you also get to leverage all the benefits of the Feature Branch Workflow: pu

#!/bin/bash
echo "removing current jenv java's to readd them freshly"
jenv versions --bare | xargs -n1 jenv remove
echo "adding all sdkmans java versions to jenv"
find $HOME/.sdkman/candidates/java -type d -maxdepth 1 -mindepth 1 -exec jenv add '{}' \;