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
| group 'com.mozilla' | |
| version '1.0' | |
| apply plugin: 'java' | |
| sourceCompatibility = 1.8 | |
| repositories { | |
| mavenCentral() | |
| } |
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
| package com.mozilla.example; | |
| import org.openqa.selenium.JavascriptExecutor; | |
| import org.openqa.selenium.firefox.FirefoxOptions; | |
| import org.openqa.selenium.firefox.FirefoxProfile; | |
| import org.openqa.selenium.firefox.GeckoDriverService; | |
| import org.openqa.selenium.remote.DesiredCapabilities; | |
| import org.openqa.selenium.remote.RemoteWebDriver; | |
| import org.openqa.selenium.remote.service.DriverService; | |
| import org.openqa.selenium.support.ui.WebDriverWait; |
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
| <!DOCTYPE html> | |
| <html> | |
| <body> | |
| <div id="container">Will never display</div> | |
| <script> | |
| while (true) {} | |
| </script> | |
| </body> | |
| </html> |
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
| package test; | |
| import org.junit.Assert; | |
| import org.junit.Test; | |
| import java.util.concurrent.Callable; | |
| import java.util.concurrent.Executors; | |
| import java.util.concurrent.Future; | |
| import java.util.concurrent.ScheduledExecutorService; | |
| import java.util.concurrent.TimeUnit; |
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
| using System; | |
| using System.Net; | |
| using System.Security; | |
| using Microsoft.SharePoint.Client; | |
| namespace SpPrefetchIndexBuilder | |
| { | |
| class SpPrefetchIndexBuilder | |
| { | |
| public static string defaultSite = "http://localhost"; |
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
| CN_NAME=localhost | |
| # Certificate Authority | |
| echo Generate CA key: | |
| openssl genrsa -passout pass:1111 -des3 -out ca.key 4096 | |
| echo Generate CA certificate: | |
| openssl req -passin pass:1111 -new -x509 -days 365 -key ca.key -out ca.crt -subj "/CN=${CN_NAME}" | |
| # Server side key | |
| echo Generate server key: |
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
| #!/bin/bash | |
| echo -n Enter Sharepoint Username: | |
| read sharepointUsername | |
| echo -n Enter Sharepoint Password: | |
| read -s sharepointPassword | |
| echo "" | |
| echo "Enter ADFS STS Trust endpoint (e.g. https://server.com/adfs/services/trust/2005/usernamemixed)" | |
| read stsUrl | |
| echo "" | |
| uuid=$(uuidgen) |