Skip to content

Instantly share code, notes, and snippets.

View muhamad-ridwant-tech's full-sized avatar
🎯
Focusing

Muhamad Ridwan muhamad-ridwant-tech

🎯
Focusing
View GitHub Profile
@muhamad-ridwant-tech
muhamad-ridwant-tech / clear_hadoop_logs.sh
Created June 22, 2023 06:23 — forked from SebastianCarroll/clear_hadoop_logs.sh
Simple script to clear hadoop logs from a cluster. Not an amazing solution to the problem
#!/bin/bash
HOSTS="host1 host2 host3 host4"
RETENTION_TIME=14
echo "$(date) - Log Cleaner - $RETENTION_TIME days - $HOSTS" >> /var/log/hadoop_log_cleaner.log
for host in $HOSTS
do
ssh root@$host << ENDSSH
@muhamad-ridwant-tech
muhamad-ridwant-tech / centos-openstack-post-install-script
Last active October 6, 2023 07:13 — forked from juanluisrp/centos-openstack-post-install-script
Openstack post installation script to set a password for root and cloud-user on CentOS / Redhat
#cloud-config
users:
- default
- name: user-01
gecos: Regular user
sudo: ["ALL=(ALL) NOPASSWD:ALL"]
groups: wheel
chpasswd:
list: |
root:p@ssw0rd!