Pinned Loading
-
shrinkpdf
shrinkpdf 1#!/bin/sh23# Usage (number represent dpi)4# ./shrinkpdf.sh in.pdf > out.pdf5# ./shrinkpdf.sh in.pdf out.pdf -
Convert wav files to ogg with ffmpeg
Convert wav files to ogg with ffmpeg 1for i in *.wav;
2do name=`echo "$i" | cut -d'.' -f1`
3echo "$name"
4ffmpeg -i "$i" "${name}.ogg"
5done -
minifyMP3.sh
minifyMP3.sh 1for i in *.mp3;
2do name=`echo "$i" | cut -d'.' -f1`
3echo "$name"
4lame -b 32 "$i" "${name}-min.mp3"
5done -
Assert function for Lens Studio in T...
Assert function for Lens Studio in Typescript 1export function assert(condition: unknown, message = 'Assertion failed'): asserts condition {
2const isEditor = global.deviceInfoSystem?.isEditor?.();
3if (isEditor && !condition) {
4const err = new Error(`[ASSERT] - ${message}`);
5throw err;
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.

