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
Tenant tenant = new Tenant(_context); | |
SPOSitePropertiesEnumerable prop = null; | |
prop = tenant.GetSiteProperties(0, true); | |
_context.Load(prop); | |
_context.ExecuteQuery(); | |
foreach (SiteProperties sp in prop) | |
{ | |
try | |
{ |
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
\\bin\openssl pkcs12 -in WebAppSelfSignedSSO.pfx -out WebAppSelfSignedSSO.pem |
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
\\openssl pkcs12 -export -in WebAppSelfSignedSSO.pem -out new-WebAppSelfSignedSSO.pfx -CSP "Microsoft Enhanced RSA and AES Cryptographic Provider" |
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
// Set the timeout to infinite | |
Context.RequestTimeout = System.Threading.Timeout.Infinite; |
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
// Add our User Agent information | |
context.ExecutingWebRequest += delegate (object sender, WebRequestEventArgs e) | |
{ | |
e.WebRequestExecutor.WebRequest.UserAgent = "NONISV|CompanyName|GovernanceCheck/1.0"; | |
}; | |
context.ExecuteQuery(); |
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
gulp.task("setConstants", (env => { | |
return gulp | |
.src(["./**/config/env/*.base.json"]) | |
.pipe(debug()) | |
.pipe( | |
map(function (file, cb) { | |
// Add code to alter | |
}) | |
) | |
.pipe(gulp.dest(function (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
gulp.tasks('filewatch', function(){ | |
return | |
gulp.watch('./src/**/*.js' , [ task1 , task2 | |
]); | |
}); |
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
gulp.task("NewTask", function() { | |
return gulp | |
.src(["./**/config/env/*.base.js"]) | |
// alter the files that match the source pattern | |
}); |
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
gulp.task("NewTask", function() { | |
return gulp | |
.src(["./**/config/env/*.base.js"]) | |
.pipe(debug()) | |
.pipe(prettyData({type: ‘prettify’})) | |
.pipe(uglify()) | |
.pipe(gulp.dest(‘./build/release’)); | |
}); |