From 837f302dd840a8914f7291f2544176df954254b4 Mon Sep 17 00:00:00 2001 From: acidburn Date: Tue, 25 Apr 2023 17:58:13 -0400 Subject: [PATCH] added extras --- chmod.py | 16 ++++++++++++++++ note | 4 ++++ 2 files changed, 20 insertions(+) create mode 100644 chmod.py create mode 100644 note diff --git a/chmod.py b/chmod.py new file mode 100644 index 0000000..beb926e --- /dev/null +++ b/chmod.py @@ -0,0 +1,16 @@ +import os +import subprocess + +this_dir = os.getcwd() + + +for root ,b,files in os.walk(os.path.join(this_dir,'dotfiles')): + for element in files: + if '.sh' in element or '.py' in element: + try: + subprocess.run(f"chmod +x {os.path.join(root,element)}", shell=True) + except Exception(): + print(Exception()) + + + print(os.path.join(root,element)) diff --git a/note b/note new file mode 100644 index 0000000..22fceb7 --- /dev/null +++ b/note @@ -0,0 +1,4 @@ +add repos extra +sudo dnf install -y https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm + +sudo dnf install -y https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm