When using Caddy Server, it stores certificates in ~/.caddy/acme/acme-v01.api.letsencrypt.org/sites/{your domain name}/
3 files are stored in the folder called:
- {yourdomain}.crt
- {yourdomain}.json
- {yourdomain}.key
| @echo off | |
| echo ---------------------------------------------------------------------- | |
| echo VIDEO AND SUBTITLE MERGER | |
| echo version 1.0.0 by Seyoum | |
| echo ---------------------------------------------------------------------- | |
| :: Set file video extention | |
| :VIDEOFILEEXTENTION | |
| echo. | |
| set /p videofileformat=Enter the video file type extension (e.g mp4): | |
| if /I "%videofileformat%" EQU "webm" echo You have chosen %videofileformat% as your video file format&goto:SUBTITLEFILEEXTENTION | 
| # .flake8 | |
| # | |
| # AUTHOR | |
| # krnd | |
| # | |
| # VERSION | |
| # 1.4 | |
| # | |
| # SEE ALSO | |
| # http://flake8.pycqa.org/en/latest/user/options.html | 
| #!/usr/bin/env python3.6 | |
| import os | |
| import sys | |
| from hashlib import md5 | |
| from argparse import ArgumentParser | |
| parser = ArgumentParser(description='Compare an S3 etag to a local file') | |
| parser.add_argument('inputfile', help='The local file') | |
| parser.add_argument('etag', help='The etag from s3') | |
| args = parser.parse_args() | 
When using Caddy Server, it stores certificates in ~/.caddy/acme/acme-v01.api.letsencrypt.org/sites/{your domain name}/
3 files are stored in the folder called:
| /* | |
| |-------------------------------------------------------------------------- | |
| | PurgeOldEmails | |
| |-------------------------------------------------------------------------- | |
| | https://gist.github.com/benbjurstrom/00cdfdb24e39c59c124e812d5effa39a | |
| | | |
| */ | |
| // Purge messages automatically after how many days? | |
| var DELETE_AFTER_DAYS = 7 | 
| // Note that this script will remove all permissions of all files and subfolders | |
| // (including files in subfolders) of the given folder | |
| // https://drive.google.com/drive/folders/abcdefgh | |
| const id = "abcdefgh"; | |
| function start() { | |
| const folder = DriveApp.getFolderById(id); | |
| getSubFolders(folder); | |
| // At the end, reset for parent folder | 
| function autoDelete() { | |
| console.log('Started autoDelete run.'); | |
| var delayDays = 2; | |
| var maxDate = new Date(); | |
| maxDate.setDate(maxDate.getDate()-delayDays); | |
| var label = GmailApp.getUserLabelByName("delete me"); | |
| var threads = label.getThreads(); | |
| if(threads.length > 0){ | |
| console.log('Found ' + threads.length + ' emails marked for deletion.'); |