This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# filepath: update_repos.sh | |
# Will recursively update all git repo's inside a folder | |
# Handy if you want to update Tools directory for pentests | |
set -euo pipefail | |
root_dir="${1:-.}" | |
find "$root_dir" -mindepth 1 -maxdepth 1 -type d | while read -r dir; do | |
if [ -d "$dir/.git" ]; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pydicom import dcmread | |
import argparse | |
from os import mkdir | |
from shutil import move | |
class DicomNameChanger: | |
def __init__(self, file, name=None, show_name=False) -> None: | |
self.file_name = file |