I hereby claim:
- I am vaderj on github.
- I am vaderj (https://keybase.io/vaderj) on keybase.
- I have a public key ASBDqarioFjE6M8HrTY5OmnD_rFDFV7VWgc6p3t-HGuUsgo
To claim this, I am signing this object:
#If NPM is throwing errors about permissions issues: | |
npm config set unsafe-perm=true | |
# error : "Error: EPERM: operation not permitted, rename" ... includes cache clear twice | |
npm cache clean --force | |
npm install -g npm@latest --force | |
npm cache clean --force |
From the root of your project folder | |
1.) git init | |
2.) git add . | |
3.) git commit -m "initial commit" | |
(the next two are from DevOps once the Repo has been established) | |
4.) git remote add origin https://[email protected]/tenant/ProjectName/_git/ProjectName | |
5.) git push -u origin –all | |
To update the repo from your local project : |
Select everything before the occurance: ^(.*?)\ | |
Usage: (find and replace everything before and including "VM911.1") : ^(.*?)\VM911:1 | |
//Disable the dblclick event listener which creates a new item on the calendar | |
ExecuteOrDelayUntilScriptLoaded(MyCalendarHook,'SP.UI.ApplicationPages.Calendar.js'); | |
function MyCalendarHook(){ | |
var calendarCreate = SP.UI.ApplicationPages.CalendarContainerFactory.create; | |
SP.UI.ApplicationPages.CalendarContainerFactory.create = function (elem,cctx,viewType,date,startupData) { | |
cctx.canUserCreateItem = false; | |
calendarCreate(elem, cctx, viewType, date, startupData); | |
} | |
} |
//Expose the ribbon : http://spjsblog.com/2012/01/12/bring-back-the-missing-list-tools-menu-in-list-view-with-multiple-webparts/ | |
ExecuteOrDelayUntilScriptLoaded(init_defaultWP, "sp.ribbon.js"); | |
function init_defaultWP(){ | |
setTimeout(function(){ | |
var defaultWP = document.getElementById("MSOZoneCell_WebPartWPQ2"); | |
WpClick({target:defaultWP,srcElement:defaultWP}); | |
},100); | |
hideRibbonPieces() ; | |
} |
I hereby claim:
To claim this, I am signing this object:
Add-PSSnapin Microsoft.SharePoint.PowerShell | |
$siteURL = "YourSitename" | |
$site = new-object Microsoft.SharePoint.SPSite($siteURL) | |
foreach ($web in $site.AllWebs) | |
{ | |
foreach ($list in $web.Lists) | |
{ |
/* | |
DIRLog template: | |
Column Name |Column Type| Required? | |
Title | SLT | True # |
//src: https://www.consolelog.io/group-by-in-javascript | |
Array.prototype.groupBy = function(prop) { | |
return this.reduce(function(groups, item) { | |
var val = item[prop]; | |
groups[val] = groups[val] || []; | |
groups[val].push(item); | |
return groups; | |
}, {}); | |
} |