Skip to content

Instantly share code, notes, and snippets.

View jasonmimick's full-sized avatar
🌥️
build in the cloud

Jason Mimick jasonmimick

🌥️
build in the cloud
View GitHub Profile
# use C-a, since it's on the home row and easier to hit than C-b
set-option -g prefix C-a
unbind-key C-a
bind-key C-a send-prefix
set -g base-index 1
# vi is good
setw -g mode-keys vi
# mouse behavior
@jasonmimick
jasonmimick / FixHSDemoInstall.mac
Created July 17, 2013 19:32
Fix up a default HealthShare demo install - run this after ##class(HS.Util.Installer).InstallDemo() - it will set EndPoints to 'localhost' rather than hostname
write "fix^FixHSDemoInstall(<newHostValue>)",!
write "",!
quit
updateRegistry(newHost) public {
write "["_$namespace_"]updateRegistry('"_newHost_"')",!
set rs=##class(%ResultSet).%New()
set sc=rs.Prepare("Update HS_Registry_Service.Soap Set Host = ?")
if ( 'sc ) { do $system.OBJ.DisplayError(sc) }
set sc=rs.Execute(newHost)
if ( 'sc ) { do $system.OBJ.DisplayError(sc) }