/g |
/y |
/yg |
|
|---|---|---|---|
.exec() |
at .lI or later |
at .lI |
same as /y |
.test() |
at .lI or later |
at .lI |
same as /y |
.replace() |
ignores & resets .lI |
at .lI |
/g w/o gaps |
.replaceAll() |
ignores .lI |
TypeError |
/g w/o gaps |
.search() |
no effect | no effect | no effect |
.match() |
Array of group 0 captures | like .exec() |
/g w/o gaps |
| #!/usr/bin/python | |
| # -*- coding: utf-8 -*- | |
| from __future__ import print_function | |
| import argparse | |
| import binascii | |
| import time | |
| import os | |
| import csv | |
| import sys | |
| import json |
The official guide for setting up Kubernetes using kubeadm works well for clusters of one architecture. But, the main problem that crops up is the kube-proxy image defaults to the architecture of the master node (where kubeadm was run in the first place).
This causes issues when arm nodes join the cluster, as they will try to execute the amd64 version of kube-proxy, and will fail.
It turns out that the pod running kube-proxy is configured using a DaemonSet. With a small edit to the configuration, it's possible to create multiple DaemonSets—one for each architecture.
Follow the instructions at https://kubernetes.io/docs/setup/independent/create-cluster-kubeadm/ for setting up the master node. I've been using Weave Net as the network plugin; it see
| // see for screenshot: | |
| // https://twitter.com/paul_irish/status/829090506084749312 | |
| const http = require('http'); | |
| function requestHandler(request, response) { | |
| const headers = { | |
| 'Server-Timing': ` | |
| sql-1;desc="MySQL lookup Server";dur=100, | |
| sql-2;dur=900;desc="MySQL shard Server #1", |
| var express = require('express'); | |
| var oauth = require('oauth'); | |
| var app = express.createServer(); | |
| var key = "[api-key]"; | |
| var secret = "[api-secret]"; | |
| var request = new oauth.OAuth(null, null, key, secret, '1.0', null, 'HMAC-SHA1'); | |
| app.get('/api-request', function(req, res){ | |
| request.get( | |
| "http://127.0.0.1:8000/api/1.0/data.json", |
| *.acn | |
| *.acr | |
| *.alg | |
| *.aux | |
| *.bak | |
| *.bbl | |
| *.bcf | |
| *.blg | |
| *.brf | |
| *.bst |