This file contains 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 { AwsClient } from "aws4fetch"; | |
import { deflate } from "pako"; | |
const R2_ACCOUNT_ID = "SOMETHING" | |
const R2_ACCESS_KEY_ID = "SOMETHING" | |
const R2_SECRET_ACCESS_KEY ="SOMETHING" | |
const R2_BUCKET = "SOMETHING" | |
const R2_URL = `https://${R2_BUCKET}.${R2_ACCOUNT_ID}.r2.cloudflarestorage.com`; | |
This file contains 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
// Simple & convinient way to remove all service workers registered for specific web page | |
// Useful when working with PWA | |
// Paste code below to the console, it should return Promise | |
const getRidOfAllServiceWorkers = async () => { | |
const registry = await navigator.serviceWorker.getRegistrations() | |
for (const entry of registry) { | |
entry.unregister() | |
} | |
} |
This file contains 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
#!/bin/bash | |
#updated ffmpeg progress indicator | |
#by Rupert Plumridge | |
#for updates visit www.prupert.co.uk | |
#Creative Commons Attribution-Non-Commercial-Share Alike 2.0 UK: England & Wales Licence | |
# Based on the ffmpegprogress bar from: http://handybashscripts.blogspot.com/2011/01/ffmpeg-with-progress-bar-re-work.html | |
# which was based on my initital progress script - circle of life and all that ;) | |
# version 2.0 | |
# 07.04.2011 | |
# now uses apparently better progress detection, based on duration of overall video and progress along the conversion |