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
| Set WshShell = CreateObject("WScript.Shell") | |
| InputBox "Windows Product Key", "Product Key", ConvertToKey(WshShell.RegRead("HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\DigitalProductId")) | |
| Set WshShell = Nothing | |
| Function ConvertToKey(Key) | |
| Const KeyOffset = 52 | |
| i = 28 | |
| Chars = "BCDFGHJKMPQRTVWXY2346789" | |
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
| body[bgcolor='white']{ | |
| background: #191919; | |
| color: #999; | |
| } | |
| h2{ | |
| color: red; | |
| } | |
| body>font>b{ |
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
| function Start-Executable { | |
| param( | |
| [String] $FilePath, | |
| [String[]] $ArgumentList, | |
| [String] $WorkingDirectory | |
| ) | |
| $process = New-Object System.Diagnostics.Process | |
| $process.StartInfo.FileName = $FilePath | |
| $process.StartInfo.Arguments = $ArgumentList | |
| $process.StartInfo.UseShellExecute = $false |
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
| using System.Web.Configuration; | |
| namespace lennybacon.Samples | |
| { | |
| internal class AspNetMaxRequestLength | |
| { | |
| public static int GetMaxRequestLengthOfAspNet() | |
| { | |
| var configuration = WebConfigurationManager.OpenWebConfiguration("~"); | |
| var httpRuntimeSection = |
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
| using System; | |
| using System.IO; | |
| using System.Linq; | |
| using System.Web; | |
| using System.Web.Configuration; | |
| using System.Xml; | |
| namespace lennybacon.Samples | |
| { | |
| class IisMaxRequestLength |
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
| div[data-advertiser-id]{ | |
| display: none; | |
| } | |
| li[data-item-type='prompt'] { | |
| display: none; | |
| } |
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
| New-Item -Path M:\Library -ItemType SymbolicLink -Value F:\Music |
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
| cmd /c mklink /D M:\Library F:\Music\ |
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
| class TimeTest { | |
| constructor(name) { | |
| this.name = name; | |
| } | |
| start() { | |
| var x = new Date('2016-01-29T14:00:00'); | |
| return "Project " + this.name + ": " + x.getTime(); | |
| } | |
| } |
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
| $serviceAccount = ""; | |
| $serviceAccountPassword = ""; | |
| $key = ""; | |
| $instanceName = "MSSQLSERVER"; | |
| $sqlRootDir = ""; | |
| $setupPath = [System.IO.Path]::Combine($installLocation, "SQL2016", "Setup.exe"); | |
| $argumentList = ` | |
| "/Q " +` | |
| "/ACTION=`"Install`" " +` |