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
import sys | |
import timeit | |
def high_enough(x, lo): | |
return x < 10*lo | |
def even_digits(x): | |
(lo, divisor) = (10, 10) | |
while not high_enough(x, lo): | |
lo *= 100 |
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
def main(): | |
connect_and_subscribe() | |
if check_disabled(): | |
log('Exiting because disabled.') | |
return | |
read_sensor() | |
finish() | |
def connect_and_subscribe(): | |
"""Connect to the MQTT server and subscribe to interesting topics.""" |
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
--- | |
apiVersion: v1 | |
kind: Namespace | |
metadata: | |
name: sonobuoy | |
--- | |
apiVersion: v1 | |
kind: ServiceAccount | |
metadata: | |
labels: |
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
== Pre-Upgrade Node OS and Kubelet Versions == | |
name: "e2e-master", osImage: "Container-Optimized OS from Google", kubeletVersion: "v1.7.0-alpha.3.278+a365e02e018731-dirty" | |
name: "e2e-minion-group-5f66", osImage: "Debian GNU/Linux 7 (wheezy)", kubeletVersion: "v1.7.0-alpha.3.278+a365e02e018731-dirty" | |
name: "e2e-minion-group-ls90", osImage: "Debian GNU/Linux 7 (wheezy)", kubeletVersion: "v1.7.0-alpha.3.278+a365e02e018731-dirty" | |
Project: mml-e2e | |
Zone: us-central1-f | |
INSTANCE_GROUPS=e2e-minion-group | |
NODE_NAMES=e2e-minion-group-5f66 e2e-minion-group-ls90 | |
== Preparing node upgrade (to v1.7.0-alpha.3.272+69ad6addcc5c25). == | |
== Ensuring that new Node base OS image matched the existing Node base OS image |
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/sh | |
set -o nounset | |
migrate_if_needed() { | |
export TARGET_STORAGE="$1" | |
export TARGET_VERSION="$2" | |
echo "Migrating to ${TARGET_STORAGE}/${TARGET_VERSION}" | |
t0=$(date +%s) | |
/usr/local/bin/migrate-if-needed.sh >> /var/log/migrate.log 2>&1 |
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
[ | |
["f", "Show next/latest diffs", "setProposedRevRanges()"], | |
["n", "Next unreviewed file", "nextUnreviewedFile()"], | |
["p", "Previous unreviewed file", "prevUnreviewedFile()"], | |
["shift+n", "Next changed file", "nextChangedFile()"], | |
["shift+p", "Previous changed file", "prevChangedFile()"], | |
[null, "Next visible file", "nextVisibleFile()"], | |
[null, "Previous visible file", "prevVisibleFile()"], | |
[null, "Next file", "nextFile()"], |
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
STEP: Waiting for federation-apiserver to be ready | |
STEP: federation-apiserver is ready | |
STEP: Building a namespace api object | |
STEP: Waiting for a default service account to be provisioned in namespace | |
[BeforeEach] [k8s.io] [Feature:Federation] Federated Services | |
/usr/local/google/home/mml/gocode/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/test/e2e/federated-service.go:121 | |
Jun 23 10:36:14.081: INFO: Creating cluster object: federation-e2e-gce-us-central1-f (https://104.197.36.79, secret: federation-e2e-gce-us-central1-f) | |
Jun 23 10:36:14.121: INFO: Successfully created cluster object: federation-e2e-gce-us-central1-f (https://104.197.36.79, secret: federation-e2e-gce-us-central1-f) | |
STEP: Obtaining a list of all the clusters | |
Jun 23 10:36:14.160: INFO: 1 clusters registered, waiting for 1 |
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
% rake -t rails:freeze:gems | |
(in /Users/mml/s/nq) | |
** Invoke rails:freeze:gems (first_time) | |
** Execute rails:freeze:gems | |
Freezing to the gems for Rails 2.3.5 | |
rm -rf vendor/rails | |
mkdir -p vendor/rails | |
cd vendor/rails | |
ERROR: While executing gem ... (Gem::FilePermissionError) | |
You don't have write permissions into the /opt/local/lib/ruby/gems/1.8 directory. |
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
test: | |
python fiddle.py | |
ruby fiddle.rb |
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 | |
# See http://github.com/mml/needy for a new project based on this script. | |
# Script to let me know which projects are getting a bit stale. | |
# | |
# Sample output: | |
# flickr: 379.8 hours | |
# ol: 219.6 hours | |
# lj: 65.4 hours |
NewerOlder