This file contains hidden or 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
# START GUIDE | |
# Make sure you copy the whole lines into Terminal. Each command is on one line. | |
# Open Terminal and become root | |
sudo -s | |
# Update system | |
dnf upgrade |
This file contains hidden or 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
cat async.py | |
import time, logging, os, asyncio, aiohttp | |
from azure.storage.blob import ContentSettings | |
from azure.storage.blob import BlockBlobService | |
block_blob_service = BlockBlobService(account_name='', | |
account_key='') | |
class Uploader: | |
def __init__(self, links, concurrency=2, verbose=True): | |
self.links = links | |
self.queue = asyncio.Queue() |
This file contains hidden or 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
# How to encrypt/decrypt your text/blob secret with AWS KMS with AWS cli | |
KEY_ID=alias/my-key | |
SECRET_BLOB_PATH=fileb://my-secret-blob | |
SECRET_TEXT="my secret text" | |
ENCRYPTED_SECRET_AS_BLOB=encrypted_secret_blob | |
DECRYPTED_SECRET_AS_BLOB=decrypted_secret_blob # Result of decrypt-blob target | |
encrypt-text: |
This file contains hidden or 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 | |
ambari-server stop | |
ambari-server reset | |
ambari-agent stop | |
service mysqld stop | |
service postgresql stop | |
python /usr/lib/python2.6/site-packages/ambari_agent/HostCleanup.py |