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
| Connect-SPOService -url https://domainname-admin.sharepoint.com | |
| #Config Variables | |
| $SiteURL = "https://Crescent.sharepoint.com/Sales" | |
| $ListName ="AppConfig" | |
| #Connect PnP Online | |
| Connect-PnPOnline -Url $SiteURL -Interactive | |
| #SharePoint Online Hide a List |
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
| #remove html file to extension http://bizview.in/index.html | |
| # to http://bizview.in/index | |
| RewriteEngine On | |
| # Remove .html extension from the URL | |
| RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^\ ]+)\.html\ HTTP/ | |
| RewriteRule ^(.+)\.html$ http://bizview.in/$1 [R=301,L] | |
| # Add .html to the URL internally | |
| RewriteCond %{REQUEST_FILENAME} !-f | |
| RewriteCond %{REQUEST_FILENAME} !-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
| <style> | |
| .greeting-container { | |
| text-align: left; | |
| } | |
| #greeting { | |
| font-size: 24px; | |
| margin: 0; |
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
| <script type="text/javascript"> | |
| document.addEventListener('contextmenu', function(e) { | |
| e.preventDefault(); | |
| }); | |
| document.addEventListener('keydown', function(e) { | |
| if (e.ctrlKey || e.shiftKey || e.altKey || e.metaKey) { | |
| e.preventDefault(); | |
| } | |
| }); |
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
| <script type="text/javascript"> | |
| document.addEventListener('contextmenu', function(e) { | |
| e.preventDefault(); | |
| }); | |
| document.addEventListener('copy', function(e) { | |
| e.preventDefault(); | |
| }); | |
| document.addEventListener('cut', function(e) { |
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
| </script> | |
| <script> | |
| // JavaScript code | |
| // Disabling right-click | |
| document.addEventListener("contextmenu", function(e) { | |
| e.preventDefault(); | |
| }); | |
| // Disabling F12 key and Ctrl+Shift+I | |
| document.onkeydown = function(e) { |
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
| $User = "Rajivrao@0pqwz.onmicrosoft.com" | |
| $Password = ConvertTo-SecureString "Rajeew@upi91" -AsPlainText -Force | |
| $Credentials = New-Object System.Management.Automation.PSCredential ($User, $Password) | |
| $SiteURL = "https://0pqwz.sharepoint.com/sites/sanyojika/" | |
| $ListName = "ExportList" | |
| $FilePath = "https://0pqwz.sharepoint.com/sites/sanyojika/Shared%20Documents/Employee%20Sample%20Data.xlsx" | |
| Connect-PnPOnline -Url $SiteURL -Credentials $Credentials | |
| if (Test-Path $FilePath) | |
| { | |
| Import-PnPExcelData -Path $FilePath -ListName $ListName |
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
| { | |
| "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/row-formatting.schema.json", | |
| "hideColumnHeader": true, | |
| "hideSelection": true, | |
| "rowFormatter": { | |
| "elmType": "div", | |
| "style": { | |
| "flex-wrap": "wrap", | |
| "margin-bottom": "25px" | |
| }, |
NewerOlder