This file contains 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
this.renderer.detachView(this.stepperSteps.map(el => el.elementRef.nativeElement)); | |
this.renderer.attachViewAfter(this.elementRef.nativeElement, [this.stepperSteps.map(el => el.elementRef.nativeElement)[this.currentStepNumber]]); |
This file contains 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
:w !sudo tee % | |
# :w = Write a file. | |
# !sudo = Call shell sudo command. | |
# tee = The output of the vi/vim write command is redirected using tee. | |
# % = Triggers the use of the current filename. | |
# Simply put, the ‘tee’ command is run as sudo and follows the vi/vim command on the current filename given. |
This file contains 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
# Pass the env-vars to MYCOMMAND | |
eval $(egrep -v '^#' .env | xargs) MYCOMMAND | |
# … or ... | |
# Export the vars in .env into your shell: | |
export $(egrep -v '^#' .env | xargs) |