Skip to content

Instantly share code, notes, and snippets.

@materro
materro / Reset-Microsoft-Account-Strong-Authentication-Methods.ps1
Created November 3, 2023 15:19
Reset strong authentication methods using powershell module MSOnline
Import-Module MSOnline
$securePassword = ConvertTo-SecureString -String $adminPassword -AsPlainText -Force
$cred = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList $adminUpn, $securePassword
Connect-MsolService -Credential $cred
Set-MsolUser -UserPrincipalName $userUpn -StrongAuthenticationMethods @()
@materro
materro / User-Agent Switcher for Chrome - Updated agents.json
Created November 30, 2023 11:35
Designed for „User-Agent Switcher for Chrome” extension © Ujesh Krishnan https://ujesh.com/user-agent-switcher-chrome-extension/
{"UserAgents":[{"append_to_default_ua":false,"badge":"","getUserAgentString":{},"group":"Chrome","is_managed":false,"is_preset":true,"key":"c_1","show_in_list":false,"title":"Default","ua_string":"","vendor":""},{"append_to_default_ua":false,"badge":"CAM","getUserAgentString":{},"group":"Chrome","is_managed":false,"is_preset":false,"key":"c_15","show_in_list":false,"title":"Chrome - Android Mobile","ua_string":"Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Mobile Safari/537.36","vendor":"Google"},{"append_to_default_ua":false,"badge":"CAM High","getUserAgentString":{},"group":"Chrome","is_managed":false,"is_preset":false,"key":"c_16","show_in_list":false,"title":"Chrome - Android Mobile(high-end)","ua_string":"Mozilla/5.0 (Linux; Android 10; Pixel 4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Mobile Safari/537.36","vendor":"Google"},{"append_to_default_ua":false,"badge":"CAT","getUserAgentString":{},"group":"Chrome","is_managed":fal
@materro
materro / Download-large-protected-GDrive-PDF.md
Created October 18, 2024 10:27
Download large protected PDF from GDrive

1. Load patched jsPDF

Copy source from custom laucheukhim jsPDF repository and just paste it to the Dev Console.

2. Run command

const { jsPDF } = window.jspdf;

3. Paste function