title | subtitle | author | date | source |
---|---|---|---|---|
Docker Compose Cheatsheet |
Quick reference for Docker Compose commands and config files |
Jon LaBelle |
April 7, 2019 |
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
--- | |
Description: >- | |
An AWS VPC with model according to https://medium.com/aws-activate-startup-blog/practical-vpc-design-8412e1a18dcc | |
AWSTemplateFormatVersion: 2010-09-09 | |
Resources: | |
VPC: | |
Type: AWS::EC2::VPC | |
Properties: | |
CidrBlock: 10.0.0.0/16 | |
EnableDnsSupport: true |
flood on the server with 100s or request with vegeta
echo "GET http://10.110.132.62:2048/hostname"| vegeta attack -rate=100/s -duration=1m |tee results.bin | vegeta encode
watch -d -n 0.01 'kubectl get po -o wide'
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
import ( | |
"net/http/httputil" | |
) | |
//dump http reqeust headers | |
func App() *buffalo.App { | |
if app == nil { | |
... | |
//somewhere inside your | |
if ENV == "development" { | |
app.Use(middleware.ParameterLogger) |