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
<# | |
.SYNOPSIS | |
This script patches a recursion bug in the file 'sp-pages-assembly.js', in the 23H2 release of SharePoint Subscription Edition. | |
.COMPONENT | |
SharePoint Server Subscription Edition 23H2 | |
.NOTES | |
This script is provided as-is, without any warranty or support what so ever. | |
It is not supported by Microsoft, and is provided as a courtesy to the community. | |
Use at your own risk. | |
.DESCRIPTION |
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
function SPUpload() { | |
Param( | |
[Parameter(Mandatory = $true)] | |
[string] $Tenant | |
) | |
gulp clean; | |
gulp bundle; | |
gulp package-solution --ship; | |
# Comment this in if you have the insertSourceMaps-task in your gulpfile/repo | |
# See https://github.com/damsleth/spfx-source-maps |
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
// ==UserScript== | |
// @name OWAEventDuplicator | |
// @namespace http://tampermonkey.net/ | |
// @version 0.3.2 | |
// @description Duplicate events by holding down the meta key and right clicking them | |
// @author @damsleth | |
// @match https://outlook.office.com/calendar/view/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=office.com | |
// @grant none | |
// ==/UserScript== |
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
if(gmo -Name "PnP.PowerShell"){ | |
sal -Name Apply-PnPProvisioningTemplate -Value Invoke-PnPSiteTemplate | |
sal -Name Apply-PnPPTenantTemplate -Value Invoke-PnPTenantTemplate | |
sal -Name Get-PnPProvisioningTemplate -Value Get-PnPSiteTemplate | |
} |
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
const PdfPreview = () => { | |
let _wopiDOM; | |
async function GetWopiDOM(docUrl = CurrentItemUrl()) { | |
if (_wopiDOM) { return _wopiDOM } else { | |
return fetch(`${_spPageContextInfo.siteAbsoluteUrl}/_layouts/15/WopiFrame.aspx?sourcedoc=${encodeURIComponent(docUrl)}`, { credentials: "include" }) | |
.then(res => res.text().then(wopi => new DOMParser().parseFromString(wopi, "text/html")).then(dom => { | |
_wopiDOM = dom | |
return _wopiDOM | |
})) | |
} |
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
<?xml version="1.0"?> | |
<pnp:Provisioning xmlns:pnp="http://schemas.dev.office.com/PnP/2016/05/ProvisioningSchema"> | |
<pnp:Preferences> | |
<pnp:Parameters> | |
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="../_Shared/Parameters/GenericContentTypesGroup.xml" /> | |
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="../_Shared/Parameters/GenericFieldsGroup.xml" /> | |
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="../_Shared/Parameters/GenericFieldsPrefix.xml" /> | |
<pnp:Parameter Key="TemplateDisplayName">TEMPLATENAME</pnp:Parameter> | |
<!-- wipes some ootb stuff from STS#0 --> | |
<pnp:Parameter Key="PerformCleanup">True</pnp:Parameter> |
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
Param( | |
[Parameter(Mandatory=$false)] | |
[string]$RootSite = "https://ROOTSITE", | |
[Parameter(Mandatory=$false)] | |
[string]$AdminSite = "https://ADMINSITE", | |
[Parameter(Mandatory=$false)] | |
[string]$Owner = "i:0#.w|DOMAIN\OWNER", | |
[Parameter(Mandatory=$true)] | |
[string]$Name, | |
[Parameter(Mandatory=$false)] |
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
Param( | |
[Parameter(Mandatory=$false)] | |
[string]$SiteUrl = "https://MYSITEHOSTWEBAPP", | |
[Parameter(Mandatory=$false)] | |
[string]$TemplateDir = "./template.xml", | |
[Parameter(Mandatory=$false)] | |
[string]$BlogTemplateDir = "./blogtemplate.xml" | |
) | |
# | |
# Brand MySites using PnP Provisioning templates |
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
const getRestData = endpoint => | |
fetch(`${_spPageContextInfo.webAbsoluteUrl}/_api/web/${endpoint}`, | |
{ credentials: "include", headers: { "accept": "application/json;odata=verbose" } }) | |
.then(res => res.json().then(data => { | |
return data.d.hasOwnProperty("results") ? data.d.results : data.d })) | |
.catch(err => console.log(err)); | |
const getListItems = listTitle => { return getRestData(`lists/getbytitle('${listTitle}')/items`) }; | |
const logProps = (endpoint, prop) => |
NewerOlder