sudo apt-get purge docker-compose
sudo apt-get purge docker-ce
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
| # required: ffmpeg (e.g. from homebrew), terminal-notifier from https://github.com/alloy/terminal-notifier | |
| # you can schedule this with launchd to run e.g. weekly | |
| # Specify in seconds how long the script should record (default here is 1 hour). | |
| seconds=3600 | |
| # Date format for the recording file name | |
| DATE=`date "+%d-%m-%y_%H-%M"` | |
| # start ffmpeg recording |
Those are my personal notes on AWS Solution Architect certification preparation. Hope you find them usefull.
To pass AWS certification, you should have:
- Sound knowledge about most of the AWS services ( EC2, VPC, RDS, Cloudfront, S3, Route53 etc,)
- Hands on experience with AWS services.
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 | |
| volCheck() { | |
| check="true" | |
| count=1 | |
| # iterate through volumes, apply ec2 tags via tag() | |
| while [ "$check" = "true" ]; do | |
| vol=$(echo $blockDevices | awk -F ' ' -v item=$count '{print $item}') | |
| if [ -n "$vol" ]; then #if vol exists, then call tag function | |
| echo "vol $vol exists" | |
| tag $vol |
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
| import urllib | |
| # read in redis configuration file to parse ip addresses and ports | |
| def readIn(confFile): | |
| slotsPortArray = [] | |
| portRegex = re.compile("(?<=:)[0-9]*") # regex to match port in file | |
| slotsRegex = re.compile("[0-9]+-[0-9]+") # regex to match hash-slot in file | |
| addr = getIp() # ip address of machine | |
| for line in confFile: | |
| portMatch = re.search(portRegex, line) # match port to find dump file | |
| slotsMatch = re.search(slotsRegex, line) # match hash-slots, only masters have hash-slots declared in conf file |
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
| # this file is library named utils.py | |
| # in this article's example it will be imported | |
| # import our dependencies | |
| import boto3 # boto3 is an AWS SDK; the only library that needs installation | |
| import urllib # urllib for http requests | |
| import shutil # file and folder operations library | |
| import re # regex library | |
| def s3_upload(file_to_push, s3_path, bucket): | |
| s3 = boto3.resource('s3') |
exFAT support on macOS seems to have some bugs because my external drives with exFAT formatting will randomly get corrupted.
Disk Utility is unable to repair this at first, but the fix is this:
- Use
diskutil listto find the right drive id. - You want the id under the IDENTIFIER column, it should look like
disk1s1 - Run
sudo fsck_exfat -d <id from above>. egsudo fsck_exfat -d disk1s3 -dis debug so you'll see all your files output as they're processed.- Answer
YESif it gives you the promptMain boot region needs to be updated. Yes/No?
OlderNewer
