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
@echo off & setlocal enableextensions
title Reset AnyDesk
reg query HKEY_USERS\S-1-5-19 >NUL || (echo Please Run as administrator.& pause >NUL&exit)
chcp 437
call :stop_any
del /f "%ALLUSERSPROFILE%\AnyDesk\service.conf"
del /f "%APPDATA%\AnyDesk\service.conf"
copy /y "%APPDATA%\AnyDesk\user.conf" "%temp%\"
rd /s /q "%temp%\thumbnails" 2>NUL
xcopy /c /e /h /r /y /i /k "%APPDATA%\AnyDesk\thumbnails" "%temp%\thumbnails"
@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!