Sometimes I meet in someone's code a very helpful oneliners.
I suggest to introduce a project on OEX that will collect it.
Here are oneline candidates:
// introduce SSL configuration in IRIS
set $namespace="%SYS", name="DefaultSSL" do:'##class(Security.SSLConfigs).Exists(name) ##class(Security.SSLConfigs).Create(name)
// install ZPM
set url="https://pm.community.intersystems.com/packages/zpm/latest/installer" Do ##class(%Net.URLParser).Parse(url,.comp) set ht = ##class(%Net.HttpRequest).%New(), ht.Server = comp("host"), ht.Port = 443, ht.Https=1, ht.SSLConfiguration="DefaultSSL", st=ht.Get(comp("path")) quit:'st $System.Status.GetErrorText(st) set xml=##class(%File).TempFilename("xml"), tFile = ##class(%Stream.FileBinary).%New(), tFile.Filename = xml do tFile.CopyFromAndSave(ht.HttpResponse.Data) do ht.%Close(), $system.OBJ.Load(xml,"ck") do ##class(%File).Delete(xml)
Thank you for submitting the idea.
This idea was implemented by Developer Community member(s). Please check the solution in the comments.
This idea is implemented by Developer Community Member Evgeny Shvarov:
Solution
Similar to https://isc-internal.ideas.aha.io/ideas/DP-I-90
or as an enhancement to each other...
+1
And manage the code as a GitHub Gist https://gist.github.com/ instead of a full-fledged GitHub repo.