Skip to content

Instantly share code, notes, and snippets.

function details() {
return {
id: "Tdarr_Plugin_4000kbps_h264_conversion",
Stage: "Pre-processing",
Name: "TheRealShadoh FFmpeg Subs Medium, video MP4, audio AAC, keep subs. ",
Type: "Video",
Description: `[Contains built-in filter] This plugin transcodes into H264 using FFmpeg's 'Medium' preset if the file is > 4000kbps, regardless of input codec. It maintains all subtitles. It removes metadata (if a title exists), and maintains all audio tracks. The output container is MP4. \n\n
`,
Version: "1.00",
@EnorMOZ
EnorMOZ / fixradarr.sh
Last active March 22, 2020 18:36
Radarr Script
#!/bin/sh -e
ApiKey=12345
DBP="/opt/radarr4k/app/radarr.db"
RUL="http://localhost:17878"
DEBUG="True"
SQL="/usr/bin/sqlite3"
#IF it fails you can start it where it left off by using the Id where it failed
#MID=$($SQL $DBP "select Id from Movies where MovieFileID > 0 and Id > 2375 ORDER BY Id;")
MID=$($SQL $DBP "select Id from Movies where MovieFileID > 0 ORDER BY Id;")
@unex
unex / fix_radarr_paths.py
Created August 25, 2019 01:51
fix erroneous radarr paths cuz im a dumbass
# fix erroneous radarr paths cuz im a dumbass
import requests
import json
API_BASE = 'https://example.com/radarr/api'
API_KEY = '1234567890'
class Radarr(requests.Session):
def __init__(self, *args, **kwargs):
@quaxim
quaxim / RadarrRename.sh
Created June 11, 2019 19:25
Rename all movies in Radarr
#!/bin/bash
#
# Quick and dirty script to hit the Radarr API and rename any movies ...
RADARR_API_KEY="xxxxxxxx"
RADARR_HOST="127.0.0.1"
RADARR_PORT="7878"
################################################################################################
@Xaero252
Xaero252 / Moved.md
Last active May 26, 2019 02:17
Enable nvdec support for plex dockers on unraid
@alexverboon
alexverboon / Get-AzMFAStatus.ps1
Last active November 10, 2020 09:34
Get-AzMFAStatus
function Get-AzMFAStatus
{
<#
.Synopsis
Get-AzMFAStatus
.DESCRIPTION
Get-AzMFAStatus retrieves Multifactor Authentication configuration informationo
from all registered users within an Azure Active Directory tenant.
UserPrincipalName : alex@contoso.com
@TGM
TGM / radarr-cleanup.sh
Last active March 22, 2020 18:34
radarr-cleanup.sh
#!/bin/bash
# based upon https://github.com/Radarr/Radarr/wiki/Mass-Delete-via-API
# and https://gist.github.com/pstadler/bc0afefe35f608e9552e764b31f45f19
RADARR_API_KEY=
RADARR_API_IP=
RADARR_API_PORT=7878
OLDER_THEN=365*24*3600
DELETE_FILES=true
@mrik23
mrik23 / AADRiskySigninsNotification.ps1
Last active September 27, 2023 16:33
PowerShell script using the Microsoft Graph REST API to retrieve Azure AD Risky Sign-ins events and send an email notification using also the Microsoft Graph API. This script can be used in Azure Function and using the application settings variables. Go to https://medium.com/@zaab_it/azure-ad-risky-sign-ins-email-notification-6cbfac32f6de for mo…
<#
This script retrieves Azure Active Directory Risk Sign-in Events from the Microsoft Graph API and send an email alert report.
Only the active events from the last 30 days will be retrieved (that can be modified via the $filter value in uriGraphEndpoint or removed to get all events).
See the official documentation for more info:
https://docs.microsoft.com/en-us/azure/active-directory/active-directory-identityprotection-graph-getting-started
https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/user_sendmail
#>
@jdmills-edu
jdmills-edu / ATP-ConvertSafelinkToUrl.ps1
Created January 25, 2018 20:35
Microsoft doesn't offer a commandlet that converts an Advanced Threat Protection (ATP) SafeLink into the real target URL. This short script uses the .NET UrlDecode function and RegEx to extract it.
<#
.SYNOPSIS
Converts a URL-encoded ATP Safelink to a real URL.
.DESCRIPTION
Microsoft doesn't offer a commandlet that converts an Advanced Threat Protection (ATP) SafeLink into the real target URL. This short script uses the .NET UrlDecode function and RegEx to extract it.
.PARAMETER safelink
A safelinks.protection.outlook.com link that includes the encoded target URL.
@aaronparker
aaronparker / Redirect-FoldersOneDrive.ps1
Last active July 13, 2023 20:54
Redirects select folders into the OneDrive folder.
<#
.SYNOPSIS
Sets a known folder's path using SHSetKnownFolderPath.
.PARAMETER KnownFolder
The known folder whose path to set.
.PARAMETER Path
The target path to redirect the folder to.
.NOTES
Forked from: https://gist.github.com/semenko/49a28675e4aae5c8be49b83960877ac5
#>