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
###NetBox Install### | |
#update repos | |
sudo apt-get update | |
#install postgresql | |
sudo apt-get install -y postgresql libpq-dev | |
#go into sql with user postgres | |
sudo -u postgres psql |
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
Install for Wordpress on 16.04 | |
--------------------------------------------------------------------------------------------------------- | |
#wordpresspadmin password | |
wordpressAdminUserPassword | |
#MySQL root user password | |
mysqlrootpassword |
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
Install for LAMP on 16.04 | |
#add wordpress admin user | |
sudo adduser wordpresspadmin | |
#wordpresspadmin password | |
wordpressAdminUserPassword | |
#add the word press admin to the sudo group | |
usermod -aG sudo wordpresspadmin |
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
$filename = "C:\folder\file.TXT" | |
$success = "$filename has been modified today. The file is good." | |
$failure = "!!!ERROR!!! $filename has not been modified today. Server may have not received a file!!!" | |
if (Test-Path $filename) { | |
if ((Get-Item $filename).LastWriteTime -ge (Get-Date).Date) { | |
#Email success to admin | |
$transcript = $success | |
$transcript = $transcript | Out-String |
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
Import-Csv C:\Scripts\Arecords.csv | foreach-object { | |
$ip = $_.ip | |
$name = $_.name | |
Add-DnsServerResourceRecordA -IPv4Address $ip -Name $name -ZoneName contoso.com -CreatePtr | |
} | |
#testing for checking vars | |
#Write-Host "$ipaddy,$name" |
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
ipmo ActiveDirectory | |
$firstName = Read-Host 'First Name' | |
$lastName = Read-Host 'Last Name' | |
$phone = Read-Host 'Phone Number' | |
$purpose = Read-Host 'Purpose' | |
$path = "OU=Guest,OU=Users,DC=contoso,DC=com" | |
$date = Get-Date -format "MddHHmms" | |
$accountName = "g"+$date | |
$name = $firstName + " " + $lastName |