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
$totalSeconds = 0 | |
$wmp = New-Object -ComObject wmplayer.ocx | |
ls {{movieDirectoryPathHere}} -Recurse -Filter *.m4v | %{ | |
$movie = $wmp.newMedia($_.FullName) | |
$totalSeconds += $movie.duration | |
} | |
Write-Host "$totalSeconds seconds." |
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
# This will give a list of interfaces (along with index) | |
Get-DnsClient | |
Set-DnsClientServerAddress -InterfaceIndex <Interface Index> -ServerAddresses ("<IP Address>", "<IP Address 2>") | |
Set-DnsClientServerAddress -InterfaceIndex <Interface Index> -ResetServerAddresses |
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
DECLARE @BackupPath nvarchar(512) = '<Directory Path of Destination Folder>' | |
DECLARE @BackupName nvarchar(512) = '<Name of Backup File>' | |
DECLARE @FullBackupPath nvarchar(512) = @BackupPath + '\' + @BackupName + '.bak' | |
BACKUP DATABASE <Database Name> | |
TO DISK = @FullBackupPath | |
WITH FORMAT, | |
MEDIANAME = @BackupName, | |
NAME = '<Backup Name>' | |
-- REMEMBER: Add the SQL Server user to be able to write to the destination directory |
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
<system.web> | |
<sessionState | |
mode="StateServer" | |
stateConnectionString="tcpip=localhost:42424" | |
cookieless="false" | |
timeout="120" /> | |
</system.web> |
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
<system.webServer> | |
<staticContent> | |
<remove fileExtension=".woff" /> | |
<mimeMap fileExtension=".woff" mimeType="application/font-woff" /> | |
</staticContent> | |
</system.webServer> |
NewerOlder