- Docker & docker-compose
- Brew
brew install colima
| #!/bin/bash | |
| # Function to display usage information | |
| usage() { | |
| echo "Usage: $0 /path/to/input.mp4 [ /path/to/output_directory ]" | |
| exit 1 | |
| } | |
| # Check if at least one argument (input file) is provided | |
| if [ $# -lt 1 ]; then |
| # Check these threads before proceeding: | |
| # https://github.com/microsoft/WSL/discussions/5857 | |
| # https://github.com/microsoft/WSL/issues/5821 | |
| if (-Not ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] 'Administrator')) { | |
| $CmdLine = "-File `"" + $MyInvocation.MyCommand.Path + "`" " + $MyInvocation.UnboundArguments | |
| Start-Process -FilePath PowerShell.exe -Verb Runas -ArgumentList $CmdLine | |
| Exit | |
| } | |
| # Restart the Host Network Service | |
| Restart-Service -Force -Name hns |
| export const useFocus = () => { | |
| const htmlElRef = useRef<HTMLElement>() | |
| const setFocus = () => { | |
| const currentEl = htmlElRef.current | |
| currentEl && currentEl.focus() | |
| } | |
| return [setFocus, htmlElRef] as const | |
| } |
| { | |
| "name": "CreateCertificate", | |
| "type": "Microsoft.Resources/deployments", | |
| "apiVersion": "2016-09-01", | |
| "properties": { | |
| "mode": "Incremental", | |
| "templateLink": { | |
| "uri": "[concat('https://management.dotnetdevops.org/providers/DotNetDevOps.AzureTemplates/templates/KeyVault/certificates/demo?secretName=test&keyVaultName=',reference('DeployKeyvault').outputs.keyVaultName.value)]", | |
| "contentVersion": "1.0.0.0" | |
| }, |
| # Decode a video to yuv420 raw format | |
| ffmpeg -vsync 0 -c:v h264_cuvid -i input.mp4 -c:v rawvideo -pix_fmt yuv420p -f null /dev/null | |
| ffmpeg -vsync 0 -c:v h264_cuvid -i input.mp4 -c:v rawvideo -pix_fmt yuv420p output.yuv | |
| # Resize videos to 640x480 | |
| ffmpeg -c:v h264_cuvid -i input.mp4 -vf scale=640:480 -c:v h264_nvenc output.mp4 | |
| # Downsampling frame rate to 30fps | |
| ffmpeg -i input.mp4 -r 30 -c:v h264_nvenc output.mp4 |
| using System; | |
| using Microsoft.ApplicationInsights.Channel; | |
| using Microsoft.ApplicationInsights.DataContracts; | |
| using Microsoft.ApplicationInsights.Extensibility; | |
| namespace Samples | |
| { | |
| public class My404Filter : ITelemetryProcessor | |
| { | |
| private ITelemetryProcessor Next { get; set; } |
| # Redis Cheatsheet | |
| # All the commands you need to know | |
| redis-server /path/redis.conf # start redis with the related configuration file | |
| redis-cli # opens a redis prompt | |
| # Strings. |
| [CmdletBinding(DefaultParameterSetName = 'None')] | |
| param | |
| ( | |
| [String] [Parameter(Mandatory = $true)] | |
| $ConnectedServiceName, | |
| [String] [Parameter(Mandatory = $false)] | |
| $KeyVaultName, | |
| [String] [Parameter(Mandatory = $false)] | |
| $SecretName, | |
| [String] [Parameter(Mandatory = $false)] |
Currently, there is an explosion of tools that aim to manage secrets for automated, cloud native infrastructure management. Daniel Somerfield did some work classifying the various approaches, but (as far as I know) no one has made a recent effort to summarize the various tools.
This is an attempt to give a quick overview of what can be found out there. The list is alphabetical. There will be tools that are missing, and some of the facts might be wrong--I welcome your corrections. For the purpose, I can be reached via @maxvt on Twitter, or just leave me a comment here.
There is a companion feature matrix of various tools. Comments are welcome in the same manner.