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
| require 'rake' | |
| require 'rspec/core/rake_task' | |
| require 'rubocop/rake_task' | |
| desc 'Run all tests on CircleCI' | |
| task circleci: [:style] | |
| desc 'Run all style checks' | |
| task style: 'style:ruby' |
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
| mkdir panamax | |
| cd panamax | |
| curl -O http://download.panamax.io/installer/pmx-installer-latest.zip | |
| unzip pmx-installer-latest.zip | |
| sudo su | |
| ./coreos install --stable |
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
| docker run -d \ | |
| --name="newrelic" \ | |
| --net="host" \ | |
| --pid="host" \ | |
| --env="NEW_RELIC_LICENSE_KEY=YOUR_NEW_RELIC_LICENSE_KEY" \ | |
| --volume="/var/run/docker.sock:/var/run/docker.sock:ro" \ | |
| --volume="/sys/fs/cgroup/:/sys/fs/cgroup:ro" \ | |
| --volume="/dev:/dev" \ | |
| --restart=always \ | |
| uzyexe/newrelic |
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
| git clone https://github.com/robn/towncrier.git | |
| cd towncrier | |
| curl -L http://cpanmin.us | perl - Carton | |
| carton install --deployment | |
| cpanm Task::Plack |
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
| PORT=5000 | |
| AUTH=admin:secret | |
| curl -u $AUTH -i http://localhost:$PORT/admin/api/v1/services/first/events -F status=down -F message="oh my god." |
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/sh | |
| PORT=5000 | |
| AUTH=admin:secret | |
| # Create statuses | |
| curl -u $AUTH -i http://localhost:$PORT/admin/api/v1/statuses -F name=Up -F description='The service is operating normally' -F icon=ok-sign | |
| curl -u $AUTH -i http://localhost:$PORT/admin/api/v1/statuses -F name=Down -F description='The service is unavailable' -F icon=remove-sign | |
| curl -u $AUTH -i http://localhost:$PORT/admin/api/v1/statuses -F name=Warning -F description='The service is operating in a degraded capacity' -F icon=warning-sign |
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
| plugins: | |
| "Auth::Basic": | |
| paths: | |
| "/admin/api": | |
| realm: api | |
| user: admin <= YOUR_USERNAME | |
| password: secret <= YOUR_PASSWORD |
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
| yum install -y perl-devel libxml2-devel | |
| git clone https://github.com/robn/towncrier.git | |
| cd towncrier | |
| curl -L http://cpanmin.us | perl - Carton | |
| carton install | |
| cpanm Task::Plack |
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
| sudo systemctl start logentries |
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
| [Unit] | |
| Description=logentires.service | |
| [Service] | |
| Environment=ACCESS_TOKEN=YOUR_LOGENTRIES_ACCESS_TOKEN | |
| ExecStart=/bin/sh -c 'journalctl -o short -f | sed \"s/^/${ACCESS_TOKEN} \\0/g\" | ncat data.logentries.com 10000' |
NewerOlder