I hereby claim:
- I am lennybacon on github.
- I am lennybacon (https://keybase.io/lennybacon) on keybase.
- I have a public key ASAvI6JKRHH2pitIjxBbmRXuLmZoDaQBD9lQ9vlyK0IXfgo
To claim this, I am signing this object:
| html{ | |
| background-color: #343434; | |
| font-size: 14px; | |
| color: #404040; | |
| } | |
| body{ | |
| width:700px; | |
| background-color: #e6e6e6; | |
| margin: auto; |
| /* ==UserStyle== | |
| @name IETF Dark | |
| @namespace https://gist.github.com/lennybacon | |
| @version 1.0.1 | |
| @description Dark theme for IETF | |
| @author lennybacon | |
| @homepageURL https://gist.github.com/lennybacon/aa4b520e6a04e17c820b70fca793db6a | |
| @updateURL https://gist.github.com/lennybacon/aa4b520e6a04e17c820b70fca793db6a/raw/355f11c3c3f4e4aa2103e2fe9754d61f41e07ced/ietf-dark.css | |
| @license CC-BY-SA-4.0 | |
| ==/UserStyle== */ |
| <#@ template debug="false" hostspecific="true" language="C#" #> | |
| <#@ output extension=".g.cs" #> | |
| <#@ assembly name="EnvDTE" #> | |
| <#@ assembly name="System.Text.Json" #> | |
| <#@ assembly name="System.Memory" #> | |
| <#@ assembly name="netstandard" #> | |
| <#@ import namespace="System.IO" #> | |
| <#@ import namespace="System.Net" #> | |
| <#@ import namespace="System.Text.Json" #> | |
| <# |
| Write-Host "Disable Telemetry" -ForegroundColor Cyan; | |
| New-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\DataCollection" -Name AllowTelemetry -PropertyType DWord -Value 0 -force | Out-Null; | |
| Stop-Service DiagTrack | Out-Null; | |
| Set-Service DiagTrack -startupType Disabled | Out-Null; | |
| Stop-Service dmwappushservice | Out-Null; | |
| Set-Service dmwappushservice -startupType Disabled | Out-Null; | |
| Write-Host "Add Developer Exclusions For Windows Defender" -ForegroundColor Cyan; | |
| Add-MpPreference -ExclusionProcess "light.exe" | Out-Null; | |
| Add-MpPreference -ExclusionProcess "candel.exe" | Out-Null; |
| $registryKey = [Microsoft.Win32.Registry]::LocalMachine.OpenSubKey("SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update\RebootRequired"); | |
| if ($null -ne $registryKey){ | |
| if ($registryKey.GetValueNames().Length -ne 0) { | |
| Write-Host "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update\RebootRequired indicates a pending reboot."; | |
| Write-EventLog –LogName Application –Source $EventLogSourceName –EntryType Information –EventID 99 –Message "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update\RebootRequired indicates a pending reboot."; | |
| Restart-Computer -Force | |
| } | |
| } | |
| $registryKey = [Microsoft.Win32.Registry]::LocalMachine.OpenSubKey("SOFTWARE\Microsoft\Updates"); |
| $setupPath = ".\Setup.exe"; | |
| $productKey = "XXX"; | |
| $instanceName = "MSSQLSERVER"; | |
| $version = "2019"; | |
| $collation = "Latin1_General_CI_AS"; | |
| $serviceAccount = ""; | |
| $serviceAccountPassword = ""; | |
| $currentUser = [System.Environment]::UserDomainName + "\" + [System.Environment]::UserName; | |
| $sqlAdminAccount = ""; | |
| $sqlAdminGroup = ""; |
| <Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
| <UsingTask | |
| TaskName="GenerateMachineKey" | |
| TaskFactory="CodeTaskFactory" | |
| AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.v4.0.dll" > | |
| <ParameterGroup /> | |
| <Task> | |
| <Reference Include="System.Xml"/> | |
| <Using Namespace="System"/> |
I hereby claim:
To claim this, I am signing this object:
| $random = [System.Security.Cryptography.RandomNumberGenerator]::Create(); | |
| $buffer = New-Object byte[] 32; | |
| $random.GetBytes($buffer); | |
| [BitConverter]::ToString($buffer).Replace("-", [string]::Empty); |
| $linkFilePath = "C:\Users\$([Environment]::UserName)\Desktop\WindowsTerminal.lnk" | |
| $bytes = [System.IO.File]::ReadAllBytes($linkFilePath) | |
| $bytes[0x15] = $bytes[0x15] -bor 0x20 #set byte 21 (0x15) bit 6 (0x20) ON | |
| [System.IO.File]::WriteAllBytes($linkFilePath, $bytes) |