This file contains 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
# Based on Gary Lee's code: | |
# https://gist.github.com/GaryLee/d1cf2089c3a515691919 | |
# https://stackoverflow.com/a/33856172/2203482 | |
def run_as_admin(argv=None): | |
import ctypes | |
shell32 = ctypes.windll.shell32 | |
if argv is None and shell32.IsUserAnAdmin(): | |
return True | |
import sys |
This file contains 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
#!/bin/bash | |
# setup | |
FILES=name_of_file_to_match_*.mp4 | |
SEEK_POINT=00:00:30 | |
IMG_FORMAT=png | |
FRAME_SIZE=150X100 | |
DEST=thumbnails | |
for f in $FILES |