Skip to content

Instantly share code, notes, and snippets.

View gsherman's full-sized avatar

Gary Sherman gsherman

View GitHub Profile
@gsherman
gsherman / slack-message.bat
Created September 19, 2014 15:36
post a message to a slack channel
@echo off
set Count=0
for %%a in (%*) do set /a Count+=1
if %count% NEQ 2 goto usage
SET message=%1
SET channel=%2
SET token=mySecretToken
@gsherman
gsherman / campfire-message.bat
Created September 19, 2014 15:34
post a message to a campfire room
@echo off
set Count=0
for %%a in (%*) do set /a Count+=1
echo %Count%
if %count% NEQ 2 goto usage
c:
cd C:\Dovetail\RuleManagerActions\campfire
@gsherman
gsherman / hipchat-message.bat
Created September 19, 2014 15:33
post a message to a hipchat room
@echo off
set Count=0
for %%a in (%*) do set /a Count+=1
echo %Count%
if %count% NEQ 2 goto usage
c:
cd C:\Dovetail\RuleManagerActions\Hipchat
@gsherman
gsherman / 1.readme.md
Last active August 29, 2015 14:04
Custom 404.1 Unauthorized page for Dovetail Agent 5

How to setup a custom 401.1 (Unauthorized) page for use with Dovetail Agent 5

This is useful when the Agent app is setup to use Windows authentication

Screenshot of the 401 page

Screenshot of the 401 page:

@gsherman
gsherman / send_survey.bat
Created June 2, 2014 18:55
Batch file for sending a Net Promoter Score survey to a customer using Delighted (delightedapp.com)
@echo off
set Count=0
for %%a in (%*) do set /a Count+=1
if %count% NEQ 3 goto usage
c:
cd %~dp0
SET recipient=%1
@gsherman
gsherman / crypt.bat
Last active August 29, 2015 14:01
bat file for encrypting and decrypting config files. In the bat file, there's a path to aspnet_regiis.exe that looks like: %windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis.exe . That may need to be tweaked for your environment.
@echo off
REM depends on find_replace.vbs, assumed to be in same directory as this file (crypt.bat)
echo.
echo *** Encrypt/Decrypt a section of a Configuration file ***
echo.
if "%1" == "" goto usage
if "%2" == "" goto usage
@gsherman
gsherman / 1-Task Manager
Last active August 29, 2015 13:56
Make "Run Task Set" a Business Rule Event and Activity Log entry
Add Run Task Set to the list of events
You can do this one of two ways.
Using Clarify UI Editor, Modify Form 472
Modify the control named "SEL_EVENT"
Add an Item of "Run Task Set"
Add a Path of CASE
Add a Value List Name of USER1005
Save it & Add this form to the proper Resource Configs
(This allows your custom event to be visible in the Clarify Client and in DovetailAdmin).
@gsherman
gsherman / cls_prop.dat
Created January 28, 2014 16:04
Example DAT file for adding a custom property (Subcase Type) to an existing task definition
OBJECT TYPE="cls_prop", NAME="subcaseTypePropertyForTaskSet"
FIELDS
destn_path="sub_type";
source_type=0;
source_path="sub_type";
source_value="General";
userdef_ind=1;
mand_ind=0;
display_name="Subcase Type"
db_data_type=516;
@gsherman
gsherman / cls_prop_map.dat
Created January 28, 2014 15:15
DAT file for adding a new property (subcase type) for task manager task definitions
OBJECT TYPE="cls_prop_map", NAME="subcaseType"
FIELDS
db_data_type=516;
display_name="Subcase Type";
sch_name="sub_type";
flag=0;
context_map="";
src_typ_dsply="value";
source_value="";
focus_type=24;
@gsherman
gsherman / regex.cbs
Created November 7, 2013 15:38
example of using regular expressions in ClearBasic
Sub main()
Dim txt as String
Dim newTxt as String
Dim regex As Object
txt="Clarify is cool"
Set regex=CreateObject("vbscript.regexp")
regex.Pattern="Clarify"
newTxt = regex.Replace(txt,"Dovetail")