This file contains hidden or 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
| <# | |
| Created this a few years ago to upload large files to OneDrive Personal. | |
| Uses BITSAdmin (this is deprecated) to set the bearer token in the header. | |
| OneDrive API at the time did not support uploading large files. Script will | |
| need to be updated to use https://dev.onedrive.com/items/upload_large_files.htm#create-an-upload-session | |
| Tested on Windows 10, PowerShell 5.0.10240.16384. |
This file contains hidden or 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
| import { Directive, ElementRef } from '@angular/core'; | |
| @Directive({ | |
| selector: '[autocompleteOff]' | |
| }) | |
| export class AutocompleteOffDirective { | |
| constructor(private _el: ElementRef) { | |
| let w: any = window; | |
| let isChrome = w.chrome; | |
| if (isChrome) { |
This file contains hidden or 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
| # Starter pipeline | |
| # Start with a minimal pipeline that you can customize to build and deploy your code. | |
| # Add steps that build, run tests, deploy, and more: | |
| # https://aka.ms/yaml | |
| trigger: | |
| - master | |
| pool: | |
| vmImage: 'ubuntu-latest' |
This file contains hidden or 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
| // Enabling TLS1.2 protocol and also ignoring the certificate validation errors | |
| ServicePointManager.SecurityProtocol = SecurityProtocolType.Ssl3 | SecurityProtocolType.Tls | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12; | |
| ServicePointManager.ServerCertificateValidationCallback += (sender, cert, chain, error) => true; | |