Skip to content

Instantly share code, notes, and snippets.

View stanionascu's full-sized avatar

Stan stanionascu

View GitHub Profile
@stanionascu
stanionascu / installMsEdge.ps1
Created March 22, 2020 12:03
Install MS Edge via PowerShell
$LocalTempDir = $env:TEMP;
$EdgeInstaller = "MSEdgeInstaller.exe";
(new-object System.Net.WebClient).DownloadFile('https://c2rsetup.officeapps.live.com/c2r/downloadEdge.aspx?ProductreleaseID=Edge&platform=Default&version=Edge&source=EdgeStablePage&Channel=Stable&language=en', "$LocalTempDir\$EdgeInstaller");
& "$LocalTempDir\$EdgeInstaller" /silent /install;
$Process2Monitor = "MSEdgeInstaller";
Do {
$ProcessesFound = Get-Process | ?{$Process2Monitor -contains $_.Name} | Select-Object -ExpandProperty Name;
If ($ProcessesFound) {
"Still running: $($ProcessesFound -join ', ')" | Write-Host; Start-Sleep -Seconds 2
} else {
@stanionascu
stanionascu / dv_remuxer.py
Last active May 9, 2022 15:21
MKV to DolbyVision MP4
#!/usr/bin/env python
import argparse
import subprocess
import json
from pathlib import Path
CODEC_TO_EXT = {
'MPEG-H/HEVC/h.265': 'h265',
'VC-1': 'vc1',