I had trouble running the Datadog Agent (v6) on my Raspberry Pi. Here's what I did to get it running.
- Installing Go (skip if you already have Go 1.9+)
- Install/build the Datadog Agent
I had trouble running the Datadog Agent (v6) on my Raspberry Pi. Here's what I did to get it running.
#!/usr/local/bin/python3 | |
import subprocess | |
import shlex | |
import json | |
# function to find the resolution of the input video file | |
def findVideoMetada(pathToInputVideo): | |
cmd = "ffprobe -v quiet -print_format json -show_streams" | |
args = shlex.split(cmd) | |
args.append(pathToInputVideo) |
#https://gorails.com/setup/ubuntu/14.04 | |
sudo apt-get update | |
sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties | |
sudo apt-get install libgdbm-dev libncurses5-dev automake libtool bison libffi-dev | |
curl -L https://get.rvm.io | bash -s stable | |
source ~/.rvm/scripts/rvm | |
echo "source ~/.rvm/scripts/rvm" >> ~/.bashrc | |
rvm install 2.1.2 | |
rvm use 2.1.2 --default |
from Crypto.Cipher import AES | |
from Crypto.Random import get_random_bytes | |
hdr = b'To your eyes only' | |
plaintext = b'Attack at dawn' | |
key = b'Sixteen byte key' | |
nonce = get_random_bytes(11) | |
cipher = AES.new(key, AES.MODE_CCM, nonce) | |
cipher.update(hdr) | |
msg = nonce, hdr, cipher.encrypt(plaintext), cipher.digest() |