Exam Objectives
1 Compare authentication methods
1a Describe authentication methods
1b Choose an authentication method based on use case
1c Differentiate human vs. system auth methods
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
| #!venv/bin/python3 | |
| import datetime | |
| import smtplib | |
| import time | |
| import requests | |
| import sys | |
| import random | |
| from bs4 import BeautifulSoup |
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
| --- | |
| # Example of constructing & appending to a JSON file | |
| # Required JSON payload: | |
| # | |
| # [ | |
| # { | |
| # "id": "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa", | |
| # "type": "host" | |
| # }, |
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
| find . type f -name '*.original_extension' -execdir /bin/zsh -c '/usr/bin/echo $0 ${0/original_extension/new_extension}' {} \; | |
| ###################################################################### | |
| ## Before: ./01-Part 1.original_extension ## | |
| ## After: ./01-Part 1.original_extension ./01-Part 1.new_extension ## | |
| ###################################################################### |
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/zsh | |
| argocd app create controller \ | |
| --project default \ | |
| --sync-policy automatic \ | |
| --repo https://github.com/codefresh-contrib/gitops-certification-examples \ | |
| --path ./secret-app/manifests \ | |
| --dest-server https://kubernetes.default.svc \ | |
| --dest-namespace kube-system |
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
| from github import Github | |
| from tabulate import tabulate | |
| from datetime import datetime | |
| """ | |
| This script produces table with all merged pull requests within a certain time period. It is useful for configuration change auditing. | |
| """ | |
| github_token = '' | |
| github_api_url = 'https://githubenterprise.service.com/api/v3' |
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/zsh | |
| DESTINATION=dtrqa.docker.service.com | |
| NAMESPACE=enablement | |
| copy_to_reg () { | |
| echo ------------------------------------------ | |
| echo Copying $2 from $1 to Internal Registry... | |
| skopeo --insecure-policy copy --dest-tls-verify=false docker://$1/$2 docker://${DESTINATION}/${NAMESPACE}/${2##[a-z]*/} | |
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
| Intel Wifi 6 AX200 speed problems. Fix: | |
| 1. | |
| /etc/modprobe.d/iwlmvm.conf | |
| options iwlmvm power_scheme=1 | |
| 2. | |
| /etc/modprobe.d/iwlwifi.conf |
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/zsh | |
| find . -type f -name '*.m4a' -execdir /bin/zsh -c '/usr/bin/ffmpeg -i $0 -c:v copy -c:a libmp3lame -q:a 4 ${0/m4a/mp3}' {} \; |
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
| UklGRuBXBwBXQVZFZm10IBAAAAABAAEAgLsAAAB3AQACABAAZGF0YVpUBwCx/5T/O/9P/3j/mP90 | |
| /3b/ZP9G/zL/R/9S/4z/n/+4/7n/tf+d/yH/dv6i/e38avwp/B79KP/zAPcAs//E/tX+Lf+e/7wA | |
| EwOKBtwIFQnCBxkI4AksDToPBREREb8N0gWe9TLqouln9IT9H/zg9ZH11PJZ7ozkHds95EXziv8a | |
| 93/yA/R990f5j/mgCmcdfCMoHL0USxYXFr4LGPVb9B8AIQjG/U/4WQFpCsMAjPMy8QUFrBXBFM0L | |
| BA1PEf0SSQRL+mAA1Q2eEpEQZQ3EBxf2G+GZ2ezp0Ph7+sPwmu5F6YXfjMpKwfLNPOpn8pDooujU | |
| 7if6AP3dB9glAjgwO88uHC/NNF8yrRsnDbYTsR5rFvj8y/M++r76o+4B42ro0gKDDmcHZf8R/7D/ | |
| UvlE6JrrmfyCC6AMyQroCzMIZ/a95bTuMAYOD4ME7vhP9sXw999jxsbBMNci8GPos+HJ4ebq6PRL | |
| +U4PBCl1MKorWCRdK2su9CNVC/4LTRntJm0ZwQoQBq4I+/+f9XDt1/3iEVIXUQ+rB078evHO3uLY | |
| ieZG9XP8XgG6CMcUcxAu/gbqVOgi7zD41vqU/ef6tfWO7dbZGs9AzSDVgeen+0f+A/Ma9kb6fgdz | |
| BZEMKyHENE4/VDiEM8gwvCuNGrwScRiPGeYJN/ed9igAR/gV6j7llvcyDEYHvey739vkYvZb+Jvr |