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
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
-- 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. |
NewerOlder