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
# To get list of available features, run from PowerShell: Get-WindowsFeature | |
# To install IIS: | |
Install-WindowsFeature -name Web-Server -IncludeManagementTools | |
Install-WindowsFeature -name Web-Dyn-Compression | |
# To enable classic ASP: | |
Install-WindowsFeature -name Web-ASP |
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
sudo systemctl enable elasticsearch.service | |
sudo systemctl enable logstash.service | |
sudo systemctl enable kibana.service |
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
$webclient=New-Object System.Net.WebClient | |
$creds=Get-Credential | |
$webclient.Proxy.Credentials=$creds |
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
sudo apt-get update && sudo apt-get install apt-transport-https -y && | |
sudo apt-get install default-jre -y && | |
curl https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add - && | |
echo "deb https://artifacts.elastic.co/packages/6.x/apt stable main" \ | |
| sudo tee -a /etc/apt/sources.list.d/elastic-6.x.list && | |
sudo apt-get update && sudo apt-get install elasticsearch && | |
sudo systemctl enable elasticsearch.service && | |
sudo service elasticsearch start |
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
sudo apt-get update && | |
sudo apt-get install default-jre -y && | |
curl https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add - && | |
echo "deb https://artifacts.elastic.co/packages/7.x/apt stable main" \ | |
| sudo tee -a /etc/apt/sources.list.d/elastic-7.x.list && | |
sudo apt-get update && | |
sudo apt-get install elasticsearch && | |
sudo systemctl start elasticsearch | |
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
$AZFileShareURl = "tsqlbackup.file.core.windows.net" | |
$AZUserName = "Azure\tsqlbackup" | |
$AZPassword = "7RODyFgfsXx1nML/SfFifKL+ozoCVag89D8B/bCgTbDakqaB7gSVM41BzcF0uvRHugmHRMLYoPyecAzJGPzxrA==" | |
$BackupFileName = "sqlbackup\DBExport.bak" | |
$DownloadLocation = "f:\DBExport.bak" | |
$SQLServer = "VM2016" | |
$BackupFileLocation = "f:\DBExport.bak" | |
$DatabaseName = "DBTest" |
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
echo "$USER ALL=(ALL) NOPASSWD:ALL" | sudo tee --append /etc/sudoers |
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
# https://docs.microsoft.com/en-us/powershell/azure/authenticate-azureps?view=azps-5.6.0#password-based-authentication | |
# https://docs.microsoft.com/en-us/azure/cdn/cdn-manage-powershell#purgingpre-loading-cdn-assets | |
param ( | |
[string]$applicationId, | |
[string]$tenantId, | |
[string]$accessKey, | |
[string]$resourceGroupName, | |
[string]$profileName, | |
[string]$endpointName, |
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
Get-NetAdapter | Where-Object {$_.InterfaceDescription -Match "Cisco AnyConnect"} | Set-NetIPInterface -InterfaceMetric 6000 |
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
cast(UNIX_SECONDS(PARSE_TIMESTAMP("%d/%b/%Y:%H:%M:%S %z", time)) as string) as time |