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
package main | |
import "time" | |
// TickBurst creates a time.Tick()-like throttle with an initial burst. | |
// | |
// The created channel is replenished using time.Tick() every given interval, | |
// making it useful to limit concurrency. You can have an initial burst of 10 | |
// requests, for example, and permit one additional request every millisecond. | |
// |
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
--total-cpu-usage-- -dsk/total- -net/total- ---paging-- ---system-- | |
usr sys idl wai stl| read writ| recv send| in out | int csw | |
2 3 73 23 0| 0 195M| 986B 0 | 0 0 |3223 31k | |
2 2 73 23 0| 0 194M|1052B 0 | 0 0 |3392 29k | |
2 2 73 23 0| 0 196M|1412B 0 | 0 0 |3314 33k | |
2 2 73 23 0| 0 195M|1056B 0 | 0 0 |3287 31k | |
1 3 73 23 0| 0 195M|1184B 0 | 0 0 |3232 34k | |
1 3 73 23 0| 0 191M|1692B 0 | 0 0 |3235 33k | |
1 3 72 23 0| 0 195M|2706B 0 | 0 0 |3415 34k | |
2 2 73 23 0| 0 193M|2158B 0 | 0 0 |3276 34k |
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
services: | |
8u121-jre: | |
command: | |
- /entrypoint.sh | |
healthcheck: | |
test: curl --fail --insecure https://localhost:9443/ | |
image: openjdk:8u121-jre | |
ports: | |
- '9000' | |
- '9443' |
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
#!/usr/bin/env python3 | |
from __future__ import print_function | |
try: | |
from ruamel import yaml | |
except ImportError: | |
import yaml | |
# Map a Docker Compose "service" name to its image. |
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
services: | |
8u121-jre-alpine: | |
command: | |
- /entrypoint.sh | |
ports: | |
- '9000:9000' | |
- '9443:9443' | |
image: openjdk:8u121-jre-alpine | |
volumes: | |
- ./entrypoint.sh:/entrypoint.sh:ro |
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
FROM openjdk:8u121-jre-alpine | |
COPY svc /svc | |
EXPOSE 9000 9443 | |
CMD ["/svc/bin/start", "-Dhttps.port=9443", "-Dplay.crypto.secret=secret"] |
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
{ | |
"strategy": "tar", | |
"backup_time": "2016-12-05-20-19-43", | |
"topology": "standalone", | |
"ha": { | |
}, | |
"services": { | |
"rabbitmq": { | |
"data_dir": "/var/opt/opscode/rabbitmq/db" | |
}, |
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
#!/usr/bin/env python | |
from __future__ import print_function | |
import base64 | |
import sys | |
PEM = ("""-----BEGIN RSA PRIVATE KEY----- | |
MIIEogIBAAKCAQEAgK1Q6Ydi8UUheJLvnTYJE65NOZtAtjDdDSxS+6b4x9EakjIylljSzs5uLEJn |