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
import { getOptionalRequestContext } from "@cloudflare/next-on-pages"; | |
import { workAsyncStorage } from "next/dist/server/app-render/work-async-storage.external"; | |
export type AfterTask<T = unknown> = Promise<T> | AfterCallback<T>; | |
export type AfterCallback<T = unknown> = () => T | Promise<T>; | |
export function waitUntil(promise: Promise<unknown>) { | |
const cloudflareCtx = getOptionalRequestContext(); | |
if (!cloudflareCtx) { |
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
import { type DeflateOptions, Zip, ZipDeflate } from "fflate"; | |
export interface R2ToZipOptions { | |
/** | |
* Maximum number of files to process concurrently. | |
* | |
* @default 2 | |
*/ | |
concurrency?: number; | |
/** |
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
#!/bin/bash | |
# === WARNING: This script is AI generated and might not always work as expected === | |
# ============================================================================== | |
# Script to fix audio on ASUS Zenbook UX5406SA (and similar models) | |
# with Lunar Lake CPUs on Fedora and other modern Linux distributions. | |
# | |
# This script automates the steps discussed, which involve: | |
# 1. Installing specific SOF (Sound Open Firmware) topology files. |
OlderNewer