<commit_before>#!/usr/bin/env bash

username=$1
filename=${1/\./""}
echo $username $filename
echo "$username ALL=(ALL) ALL,!/usr/bin/vim /etc/sudoers,!/usr/bin/vi /etc/sudoers,!/sbin/visudo,!/usr/sbin/visudo,!/usr/bin/passwd,!/usr/bin/su,!/usr/bin/bash" | sudo tee /etc/sudoers.d/$filename
echo "Defaults:$username  timestamp_timeout=20" | sudo tee -a /etc/sudoers.d/$filename<commit_msg>disable sudoer allow any cmd<commit_after>#!/usr/bin/env bash

username=$1
filename=${1/\./""}
echo $username $filename
echo "$username ALL=(ALL) /usr/bin/whoami,/usr/bin/who" | sudo tee /etc/sudoers.d/$filename
# never do like blow ...
# echo "$username ALL=(ALL) ALL,!/usr/bin/vim /etc/sudoers,!/usr/bin/vi /etc/sudoers,!/sbin/visudo,!/usr/sbin/visudo,!/usr/bin/passwd,!/usr/bin/su,!/usr/bin/bash" | sudo tee /etc/sudoers.d/$filename
echo "Defaults:$username  timestamp_timeout=20" | sudo tee -a /etc/sudoers.d/$filename
{'fraction_non_alphanumeric': 0.210989010989011, 'fraction_numerical': 0.008791208791208791, 'mean_word_length': 4.5212121212121215, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4879759', 'n_tokens_mistral': 389, 'n_tokens_neox': 340, 'n_words': 60}