Skip to content

Instantly share code, notes, and snippets.

@dacr
dacr / jvm.md
Last active May 30, 2025 06:38
jvm cheat sheet / published by https://github.com/dacr/code-examples-manager #12adcc40-b47b-48dc-9ca6-f4f3ba3df9d8/6e877c962827e60f7dd6ebf17a2e2f2cd3ed07de
from plexapi.myplex import MyPlexAccount
import os
plex_auth_info = {
"username" : os.environ['PLEX_USERNAME'],
"password" : os.environ['PLEX_PASSWORD'],
"server" : os.environ['PLEX_SERVER_NAME']
}
account = MyPlexAccount(plex_auth_info['username'], plex_auth_info['password'])
@mfd
mfd / teams.sh
Last active October 14, 2025 23:05
Download any video from Microsoft Teams, SharePoint and OneDrive
2teams() {
NOW=$(date +"%Y-%m-%d_%H%M")
if [ ! -z $2 ] ; then
echo $NOW"_"$2.mp4
ffmpeg -i $1 -codec copy $NOW"_"$2.mp4
else
echo $NOW"_teamsvid".mp4
ffmpeg -i $1 -codec copy $NOW"_teamsvideo".mp4
fi
}