You must enable versioning to use this configuration.
aws s3api put-bucket-lifecycle-configuration \
--bucket bucket \
--lifecycle-configuration file://config.json
| (* | |
| Image - Duplicate as HEIC | |
| This Folder Action handler is triggered whenever items are added to the attached folder. | |
| The script creates a HEIC version of the file, but leaves a copy of the file | |
| in its original format. If the original file is already in JPEG format, the script does | |
| not duplicate the file. | |
| Copyright © 2002–2007 Apple Inc. |
| // tslint:disable: no-console | |
| import * as BlinkDiff from "blink-diff"; | |
| import { Page } from "puppeteer"; | |
| export function sleep(ms: number) { | |
| return new Promise((resolve) => setTimeout(resolve, ms)); | |
| } | |
| export async function waitTillPageStoped( | |
| page: Page, |
| <!DOCTYPE html> | |
| <head> | |
| <meta charset="UTF-8"/> | |
| </head> | |
| <body> | |
| <script type="module"> | |
| import {html, render} from './node_modules/lit-html/lit-html.js'; | |
| const myTemplate = (name) => html`<p>Hello ${name}</p>`; | |
| render(myTemplate('World'), document.body); | |
| </script> |
| .bundle | |
| tmp | |
| vendor/bundle |
| #test.py | |
| import os | |
| import shutil | |
| import random | |
| while True: | |
| dir_list = os.listdir('.') | |
| for d in dir_list: | |
| if not os.path.isdir(d): |