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
/* | |
* JavaScript Grammar | |
* ================== | |
* | |
* Based on grammar from ECMA-262, 5.1 Edition [1]. Generated parser builds a | |
* syntax tree compatible with Mozilla SpiderMonkey Parser API [2]. Properties | |
* and node types reflecting features not present in ECMA-262 are not included. | |
* | |
* Limitations: | |
* |
Disclaimer: The instructions are the collective efforts from a few places online. | |
Nothing here is my original. But I want to put them together in one place to save people from spending the same time as I did. | |
First off, bundle. | |
================== | |
1. cd to the project directory | |
2. Start the react-native packager if not started | |
3. Download the bundle to the asset folder: | |
curl "http://localhost:8081/index.android.bundle?platform=android" -o "android/app/src/main/assets/index.android.bundle" |
# Setup all required packets and soft | |
# Homebrew to install packets | |
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
# Cask to install Mac OS applications | |
brew install caskroom/cask/brew-cask | |
# Generic | |
brew install gcc | |
brew install wget |
# Whitelist collections | |
ALLOW_COLLECTIONS = { | |
'accounts': true | |
'users': true | |
} | |
module.exports = (shareClient) -> | |
# Hold on to session object for later use. The HTTP req object is only | |
# available in the connect event | |
shareClient.use 'connect', (shareRequest, next) -> |
MONTH_NAMES = [ | |
'January', 'February', 'March', 'April', 'May', 'June', | |
'July', 'August', 'September', 'October', 'November', 'December' | |
] | |
moment = (input, format, lang, strict) -> | |
moment = require 'moment-timezone' | |
return moment input, format, lang, strict | |
formats = |
#make a hook | |
store.hook 'change', 'collection.*.foo', (docId, value, op, session, backend) -> | |
model = store.createModel() | |
#logic | |
#setup the hook method | |
store.hook = (method, pattern, fn) -> | |
store.shareClient.use 'after submit', (shareRequest, next) -> | |
{opData} = shareRequest |
#!/bin/bash | |
# Sample App Init script for running sample app daemon | |
# | |
# chkconfig: - 98 02 | |
# | |
# description: Sample Application Upstart, using Forever | |
APPHOME=/opt/sample-app | |
APPSCRIPT=app.js |
# Edit here - set path to you directory with config.json & fonts | |
FONT_DIR ?= ./assets/vendor/fontello/src | |
### Don't edit below ### | |
FONTELLO_HOST ?= https://fontello.com | |
fontopen: | |
@if test ! `which curl` ; then \ |
var redis = require("redis") | |
, subscriber = redis.createClient() | |
, publisher = redis.createClient(); | |
subscriber.on("message", function(channel, message) { | |
console.log("Message '" + message + "' on channel '" + channel + "' arrived!") | |
}); | |
subscriber.subscribe("test"); |