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
CREATE USER [username] with password = 'password' | |
ALTER ROLE [db_datawriter] ADD MEMBER [username] | |
ALTER ROLE [db_ddladmin] ADD MEMBER [username] | |
ALTER ROLE [db_datareader] ADD MEMBER [username] |
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
$netshResult = &netsh wlan show profile | |
$wifiList = @() | |
foreach($t in $netshResult){ | |
$line = $t -split(":") | |
if($line[1]){ | |
$wifiList += $line[1].substring(1) | |
} | |
} |
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
<rule name="RestrictBackOffice" enabled="true" patternSyntax="Wildcard" stopProcessing="true"> | |
<match url="*" /> | |
<conditions> | |
<add input="{URL}" pattern="/Umbraco/*" /> | |
<add input="{URL}" pattern="/Umbraco/surface/*" negate="true" /> | |
<add input="{REMOTE_ADDR}" pattern="Your-IP" negate="true"/> | |
<add input="{REMOTE_ADDR}" pattern="Another-IP" negate="true"/> | |
<add input="{REMOTE_ADDR}" pattern="127.0.0.1" negate="true"/> | |
<add input="{HTTP_X_FORWARDED_FOR}" pattern="Your-IP" negate="true"/> | |
<add input="{HTTP_X_FORWARDED_FOR}" pattern="Another-IP" negate="true"/> |
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
#Place me in the same folder as the sln file | |
#Get the path of the sln file | |
Get-ChildItem -Path .\ -Filter *.sln -Recurse -File | ForEach-Object { | |
$solution = $_.FullName | |
} | |
#If you don't have Visual Studio Professional update the path to use a different edition i.e Community or Enterprise. Make sure MsBuild.exe is located there | |
cmd /c "`"C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\MsBuild.exe`" `"$solution`" /t:Restore" | |
cmd /c "`"C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\MsBuild.exe`" `"$solution`" /t:Rebuild" |