- How to generate an MP4 with H.265 codec using FFmpeg?
- H.265 HEVC support in High Sierra
- Converting WebM to MP4 Using FFmpeg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Define Helper Functions | |
function Get-Sha256Hash ($StringToHash) { | |
$hasher = [System.Security.Cryptography.SHA256]::Create() | |
$Hash = ([BitConverter]::ToString($hasher.ComputeHash([Text.Encoding]::UTF8.GetBytes($StringToHash))) -replace '-','').ToLower() | |
Write-Output $Hash | |
} | |
function ConvertTo-SortedDictionary($HashTable) { | |
$SortedDictionary = New-Object 'System.Collections.Generic.SortedDictionary[string, string]' | |
foreach ($Key in $HashTable.Keys) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
SECRETS_MANAGER="aws secretsmanager" | |
REGION="ap-southeast-1" | |
function get_secret { | |
$($SECRETS_MANAGER get-secret-value --secret-id $secret --query SecretString --output text --region $REGION) | |
} | |
function parse_secret { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.SYNOPSIS | |
Reports if your password is pwned by querying haveibeenpwned.com | |
.DESCRIPTION | |
Query haveibeenpwned.com to see if a password has appeared in a breach. | |
The query sends the first 5 characters of the SHA1 hash, so the query should be considered safe and anonymous. |
Sometimes you may want to undo a whole commit with all changes. Instead of going through all the changes manually, you can simply tell git to revert a commit, which does not even have to be the last one. Reverting a commit means to create a new commit that undoes all changes that were made in the bad commit. Just like above, the bad commit remains there, but it no longer affects the the current master and any future commits on top of it.
git revert {commit_id}
Deleting the last commit is the easiest case. Let's say we have a remote origin with branch master that currently points to commit dd61ab32. We want to remove the top commit. Translated to git terminology, we want to force the master branch of the origin remote repository to the parent of dd61ab32: