Skip to content

Instantly share code, notes, and snippets.

@prismosoft
prismosoft / log query
Created September 5, 2024 00:33 — forked from viezel/log query
Laravel Vapor - Cloudwatch insights logs
fields @timestamp, @message
# Lambda
| filter @message not like "START RequestId"
| filter @message not like "END RequestId"
| filter @message not like "REPORT RequestId"
# FPM
| filter @message not like "NOTICE: ready to handle connections"
| filter @message not like "NOTICE: fpm is running"
@prismosoft
prismosoft / Remotion - TimedSequence.tsx
Last active December 13, 2022 20:26 — forked from kernalphage/TimedSequence.tsx
An example of how to stitch together Series.Sequences in Remotion
export const TimedSequence: React.FC<{ urls: string[]}> = ({ urls }) => {
const [allCues, setAllCues] = useState<>(undefined);
const [handle] = useState(() => delayRender());
const {fps} = useVideoConfig();
const fetchData = useCallback(async () => {
const all = await Promise.all(urls.map(async (url) =>
({url, durationInSeconds: await getAudioDurationInSeconds(url)})
@prismosoft
prismosoft / remotion-google-fonts-dynamic-import.tsx
Last active January 8, 2025 20:36
Remotion Google Fonts Dynamic Import
const removeWhitespace = (str: string) => str.replace(/\s/g, "");
export const importFont = async (fontName) => {
const importName = removeWhitespace(fontName);
switch(importName) {
case 'ABeeZee':
return await import("@remotion/google-fonts/ABeeZee");
case 'Abel':