Skip to content

Instantly share code, notes, and snippets.

View TonyStark's full-sized avatar
🎯
Focusing

... TonyStark

🎯
Focusing
View GitHub Profile
@TonyStark
TonyStark / shredgui.sh
Last active March 8, 2021 20:58
Shred multiple files in linux with drag and drop gui
#!/bin/bash
zenity --title="Shred Files BOX" --text="Drag file to below box" --entry --width=600 | cut -c 8- | tr -d '\r' >> /tmp/shredfiles
IFS=$'\n' read -d '' -r -a filess < /tmp/shredfiles
for ((i=0;i<${#filess[@]};i++))
do
file=`python2 -c 'import sys, urllib; print urllib.unquote(sys.argv[1])' "${filess[$i]}"`
shred -uvz "$file" > /dev/null 2>&1
done
rm /tmp/shredfiles

Experimental attempt at getting organized ...

01/05/2024

Big List of Naughty Files

Script to generate troublesome filenames from the big list of naughty strings