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
docker stop $(docker ps -a -q) | |
docker rm $(docker ps -a -q) |
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 is handy with ui-bootstrap since you can do this: | |
<nav click-outside="expanded = false" | |
... | |
<button type="button" class="navbar-toggle collapsed" ng-click="expanded = !expanded" ... | |
... | |
<div uib-collapse="!expanded" class="collapse navbar-collapse"> | |
*/ | |
angular.module('myModule').directive('clickOutside', ExpandCollapse); |
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
# Note: Assumes dockerfile is in ~/app and content is in ~/app/publish.tar.gz | |
proj=$1 | |
cd ~/app | |
docker rm $(docker stop $(docker ps -a -q --filter ancestor=$proj --format="{{.ID}}")) | |
rm -rf publish | |
tar -xvzf publish.tar.gz | |
docker build -t $proj . | |
docker run -d -p 80:5000 $proj |
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
sed -r -i "s|(\"version\"\s*:\s*\")([^\"]+)(\")|\1\2-beta.$CI_JOB_ID\3|" package.json |
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
"%VS140COMNTOOLS%/../ide/vsdiffmerge" "%1" "%2" |
NewerOlder