Skip to content

Instantly share code, notes, and snippets.

View BryanPinsker's full-sized avatar
🐇
Focusing

Bryan Pinsker BryanPinsker

🐇
Focusing
  • Wix.com
  • Tel Aviv
View GitHub Profile
# Convert all mkv files in subdirectories to HEVC using NVENC
for f in */*.mkv; do
[[ $f =~ HEVC.mkv$ ]] && continue
ffmpeg -i "$f" -map 0 -c:v hevc_nvenc -crf 28 -c:a copy -c:s copy "${f%.*}HEVC.mkv"
rm $f
done
@BryanPinsker
BryanPinsker / index.js
Created January 20, 2022 11:49
Widget authentication code examples
window.AnswersWidget.onLoaded(() => {
window.AnswersWidget.addAuthenticationFn(() => {
// This request should include your own method of authentication (e.g. cookie, Authorization header)
return axios.get(`${YOUR_SERVER_URL}/auth-token`).then((response) => response.data);
});
});