Skip to content

Instantly share code, notes, and snippets.

Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue
$DatabaseServer = ""
$ConfigDatabase = "SP16_ConfigDB"
$AdminContentDB = "SP16_CA_ContentDB"
$Passphrase = ""
@hasankoroglu
hasankoroglu / ChangeFarmAccountPassword.ps1
Created December 24, 2019 09:19
AD'den değiştirilmiş farm account parolasını SP ortamında güncellemek için
#Bu scripti eğer AD'den parolayı değiştirdiyseniz kullanın
Add-PsSnapin Microsoft.SharePoint.PowerShell
$farmAccount = Get-SPManagedAccount -Identity "DOMAIN\SP_FarmAdmin"
$farmAccPassword = "Parola123!"
$securePass = ConvertTo-SecureString $farmAccPassword -AsPlainText -Force
Set-SPManagedAccount -Identity $farmAccount -ExistingPassword $securePass -UseExistingPassword:$true
@hasankoroglu
hasankoroglu / scope.closure.var.let.js
Created September 25, 2019 11:03
An example about scope, closure, var and let
function varExample() {
console.log("var Example");
for (var i = 1; i <= 5; i++) {
setTimeout(function() {
console.log(i);
}, i * 1000);
}
}
function letExample() {
const Reduce = () => {
let bigArray = [];
for (let i = 0; i < 100000; i++) {
bigArray[i] = i;
}
console.time("bigNormal");
let mappedBigArray = bigArray
.filter(function(val) {
return val % 2 === 0;
@hasankoroglu
hasankoroglu / DirectoryTree.txt
Last active April 21, 2019 13:30
TypeScript Geliştirme Ortamı Hazırlama
│ index.html
│ package.json
│ tsconfig.json
│ webpack.config.js
├───dist
└───src
├───app.ts
└───class.ts