This file contains 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 lang="en"> | |
<head> | |
</head> | |
<body> | |
<script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script> | |
<script> | |
async function get () { |
This file contains 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
# Iterate through all site collections in a SharePoint web application and output to a CSV file: | |
# - Site, Size(B), Size(MB), Size(GB), Content database | |
$webApp = 'http://webappurl' | |
$csvPath = 'e:\data.csv' | |
# Get all the sites in the web app | |
$sites = Get-SPWebApplication $webApp | Get-SPSite -Limit ALL | |
# Set the header for the file |
This file contains 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
$(document).ready(function() { | |
var paramToAdd = "function called to fill this variable" | |
if (paramToAdd.length > 0) { | |
$("a").attr('href', function (i, h) { | |
//try catch needed for odd links(Ex: the slider nav squares when using Flexslider) | |
try { | |
var invalidLink = h.lastIndexOf("tel:", 0) === 0 || h.lastIndexOf("mailto:", 0) === 0; | |
if (!invalidLink) { | |
return h + (h.indexOf('?') != -1 ? "¶m=" + paramToAdd : "?param=" + paramToAdd); | |
} |