One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
| #!/usr/bin/env bash | |
| # This script generates a list of repos in a GitHub org. | |
| # The list can be pasted directly to a Microsoft Excel sheet. | |
| # You will need to use your GitHub username in the username field. | |
| # Update the page=N number to get the complete list of repos. | |
| curl --silent --user "username" "https://api.github.com/orgs/vmware/repos?page=1&per_page=100" | npx jq '.[].html_url' | while read repo | |
| do | |
| echo "=Hyperlink("$repo","$repo")" | |
| done |
Use a DaemonSet for Pods that need to run one per machine, because they provide a machine-specific system service.
Learning k8s basics
For example, to mark a node unschedulable, run this command:
| State | Abbreviation | |
|---|---|---|
| Alabama | AL | |
| Alaska | AK | |
| Arizona | AZ | |
| Arkansas | AR | |
| California | CA | |
| Colorado | CO | |
| Connecticut | CT | |
| Delaware | DE | |
| District of Columbia | DC |
| # See list of docker virtual machines on the local box | |
| $ docker-machine ls | |
| NAME ACTIVE URL STATE URL SWARM DOCKER ERRORS | |
| default * virtualbox Running tcp://192.168.99.100:2376 v1.9.1 | |
| # Note the host URL 192.168.99.100 - it will be used later! | |
| # Build an image from current folder under given image name | |
| $ docker build -t gleb/demo-app . |
| var amqp = require('amqplib/callback_api'); | |
| // if the connection is closed or fails to be established at all, we will reconnect | |
| var amqpConn = null; | |
| function start() { | |
| amqp.connect(process.env.CLOUDAMQP_URL + "?heartbeat=60", function(err, conn) { | |
| if (err) { | |
| console.error("[AMQP]", err.message); | |
| return setTimeout(start, 1000); | |
| } |
| 'use strict'; | |
| const driveUploadPath = 'https://www.googleapis.com/upload/drive/v3/files'; | |
| // 'id' is driveId - unique file id on google drive | |
| // 'version' is driveVersion - version of file on google drive | |
| // 'name' name of the file on google drive | |
| // 'appProperties' keep the custom `ifid` field | |
| const fileFields = 'id,version,name,appProperties'; |