Check this out on Dev.to
- How to handle SSH keys with ec2-github actions https://zellwk.com/blog/github-actions-deploy/
- SSH_PRIVATE_KEY
- HOST_NAME / IP_ADDRESS
import os | |
import sys | |
import io | |
import tarfile | |
import urllib.request | |
ARCHIVE_URL = 'http://d.pr/f/YqS5+' | |
#!/usr/bin/env python3 | |
# convert json to yaml | |
# http://pyyaml.org/wiki/PyYAMLDocumentation | |
# python3 json2yaml.py < ~/code/manpow/moneybug/mbuploader/support/offices.json | |
# gist https://gist.github.com/noahcoad/46909253a5891af3699580b8f17baba8 | |
import yaml, json, sys | |
sys.stdout.write(yaml.dump(json.load(sys.stdin))) |
Questions are not from any actual exam!!! | |
Q: Create a job that calculates pi to 2000 decimal points using the container with the image named perl | |
and the following commands issued to the container: ["perl", "-Mbignum=bpi", "-wle", "print bpi(2000)"] | |
Once the job has completed, check the logs to and export the result to pi-result.txt. | |
Solution: |
Check this out on Dev.to