sudo add-apt-repository ppa:gnome-terminator
sudo apt-get update
sudo apt-get install terminatorTerminator should be setup as default now. Restart your terminal (shortcut: "Ctrl+Alt+T").
| #!/usr/bin/env python | |
| import sys | |
| import requests | |
| import json | |
| import argparse | |
| from awsauth import S3Auth | |
| aws_key = 'ACCESS_KEY' | |
| secret = 'SECRET_KEY' |
| #!/usr/bin/env python3 | |
| # | |
| # Dumb script to dump (some) of bcache status | |
| # Copyright 2013 Darrick J. Wong. All rights reserved. | |
| # | |
| # This file is part of Bcache. Bcache is free software: you can | |
| # redistribute it and/or modify it under the terms of the GNU General Public | |
| # License as published by the Free Software Foundation, version 2. | |
| # | |
| # This program is distributed in the hope that it will be useful, but WITHOUT |
| #!/usr/bin/env python | |
| # Benchmark transferring data, part of troubleshooting https://github.com/tensorflow/tensorflow/issues/6116 | |
| # | |
| # Take a independent workers communicating with b parameter shards | |
| # Each worker tries to add to variables stored on parameter server as fast as | |
| # possible. | |
| # | |
| # macbook | |
| # ps=1: 1.6 GB/s | |
| # ps=2: 2.6 GB/s |
| package main | |
| import ( | |
| "io" | |
| "log" | |
| "net" | |
| "time" | |
| ) | |
| func reader(r io.Reader) { |
For excessively paranoid client authentication.
Organization & Common Name: Some human identifier for this server CA.
openssl genrsa -des3 -out ca.key 4096
openssl req -new -x509 -days 365 -key ca.key -out ca.crt
| apiVersion: v1 | |
| data: | |
| config.json: | | |
| { | |
| "mode" : "sriov", | |
| "pfNetdevices": ["ib0"] | |
| } | |
| kind: ConfigMap | |
| metadata: | |
| name: rdma-devices |
| ### Create file called machine-config-daemon-force in /run ### | |
| ssh [email protected] sudo touch /run/machine-config-daemon-force | |
| ### Edit node annotations ### | |
| oc edit node <node-name> | |
| ### Check Annotations, change like below sample ### | |
| machineconfiguration.openshift.io/currentConfig: rendered-worker-ab4a1e7216bf3da2a5203f09c871b456 | |
| machineconfiguration.openshift.io/desiredConfig: rendered-worker-ab4a1e7216bf3da2a5203f09c871b456 | |
| machineconfiguration.openshift.io/reason: "" |
| ( | |
| set -x; cd "$(mktemp -d)" && | |
| OS="$(uname | tr '[:upper:]' '[:lower:]')" && | |
| ARCH="$(uname -m | sed -e 's/x86_64/amd64/' -e 's/\(arm\)\(64\)\?.*/\1\2/' -e 's/aarch64$/arm64/')" && | |
| KREW="krew-${OS}_${ARCH}" && | |
| curl -fsSLO "https://github.com/kubernetes-sigs/krew/releases/latest/download/${KREW}.tar.gz" && | |
| tar zxvf "${KREW}.tar.gz" && | |
| ./"${KREW}" install krew | |
| ) |