Skip to content

Instantly share code, notes, and snippets.

@fciarrone
fciarrone / dynmotd.sh
Created March 9, 2025 14:20 — forked from rojenzaman/dynmotd.sh
Rocky Linux dynamic motd
#!/bin/bash
# Installation:
#
# 1. nano /etc/ssh/sshd_config
# PrintMotd no
#
# 2. nano /etc/profile
# /usr/bin/dynmotd # Place at the bottom
#
@fciarrone
fciarrone / vmware.md
Created January 14, 2025 03:48 — forked from ayebrian/vmware.md
VMware ESXi 8 / vCenter 8 / Workstation 17 license key 2024
#!/usr/bin/env bash
if [ $# -eq 0 ]; then
echo "ERROR: Usage: $0 <server_to_check> i.e. example.com"
exit 1
fi
if [ $# -eq 1 ]; then
SERVER=$1
fi
# sample tcp balancer to balance between two TCP brokers
global
log 127.0.0.1 local0 info
defaults
clitimeout 60000 # maximum inactivity time on the client side
srvtimeout 30000 # maximum inactivity time on the server side
timeout connect 8000 # maximum time to wait for a connection attempt to a server to succeed
@fciarrone
fciarrone / HA Proxy With Docker.md
Created September 3, 2022 18:22 — forked from dogukancagatay/HA Proxy With Docker.md
Basic HAProxy Setup for Multiple Services with Docker

Basic HAProxy Setup for Multiple Services with Docker

  • RabbitMQ
  • Redis
  • Web Server/Ingress
#!/bin/bash
VER="0.94.2";
SCRIPTTITLE="PV - HVM - version $VER";
RED=$(tput setaf 1)
GREEN=$(tput setaf 2)
NORMAL=$(tput sgr0)
# Configure logging
tmp="/tmp"
logfile="$tmp/$(basename $0).$$.log"