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
| // ==UserScript== | |
| // @name New Userscript | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.1 | |
| // @description try to take over the world! | |
| // @author You | |
| // @match https://dev.azure.com/currance-inc/Currance/* | |
| // @icon https://www.google.com/s2/favicons?sz=64&domain=azure.com | |
| // @grant none | |
| // ==/UserScript== |
| // ==UserScript== | |
| // @name Role activate | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.1 | |
| // @description try to take over the world! | |
| // @author You | |
| // @match https://portal.azure.com/* | |
| // @icon https://www.google.com/s2/favicons?sz=64&domain=azure.com | |
| // @grant none | |
| // ==/UserScript== |
| # 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