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
import os | |
import subprocess | |
import select | |
from termcolor import colored, cprint | |
import time | |
# from http://stackoverflow.com/questions/7729336/how-can-i-print-and-display-subprocess-stdout-and-stderr-output-without-distorti | |
def make_async(fd): | |
'''Helper function to add the O_NONBLOCK flag to a file descriptor''' |
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 | |
"""Wrote a quick hack to rename images to the datetime string used in | |
Android 8.1 based on EXIF data. This way I can easily merge pictures from my | |
phone and my wife's iPhone. | |
Copyright 2018 Craig Stringham | |
Permission is hereby granted, free of charge, to any person obtaining a copy of | |
this software and associated documentation files (the "Software"), to deal in | |
the Software without restriction, including without limitation the rights to use, |