This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.1' | |
services: | |
arangodb: | |
image: arangodb:latest | |
restart: always | |
ports: | |
- 8529:8529 | |
environment: | |
ARANGO_ROOT_PASSWORD: root_arangodb | |
volumes: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from multiprocessing import Process | |
import pycurl | |
from io import BytesIO | |
URLS = [ | |
"https://releases.ubuntu.com/20.04.1/ubuntu-20.04.1-desktop-amd64.iso", | |
"https://repo.ialab.dsu.edu/ubuntu-releases/20.04.1/ubuntu-20.04.1-desktop-amd64.iso", | |
"http://ubuntu.osuosl.org/releases/20.04.1/ubuntu-20.04.1-desktop-amd64.iso", | |
"http://mirror.cs.jmu.edu/pub/ubuntu-iso/20.04.1/ubuntu-20.04.1-desktop-amd64.iso", | |
"http://mirror.metrocast.net/ubuntu-releases/focal/ubuntu-20.04.1-desktop-amd64.iso", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Dealing with Cancer and Personal Crises | |
a. Upheaval | |
b. When a Breath Becomes Air | |
c. The Breakthrough | |
Self-Control and Discipline | |
a. This Time Will Be Different: A Short Book on Making Permanent Changes | |
b. The Marshmallow Test: Mastering Self-Control | |
c. (long and technical, recommend over a few months) Thinking, Fast and Slow |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import argparse | |
import os | |
import tempfile | |
__copyright__ = """ | |
Copyright 2020 Cisco Systems, Inc. | |
Licensed under the Apache License, Version 2.0 (the "License"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.1' | |
services: | |
mongo: | |
image: mongo | |
restart: always | |
environment: | |
MONGO_INITDB_ROOT_USERNAME: USERNAME | |
MONGO_INITDB_ROOT_PASSWORD: PASSWORD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
curl -fLs -o /usr/local/bin/certstrap https://github.com/square/certstrap/releases/download/v1.2.0/certstrap-1.2.0-linux-amd64 | |
chmod +x /usr/local/bin/certstrap | |
# no passphrases | |
certstrap init --common-name "CertAuth" --expires "100 years" | |
certstrap request-cert --common-name collector | |
certstrap sign collector --CA CertAuth --expires "100 years" | |
cp out/cert.crt ./cert.pem |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Recvd connection from: ('127.0.0.1', 48344) | |
Incoming: | |
b'HEAD /_ping HTTP/1.1\r\nHost: 127.0.0.1:9090\r\nUser-Agent: Docker-Client/19.03.8 (linux)\r\n\r\n' | |
Sending 89 bytes to docker | |
Outgoing: | |
b'HTTP/1.1 200 OK\r\nApi-Version: 1.40\r\nCache-Control: no-cache, no-store, must-revalidate\r\nContent-Length: 0\r\nContent-Type: text/plain; charset=utf-8\r\nDocker-Experimental: false\r\nOstype: linux\r\nPragma: no-cache\r\nServer: Docker/19.03.8 (linux)\r\nDate: Fri, 14 Aug 2020 14:04:44 GMT\r\n\r\n' | |
Sending 280 bytes to ('127.0.0.1', 48344) | |
Out[1]: b'HTTP/1.1 200 OK\r\nApi-Version: 1.40\r\nCache-Control: no-cache, no-store, must-revalidate\r\nContent-Length: 0\r\nContent-Type: text/plain; charset=utf-8\r\nDocker-Experimental: false\r\nOstype: linux\r\nPragma: no-cache\r\nServer: Docker/19.03.8 (linux)\r\nDate: Fri, 14 Aug 2020 14:04:44 GMT\r\n\r\n' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Recvd connection from: ('127.0.0.1', 48344) | |
Incoming: | |
b'HEAD /_ping HTTP/1.1\r\nHost: 127.0.0.1:9090\r\nUser-Agent: Docker-Client/19.03.8 (linux)\r\n\r\n' | |
Sending 89 bytes to docker | |
Outgoing: | |
b'HTTP/1.1 200 OK\r\nApi-Version: 1.40\r\nCache-Control: no-cache, no-store, must-revalidate\r\nContent-Length: 0\r\nContent-Type: text/plain; charset=utf-8\r\nDocker-Experimental: false\r\nOstype: linux\r\nPragma: no-cache\r\nServer: Docker/19.03.8 (linux)\r\nDate: Fri, 14 Aug 2020 14:04:44 GMT\r\n\r\n' | |
Sending 280 bytes to ('127.0.0.1', 48344) | |
Out[1]: b'HTTP/1.1 200 OK\r\nApi-Version: 1.40\r\nCache-Control: no-cache, no-store, must-revalidate\r\nContent-Length: 0\r\nContent-Type: text/plain; charset=utf-8\r\nDocker-Experimental: false\r\nOstype: linux\r\nPragma: no-cache\r\nServer: Docker/19.03.8 (linux)\r\nDate: Fri, 14 Aug 2020 14:04:44 GMT\r\n\r\n' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import base64 | |
from time import sleep | |
import requests | |
import asyncio | |
from datetime import datetime | |
import hashlib | |
import socket | |
import random | |
import string | |
import json |