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 python | |
##this script was written by [email protected] , feel free to modify it but mention the author, thank you | |
import zlib,sys,os.path | |
##this function calculates CRC of a fileName | |
file_to_check=sys.argv[1] | |
file_path=os.path.dirname(file_to_check) | |
def crc(fileName): | |
prev=0 | |
global file_path | |
##for the script to work on any sfv file no matter where it's located , we have to parse the absolute path of each file within sfv |
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 python | |
"""Simple HTTP Server With Upload. | |
This module builds on BaseHTTPServer by implementing the standard GET | |
and HEAD requests in a fairly straightforward manner. | |
""" |
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/perl | |
#changelog http://abjdiaty.blogspot.com/2012/01/ps3-friendly-arabic-subs-converter.html | |
#email [email protected] | |
use utf8; | |
no warnings; | |
open IN, "<:encoding(utf-8)", $ARGV[0]; | |
open OUT, ">:encoding(utf-8)", temp.srt; | |
while (<IN>) { | |
print OUT | |
} |
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/bash | |
nano sub-extractor.sh | |
###paste the following | |
filename="$1" | |
if [[ $filename ]] | |
then | |
m=$(mkvinfo $filename|grep 'No EBML head found'); | |
if [[ $m ]]; | |
then echo "This is not a valid mkv file"; | |
else |