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
-- allow changes to advanced options | |
EXEC sp_configure 'show advanced options', 1 | |
GO | |
-- Update currently configured values for advanced options. | |
RECONFIGURE | |
GO | |
-- To enable xp_cmdshell | |
EXEC sp_configure 'xp_cmdshell', 1 | |
GO | |
-- Update currently configured values for advanced options. |
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 Slack-Rich-Notification ($notification) | |
{ | |
$payload = @{ | |
channel = $OctopusParameters['Channel'] | |
username = $OctopusParameters['Username']; | |
icon_url = $OctopusParameters['IconUrl']; | |
attachments = @( | |
@{ | |
fallback = $notification["fallback"]; | |
color = $notification["color"]; |
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
-- default script for clink, called by init.bat when injecting clink | |
-- !!! THIS FILE IS OVERWRITTEN WHEN CMDER IS UPDATED | |
-- !!! Use "%CMDER_ROOT%\config\<whatever>.lua" to add your lua startup scripts | |
-- luacheck: globals clink | |
-- At first, load the original clink.lua file | |
-- this is needed as we set the script path to this dir and therefore the original | |
-- clink.lua is not loaded. |
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
git log -1 --pretty=format:"%h (%an) [%ad] : %s" --date=short > path\file.txt |
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
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit" |
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
git config --global core.editor "'C:\Program Files\Sublime Text 3\subl.exe' -w" |
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
[user] | |
email = [email protected] | |
name = Chuck Norris | |
[core] | |
editor = 'C:\\Program Files\\Sublime Text 3\\subl.exe' -w | |
[alias] | |
st = status | |
c = commit -v | |
ca = commit --amend | |
ll = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --numstat |
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 hardClean { | |
try { | |
Get-ChildItem .\ -include bin,obj -Recurse | foreach ($_) { | |
Write-Output "Deleting $_" | |
remove-item $_.FullName -Force -Recurse | |
} | |
} | |
catch { | |
Write-Output "error" | |
} |
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 C:\ -recurse -include "aaa.exe", "bbb.exe" | |
# Credit: https://stackoverflow.com/a/49110679/2874896 |
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
services.AddSpaStaticFiles( | |
configuration => | |
{ | |
configuration.RootPath = "wwwroot"; // Or any other folder | |
}); |
OlderNewer