Skip to content

Instantly share code, notes, and snippets.

@Ilke-dev
Ilke-dev / update_repos.sh
Last active October 7, 2025 10:40
update_repos.sh
#!/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
@Ilke-dev
Ilke-dev / dicom.py
Created May 6, 2024 21:56
Change patient name with pydicom
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