Let's look at some basic kubectl output options.
Our intention is to list nodes (with their AWS InstanceId) and Pods (sorted by node).
We can start with:
kubectl get no
| <?php | |
| // Silex Style Controllers | |
| class App extends \Slim\Slim | |
| { | |
| public function mount($controller) | |
| { | |
| if (! is_object($controller)) { | |
| throw new \InvalidArgumentException('Controller must be an object.'); | |
| } |
| // Copyright (c) 2012 Sutoiku, Inc. (MIT License) | |
| // Some algorithms have been ported from Apache OpenOffice: | |
| /************************************************************** | |
| * | |
| * Licensed to the Apache Software Foundation (ASF) under one | |
| * or more contributor license agreements. See the NOTICE file | |
| * distributed with this work for additional information | |
| * regarding copyright ownership. The ASF licenses this file |
| var waitForEl = function(selector, callback) { | |
| if (jQuery(selector).length) { | |
| callback(); | |
| } else { | |
| setTimeout(function() { | |
| waitForEl(selector, callback); | |
| }, 100); | |
| } | |
| }; |
| #!/bin/bash | |
| # Add to your .bashrc on Mac OSX, then run camfix in Terminal | |
| # if the Mac's built-in camera stops working. | |
| # Thanks to: http://osxdaily.com/2013/12/27/fix-there-is-no-connected-camera-error-mac/ | |
| alias camfix='sudo killall VDCAssistant; sudo killall AppleCameraAssistant' |
| #!/bin/bash | |
| # Stop all containers | |
| containers=`docker ps -a -q` | |
| if [ -n "$containers" ] ; then | |
| docker stop $containers | |
| fi | |
| # Delete all containers | |
| containers=`docker ps -a -q` | |
| if [ -n "$containers" ]; then | |
| docker rm -f -v $containers |
See how a minor change to your commit message style can make a difference.
git commit -m"<type>(<optional scope>): <description>" \ -m"<optional body>" \ -m"<optional footer>"