start new:
tmux
start new with session name:
tmux new -s myname
#!/bin/sh | |
if [ "$EUID" -ne 0 ]; then | |
echo -e "\nPlease run as root\neg. sudo $0 \n" | |
exit | |
fi | |
GITHUB_USERNAME="ebal" | |
cd `mktemp -d` |
#!/usr/bin/env bash | |
# -d 9 -type d | |
# -d 6 -type d | |
# -d 3 -type d | |
export APPS="${HOME}/.local/apps" | |
export PATH="${APPS}:${PATH}" | |
export JQ_URL="https://github.com/stedolan/jq/releases/download/jq-1.6/jq-osx-amd64" | |
export JQ_PATH="${APPS}/jq-osx-amd64" |
minikube stop; minikube delete && | |
docker stop $(docker ps -aq) && | |
rm -rf ~/.kube ~/.minikube && | |
sudo rm -rf /usr/local/bin/localkube /usr/local/bin/minikube && | |
launchctl stop '*kubelet*.mount' && | |
launchctl stop localkube.service && | |
launchctl disable localkube.service && | |
sudo rm -rf /etc/kubernetes/ && | |
docker system prune -af --volumes |
# Define where to store the generated certs and metadata. | |
DIR="$(pwd)/tls" | |
# Optional: Ensure the target directory exists and is empty. | |
rm -rf "${DIR}" | |
mkdir -p "${DIR}" | |
# Create the openssl configuration file. This is used for both generating | |
# the certificate as well as for specifying the extensions. It aims in favor | |
# of automation, so the DN is encoding and not prompted. |
This is a short post that explains how to write a high-performance matrix multiplication program on modern processors. In this tutorial I will use a single core of the Skylake-client CPU with AVX2, but the principles in this post also apply to other processors with different instruction sets (such as AVX512).
Matrix multiplication is a mathematical operation that defines the product of
version: '2' | |
services: | |
api: | |
volumes: | |
- "nfsmount:${CONTAINER_DIR}" | |
volumes: | |
nfsmount: | |
driver: local | |
driver_opts: |
#cloud-config | |
# Write a skeleton config file to be replaced by a random password | |
# Skeleton config file is: | |
#{ | |
# "server_port":8000, | |
# "local_port":1080, | |
# "password":"__PASSWORD__", | |
# "timeout":600, | |
# "method":"chacha20" |
#!/bin/bash | |
## **Updates to this file are now at https://github.com/giovtorres/kvm-install-vm.** | |
## **This updated version has more options and less hardcoded variables.** | |
# Take one argument from the commandline: VM name | |
if ! [ $# -eq 1 ]; then | |
echo "Usage: $0 <node-name>" | |
exit 1 | |
fi |
PID USER TIME COMMAND | |
1 root 0:01 init [5] | |
2 root 0:00 [kthreadd] | |
3 root 0:00 [ksoftirqd/0] | |
4 root 0:00 [kworker/0:0] | |
5 root 0:00 [kworker/u:0] | |
6 root 0:00 [khelper] | |
7 root 0:00 [netns] | |
8 root 0:00 [sync_supers] | |
9 root 0:00 [bdi-default] |