- Kubernetes in Action
- Cloud Native DevOps with Kubernetes
- Managing Kubernetes
- O'Reilly, 2018
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
| # Calculate the size of an HTML element, whose size is specified with CSS, on | |
| # the screen of a specific device (laptop, tablet, phone, ...). | |
| # | |
| # Where to get the needed information? | |
| # - ppi: https://www.gsmarena.com/ or http://dpi.lv/ | |
| # - dpr: http://devicepixelratio.com/ | |
| # - linres: https://www.gsmarena.com/ | |
| # - viewport: default viewport width for mobile only, first line of: | |
| # http://whatsmy.browsersize.com/ | |
| # |
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 ( | |
| "fmt" | |
| "sync" | |
| //"jrrors" | |
| ) | |
| type Fetcher interface { | |
| // Fetch returns the body of URL and |
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 | |
| set -e | |
| TITLE=$1 | |
| CANONICAL_URL=$2 | |
| if [[ "$#" -ne 2 ]]; then | |
| cat <<EOF | |
| USAGE |
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
| global: | |
| scrape_interval: 10s | |
| scrape_configs: | |
| - job_name: node | |
| static_configs: | |
| - targets: | |
| - localhost:9100 | |
| - job_name: python-app | |
| static_configs: | |
| - targets: |
Last updated: 22 April 2020
List of regions where Amazon EKS is available.
Data source: https://aws.amazon.com/about-aws/global-infrastructure/regional-product-services/
During the last days, figured out a couple of things.
This is done through simple HTTP calls to different endpoints under http://host:15672/api/. All the calls use HTTP Basic Authentication with username and password of a RabbitMQ user with appropriate permissions.
To create a user and vhost and grant the user access to this vhost only:
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
| wget -q -O - https://packages.cloudfoundry.org/debian/cli.cloudfoundry.org.key | apt-key add - | |
| echo "deb https://packages.cloudfoundry.org/debian stable main" | tee /etc/apt/sources.list.d/cloudfoundry-cli.list | |
| apt-get -y install apt-transport-https | |
| apt-get -y update | |
| apt-get -y install cf-cli |
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
| Blocked: | |
| - Telegram | |
| - Slack | |
| - Medium | |
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 | |
| # Install Docker | |
| apt-get update | |
| apt-get install -y docker.io | |
| # Add user 'ubuntu' to group 'docker' | |
| usermod -aG docker ubuntu |