sudo apt install -y virt-manager
sudo mkdir -m 0700 -p /var/lib/libvirt/cloud-init
VM_NAME=myvm
USER_NAME=myuser
#!/usr/bin/env python3 | |
import socket | |
import argparse | |
import random | |
import select | |
import struct | |
import errno | |
import time | |
import threading |
#!/usr/bin/env bash | |
set -xeu | |
CA_DAYS=3650 | |
create_cert() { | |
local name="$1" | |
local days="$2" |
version: "3.4" | |
services: | |
node-exporter: | |
# Both "image" keys specify the same image. | |
# But using the hash ensures that the image is not tampered with. | |
#image: prom/node-exporter:v1.2.2 | |
image: prom/node-exporter@sha256:a990408ed288669bbad5b5b374fe1584e54825cde4a911c1a3d6301a907a030c | |
container_name: exporter | |
cap_drop: | |
- ALL |
proxy: | |
image: golang:1.14-alpine | |
ports: | |
- "8080:8080" | |
environment: | |
- DOWN_BW=34000 | |
- UP_BW=3400 | |
- UP_IF=eth0 | |
- DOWN_IF=ifb0 | |
volumes: |
#!/bin/bash -e | |
docker > /dev/null 2>&1 | |
if [ $? != 0 ]; then | |
echo "Please install Docker first" | |
exit 1 | |
fi | |
rm -rf conf | |
cat << EOF | base64 -d | tar zxf - |
I hereby claim:
To claim this, I am signing this object: