Skip to content

Instantly share code, notes, and snippets.

View andreferreirav2's full-sized avatar

Andre Ferreira andreferreirav2

View GitHub Profile

Keybase proof

I hereby claim:

  • I am andreferreirav2 on github.
  • I am andreferreirav2 (https://keybase.io/andreferreirav2) on keybase.
  • I have a public key whose fingerprint is F928 B305 746E D11A 41EA 3C5D 85E7 1CF2 2808 4CB6

To claim this, I am signing this object:

CaixaBreak PopUp for MacOSX

Following the work in kintoandar/caixabreak by user @kintoandar, I made an Automator app for MacOSX, because I'm lazy.

Instructions

  • Follow the installation instructions of the original project.
  • Open Automator
  • Create a new Application
  • Drag a Run Shell Script to the right
  • In the text box, paste the following:
sfv_file=`ls *.sfv`
while read file
do
chunk_name=`echo $file | cut -d ' ' -f 1`
crc_calc=`crc32 $chunk_name`
crc_to_check=`echo $file | cut -d ' ' -f 2`
if [ "$crc_calc" == "$crc_to_check" ];then
echo "$chunk_name is BAD"