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
Get-ChildItem $env:temp | Where-Object {$_.LastWriteTime -lt (Get-Date).AddDays(-2)} | Remove-Item -Force -Recurse |
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
param ( | |
[string]$fullName = "", # Example: "12.0Exp" is VS v12.0 (2013) hive name "Exp" | |
[switch]$listHives = $false, | |
[switch]$force = $false | |
) | |
$vsAppDataRoot = Join-Path $env:APPDATA "Microsoft\VisualStudio" | |
$vsRegKeyRoot = "hkcu:\Software\Microsoft\VisualStudio" | |
if (-not $fullName -and -not $listHives) { |
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
# Tested with Windows 10 Tech Preview build 9926 | |
# | |
# The following PowerShell script can be used to re-initialize the Shell Experience in Windows 10. | |
# | |
# WARNING: All store apps will be reinitialized meaning any local data associated with that app will | |
# get reset. | |
# | |
# This seems to be necessary if restoring from a restore point. When a restore point is used, | |
# the Start Menu, Cortana, and the Notification Area no longer work |
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
@echo off | |
:: Begin config section | |
set pathToApp=C:\SourceCode\MyApp\MyApp.Web | |
set pathToIISExpress=C:\Program Files\IIS Express\iisexpress.exe | |
set webPort=8019 | |
:: End config section | |
if not exist %pathToApp% (goto errMissingApp) | |
if not exist %pathToIISExpress% (goto errMissingIisExpress) |
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
$fileToCheck = 'C:\SourceCode\BitCollectors.WinFormsControls\BitCollectors.WinFormsControls\Common\Win32Native.cs' | |
$fileToOutput = 'C:\Temp\Win32Native.new.cs' | |
$fileToBackup = 'C:\Temp\Win32Native.old.cs' | |
$folderToLookIn = 'C:\SourceCode\BitCollectors.WinFormsControls\BitCollectors.WinFormsControls' | |
$constRegex = '^\s*[^\/]\s*((internal|private|public|protected)?\s+const\s+[a-zA-Z0-9]+)?\s+([A-Z]{1}[a-zA-Z0-9_]+)\s*\=.*(;|,)\s*$' | |
$csFiles = Get-ChildItem -Path $folderToLookIn -Recurse -Filter '*.cs' | |
#region Functions | |
Function OnLoad { |
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
@echo off | |
rem --------------------------------------------- | |
rem - SQL SERVICE HELPER v1.1.20140624 | |
rem - ADAM PLOCHER / BITCOLLECTORS | |
rem - https://github.com/aplocher | |
rem - | |
rem - Description: | |
rem - Helper bat file to start / stop SQL server instances. Will require | |
rem - user intervention (pause) when error occurs. Supports colorized output |
NewerOlder