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
rem ******************************************* Use Master | |
SqlCmd -E -S localhost -Q "USE MASTER" | |
rem ******************************************* Restoring <Database Name> database | |
SqlCmd -E -S localhost -Q "ALTER DATABASE [<Database Name>] SET SINGLE_USER WITH ROLLBACK AFTER 5 SECONDS" | |
del " <Database Backup Full File Name>.bak" |
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
$slackMessage = "Test Message" | |
$postSlackMessage = @{token="{token}";channel="{channel}";username="{user}";text=$slackMessage;icon_emoji=":loudspeaker:";} | |
Invoke-RestMethod -Uri https://slack.com/api/chat.postMessage -Body $postSlackMessage |
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
Get-ChildItem -inc bin,obj -rec | Remove-Item -rec -force | |
Get-ChildItem -inc bin,obj -rec | ? { $_.PsIsContainer -and $_.FullName -notmatch 'node_modules' } | ? { Remove-Item $_.FullName -rec -force } |
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
// http://forum.ncrunch.net/yaf_postst1839_Including-log4net-Logging-in-Test-output.aspx | |
using log4net; | |
using log4net.Appender; | |
using log4net.Core; | |
using log4net.Layout; | |
using log4net.Repository.Hierarchy; | |
namespace Tests.Helper | |
{ | |
public class Logger |
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
# Following the conventional commits spec | |
# Please enter the commit message for your changes. Lines starting | |
# with '#' will be ignored, and an empty message aborts the commit. | |
# | |
# First line MUST be 50 characters or less | |
# All lines after the first MUST be wrapped at 72 characters | |
# | |
# ==[ Subject: <type>(<scope>): <subject> ]======| | |
# - 50 characters or less | |
# - Optionally prefix with a relevant emoji (see below) |
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
# This file lists the color values of the default dark theme. | |
# Each line starting with a # is a comment. | |
# To overwrite certain colors remove the leading # and change the color values. | |
# The "extends" line defines which color definitions to use if none is found here. | |
extends=deepgit-dark-theme.properties | |
# The "preferredEditorTheme" line determines what editor theme should be used by default ('light' or 'dark'). | |
preferredEditorTheme=dark |
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
Get-ChildItem -Recurse -Directory | Select-Object @{Name="Count"; Expression={(Get-ChildItem $_.FullName -File).Count}}, @{Name="Directory"; Expression={$_.FullName}}, @{Name="LastWriteTime"; Expression={$_.LastWriteTime}} | Sort-Object -Property LastWriteTime -Descending | Select-Object -First 10 | Format-Table |
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
$ErrorActionPreference = "Stop" | |
$repos = ( | |
'', | |
'' | |
) | |
$baseUrl = '' | |
$currentDir = '' | |
$tempDir = '' |