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
| from os import listdir, environ, rename | |
| from os.path import isfile, join | |
| from re import compile, search | |
| regex = compile("Screen Shot \d{4}-\d{2}-\d{2} at \d{1,2}.\d{2}.\d{2} [AM PM]{2}") | |
| def isScreenshot(f): | |
| return search(regex, f) | |
| files = [f for f in listdir(environ['HOME'] + '/Desktop') if isfile(join(environ['HOME'] + '/Desktop', f))] |
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
| server { | |
| listen 80; | |
| index index.html index.php; | |
| ## Begin - Server Info | |
| root /home/grav/www/html; | |
| server_name localhost; | |
| ## End - Server Info | |
| ## Begin - Index # for subfolders, simply adjust the rewrite: # to use `/subfolder/index.php` |