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 * as Api from 'spexplorerjs'; | |
import 'nativefs'; | |
console.clear(); | |
// @ts-ignore | |
//var xml = xmlEditor.getValue(); | |
var ns: Api.Ispexplorerjs = window['spexplorerjs'] |
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
# setup sury.org repository | |
apt-get install apt-transport-https -y | |
wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg | |
echo "deb https://packages.sury.org/php/ stretch main" | tee /etc/apt/sources.list.d/php.list | |
# install php7.4 modules | |
apt-get install -y php7.4-{bcmath,bz2,intl,gd,mbstring,mysql,zip} | |
# install apache module | |
apt-get install libapache2-mod-php7.4 |
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> | |
<%@ Page language="C#" %> | |
<%@ Register tagprefix="SharePoint" namespace="Microsoft.SharePoint.WebControls" assembly="Microsoft.SharePoint" %> | |
<html> | |
<body> | |
<form id="form1" runat="server"> | |
<SharePoint:SPDataSource runat="server" DataSourceMode="List" UseInternalName="true" | |
UseServerDataFormat="true" selectcommand="<View></View>" id="spdatasource1"> |
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> | |
<%@ Page Language="C#" %> | |
<html> | |
<head> | |
<title>Test - Rest</title> | |
</head> | |
<body> | |
<form> | |
</form> | |
<script type="text/javascript"> |
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> | |
<%@ Page Language="C#" %> | |
<html> | |
<head> | |
<title>Rest 2</title> | |
</head> | |
<body> | |
<form> | |
<input type="hidden" id="__REQUESTDIGEST" name="__REQUESTDIGEST"> | |
</form> |
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
var logger = (function () { | |
var id = 'MartinLog'; | |
var baseLogger = new BaseLogger.Logger(function (json) { | |
console.log(json); | |
for (d in sessionStorage) { | |
if (d.indexOf('id') == 0) { | |
sessionStorage.removeItem(d); | |
} | |
} | |
}); |
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> | |
<%@ Page Language="C#" inherits="Microsoft.SharePoint.WebPartPages.WebPartPage, Microsoft.SharePoint"%> | |
<html> | |
<head> | |
<title>Test - Rest</title> | |
</head> | |
<body> | |
<form runat="server"> | |
</form> | |
</body> |
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> | |
<%@ Page Language="C#" %> | |
<%@ Register tagprefix="SharePoint" namespace="Microsoft.SharePoint.WebControls" assembly="Microsoft.SharePoint" %> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<meta http-equiv="X-UA-Compatible" content="IE=11" /> | |
<title>Test - JSOM</title> | |
<SharePoint:ScriptLink runat="server" name="microsoftajax.js"/> | |
<SharePoint:ScriptLink runat="server" name="core.js"/> |
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
<WebPartPages:XsltListViewWebPart Visible="false" runat="server" ViewFlag="" JSLink="../siteassets/app2/js/request.view.csr1.js" ViewSelectorFetchAsync="False" InplaceSearchEnabled="False" ServerRender="False" ClientRender="True" InitialAsyncDataFetch="False" WebId="00000000-0000-0000-0000-000000000000" IsClientRender="False" GhostedXslLink="main.xsl" NoDefaultStyle="" EnableOriginalValue="False" ViewContentTypeId="" ListUrl="" ListDisplayName="Requests" PageSize="-1" UseSQLDataSourcePaging="True" DataSourceID="" ShowWithSampleData="False" AsyncRefresh="True" ManualRefresh="True" AutoRefresh="False" AutoRefreshInterval="60" Title="Requests" FrameType="None" SuppressWebPartChrome="False" Description="" IsIncluded="True" ZoneID="FullPage" PartOrder="4" FrameState="Normal" AllowRemove="True" AllowZoneChange="True" AllowMinimize="True" AllowConnect="True" AllowEdit="True" AllowHide="True" IsVisible="True" CatalogIconImageUrl="/_layouts/15/images/itdl.png?rev=43" TitleUrl="/irm/Requests" DetailLink="/irm/Requests |
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
# Configure Trust ---------------------------------------------------------------- | |
$certPath = "C:\cert.cer" | |
$certificate = New-Object System.Security.Cryptography.X509Certificates.X509Certificate2($certPath) | |
$appName = 'appName' | |
New-SPTrustedRootAuthority -Name $appName -Certificate $certificate | |
$realm = Get-SPAuthenticationRealm | |
$specificIssuerId = "11115920-1111-1111-1111-111111111111" # use lower case for GUID | |
$fullIssuerIdentifier = $specificIssuerId + '@' + $realm |
NewerOlder