Skip to content

Instantly share code, notes, and snippets.

View dsgnr's full-sized avatar

Dan Hand dsgnr

View GitHub Profile
@cha55son
cha55son / dynmotd
Last active September 18, 2024 22:35
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
#
@facelordgists
facelordgists / collect-dns-info-of-all-plesk-domains.sh
Created March 27, 2014 16:59
Get a list of all domains hosted by Plesk, gather details about their DNS, save them to a file named details.csv
#!/bin/bash
#set -o verbose
#set -x
#set -v
#sed -e :a -e '$!N;s/ \n/,/;ta'
#start the file over and erase contents
echo '' > details.csv
#write the column headings
@efeldhusen
efeldhusen / vmware-template.centos7.sh
Last active May 23, 2023 04:02
Bash script for Centos 7.x VMware Template Images
#!/bin/bash
#Paths are for Centos 7.x
# Install optional packages
/usr/bin/yum install -y epel-release
/usr/bin/yum install -y bash-completion htop yum-utils dkms open-vm-tools
#stop logging services
/sbin/service rsyslog stop
/sbin/service auditd stop