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/python | |
import datetime | |
import argparse | |
import sys | |
wha = -1 | |
parser = argparse.ArgumentParser(description="Countdown to Freedom") | |
group = parser.add_mutually_exclusive_group() |
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
while read file; | |
do echo "$file"; | |
BIRTH=$(stat -f %B "$file"); | |
FMT=$(date -j -r $BIRTH "+%Y%m%d%H%M.%S"); | |
FN=$(basename "$file"); | |
cp "$file" "/Users/wetstevs/Desktop/bkup2/$BIRTH.$FN"; | |
touch -mt $FMT "/Users/wetstevs/Desktop/bkup2/$BIRTH.$FN"; | |
done < ~/Desktop/movies.txt |
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
#!/Library/Frameworks/Python.framework/Versions/2.7/bin/python | |
import subprocess | |
import datetime | |
# get last week's sunday and saturday dates & URL encode | |
# get today (day of week) & figure out distance to get to -1 and 5 | |
# those plus -7 should get you the two dates (sun/sat prior) | |
today = datetime.date.today() | |
todayDay = today.weekday() |