Download HandBrake CLI for your OS here.
cd
into the folder where you have the HandBrakeCLI file and run this inside it:
./HandBrakeCLI -i /path/to/input.mov -o /path/to/output.mp4 -e x264 -q 28 -r 15 -B 64 -X 1280 -O
# Connect via deviceauthentication and get the TenantID and User ObjectID | |
Connect-MgGraph -UseDeviceAuthentication | |
$context = Get-MgContext | |
$currentUser = (Get-MgUser -UserId $context.Account).Id | |
# Get all available roles | |
$myRoles = Get-MgRoleManagementDirectoryRoleEligibilitySchedule -ExpandProperty RoleDefinition -All -Filter "principalId eq '$currentuser'" | |
# Get SharePoint admin role info | |
$myRole = $myroles | Where-Object {$_.RoleDefinition.DisplayName -eq "SharePoint Service Administrator"} |
var jsonData = pm.response.json(); | |
pm.environment.set("jwt", jsonData.access_token); | |
function parseJwt (token,part) { | |
var base64Url = token.split('.')[part]; | |
var words = CryptoJS.enc.Base64.parse(base64Url); | |
var jsonPayload = CryptoJS.enc.Utf8.stringify(words); | |
return JSON.parse(jsonPayload); | |
}; |
const echoPostRequest = { | |
url: 'https://<my url>.auth0.com/oauth/token', | |
method: 'POST', | |
header: 'Content-Type:application/json', | |
body: { | |
mode: 'application/json', | |
raw: JSON.stringify( | |
{ | |
client_id:'<your client ID>', | |
client_secret:'<your client secret>', |
# Credit http://stackoverflow.com/a/2514279 | |
for branch in `git branch -r | grep -v HEAD`;do echo -e `git show --format="%ci %cr" $branch | head -n 1` \\t$branch; done | sort -r |
(netsh wlan show profiles) | Select-String "\:(.+)$" | %{$name=$_.Matches.Groups[1].Value.Trim(); $_} | %{(netsh wlan show profile name="$name" key=clear)} | Select-String "Key Content\W+\:(.+)$" | %{$pass=$_.Matches.Groups[1].Value.Trim(); $_} | %{[PSCustomObject]@{ PROFILE_NAME=$name;PASSWORD=$pass }} | Format-Table -AutoSize |
{ | |
"_type": "export", | |
"__export_format": 4, | |
"__export_date": "2022-03-01T01:35:30.864Z", | |
"__export_source": "insomnia.desktop.app:v2021.7.2", | |
"resources": [ | |
{ | |
"_id": "req_8d53c5e0a3b3487b9ae3b9b2e121a491", | |
"parentId": "wrk_aba5d4b0da6e46298cec551c288da364", | |
"modified": 1646098507189, |
using System; | |
using System.Threading; | |
static class Program { | |
static void Main() { | |
Console.Write("Performing some task... "); | |
using (var progress = new ProgressBar()) { | |
for (int i = 0; i <= 100; i++) { | |
progress.Report((double) i / 100); |
Download HandBrake CLI for your OS here.
cd
into the folder where you have the HandBrakeCLI file and run this inside it:
./HandBrakeCLI -i /path/to/input.mov -o /path/to/output.mp4 -e x264 -q 28 -r 15 -B 64 -X 1280 -O
function deleteSavedItems() { | |
var query = document.querySelectorAll("#sc-saved-cart input[value=Delete]") | |
if (query.length) { | |
query[0].click(); | |
} | |
if (query.length > 1) { | |
setTimeout(deleteSavedItems,100); | |
} | |
else { | |
console.log('Finished'); |