Skip to content

Instantly share code, notes, and snippets.

View starve-l's full-sized avatar

reliances starve-l

  • world
View GitHub Profile
@starve-l
starve-l / fluent-ffmpeg-bassboost.js
Created November 4, 2021 17:56
Using `fluent-ffmpeg` to bass boost an audio file.
ffmpeg().input("input.mp3").outputOptions("-af bass=g=3").save("output.mp4");
@starve-l
starve-l / randomImage.ts
Last active November 9, 2021 20:21
Returns an URI string leading to a random `prnt.sc` post. Works est. 9/10 times.
let char: String = "abcdefghijklmnopqrstuvwxyz0123456789";
let randomImage = () => {
let str: String = "";
for (let i = 0; i < 6; i++) {
str += char.charAt(Math.floor(Math.random() * char.length));
}
return `https://prnt.sc/${str}`;
};