Skip to content

Instantly share code, notes, and snippets.

View ningthoujam-lokhendro's full-sized avatar

ningthoujam-lokhendro ningthoujam-lokhendro

View GitHub Profile
@ningthoujam-lokhendro
ningthoujam-lokhendro / dynmotd.sh
Last active October 4, 2022 12:12 — forked from cha55son/dynmotd
RHEL (Centos/Fedora) dynamic motd
#!/bin/bash
# Installation:
#
# 1. vim /etc/ssh/sshd_config
# PrintMotd no
#
# 2. vim /etc/pam.d/login
# # session optional pam_motd.so
#
#!/usr/bin/env python
import argparse
import fnmatch
import os
import sys
# Recursively generate index.html files for
# all subdirectories in a directory tree