This file contains hidden or 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
| #!/bin/bash | |
| mongoctl connect `heroku config | grep -Po '(?<=MONGOLAB_URI: ).+'` |
This file contains hidden or 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
| #!/bin/bash | |
| SIG="-2" | |
| if [[ "$2" != "" ]]; then | |
| SIG="$2" | |
| fi | |
| ps -ef | grep $1 | grep -v grep | awk '{print $2}' | xargs kill $SIG |
This file contains hidden or 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
| find logs -name "*.log" -mtime 30 -exec rm {} \; |
This file contains hidden or 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
| apply from: "$snippetsRepo/gaelyk-prj.gradle" | |
| buildscript { | |
| apply from: "$snippetsRepo/gaelyk-buildscript.gradle" | |
| } |
This file contains hidden or 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
| repositories { | |
| add(new org.apache.ivy.plugins.resolver.URLResolver()) { | |
| name = 'GitHub' | |
| addArtifactPattern 'http://cloud.github.com/downloads/[organisation]/[module]/[module]-[revision].[ext]' | |
| } | |
| } | |
| dependencies { | |
| classpath '<githubId>:<artifact>:<revision>' | |
| } |
NewerOlder