How to view DICOM medical imaging files in macOS
Download the Horos app. E.g. using brew
:
brew update && brew install --cask horos
How to export local environment modifications in Nushell
By prefixing a function with --env
, the local changes to the environment are exported outside of the function context:
def --env foo [] { $env.BAR = "BAZ" }
$ foo
$ $env.BAR
$ BAZ
https://www.nushell.sh/commands/docs/def.html
That it’s possible to refactor rule conditions in GitLab CI/CD using the custom !reference
tag
E.g. potential useful to merge common and specialized rules:
.common_rules:
if_on_main: '$CI_COMMIT_BRANCH == "main"' # Only run on "main"
deploy_to_prod:
script:
- echo "Deploying to PROD!"
rules:
- if: !reference [.common_rules, if_on_main]
when: manual
(GitLab.com)
!reference
documentationAlso works with rules defined in external YAML files included using the
include
directive.