Skip to content

Instantly share code, notes, and snippets.

View lovethebomb's full-sized avatar
🏠
Working from home

Lucas Heymès lovethebomb

🏠
Working from home
View GitHub Profile
@lovethebomb
lovethebomb / foundry_mp3_to_ogg.sh
Created January 27, 2024 19:04
Convert mp3 to ogg for Foundry VTT
# Utility fn for quickly converting mp3 into ogg for foundry music
# Navigate to your music folder and run fn
function foundry_mp3_to_ogg {
find . -name "*.mp3" -exec ffmpeg -i {} -c:a libopus -page_duration 2000 -vn {}.ogg \;
find . -name "*.mp3.ogg" -exec sh -c 'mv "$0" "${0%.mp3.ogg}.ogg"' {} \;
}

Keybase proof

I hereby claim:

  • I am lovethebomb on github.
  • I am lovethebomb (https://keybase.io/lovethebomb) on keybase.
  • I have a public key ASCFmHbzM3IxEiIrp1dV2hbp5GovcJUC1PK0hLoJMNnfWQo

To claim this, I am signing this object:

@lovethebomb
lovethebomb / index.html
Last active February 15, 2017 17:53
nested Array.prototype.slice vs [].slice.call vs cached prototype vs cached [].slice (http://jsbench.github.io/#70b2b0cf82209c4bbf9d342a8684e3bd) #jsbench #jsperf
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>nested Array.prototype.slice vs [].slice.call vs cached prototype vs cached [].slice</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script>
<script src="./suite.js"></script>
</head>
<body>
<h1>Open the console to view the results</h1>