Skip to content

Instantly share code, notes, and snippets.

View abrad1212's full-sized avatar
💭
School

abrad1212 abrad1212

💭
School
View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Keybase proof

I hereby claim:

  • I am abrad1212 on github.
  • I am abrad1212 (https://keybase.io/abrad1212) on keybase.
  • I have a public key ASBWHWu4bzm0feCSDomy7bqyRa_Ek2LOg9nU0uCgAgEPLgo

To claim this, I am signing this object:

@abrad1212
abrad1212 / badjpegs.sh
Created June 25, 2017 21:08
Check to see if JPEGs are corrupted.
#!/bin/bash
# Usage
# bash badjpegs.sh Cats/ > errors.txt
# Then check errors.txt for the bad JPEGs
find $1 -name '*.jpg' | while read FILE; do
if [[ $(identify -format '%f' "$FILE" 2>/dev/null) != $FILE ]]; then
echo "$FILE"
fi
document.body.contentEditable='true'; document.designMode='on'; void 0