Open Terminal and run:
sudo rm -rf "/Library/Sophos Anti-Virus"| #!/bin/bash | |
| # Run this from Terminal in macOS Recovery Mode. | |
| # Recovery Mode: hold Cmd+R (Intel) or Power button (Apple Silicon) at boot, | |
| # then open Utilities > Terminal. | |
| set -e | |
| VOLUME="/Volumes/Macintosh HD" | |
| # If your main volume has a different name, update the line above. |
| #!/bin/bash | |
| # Dependencies: | |
| # - athena-cli - https://github.com/justmiles/athena-cli | |
| # - aws cli | |
| # Prerequisites: | |
| # - AWS ALB Access log s3 bucket | |
| # - AWS ALB Access logs created | |
| # - Update the variables below to match your environment |
| "use strict"; | |
| const nodemailer = require("nodemailer"); | |
| // async..await is not allowed in global scope, must use a wrapper | |
| async function main() { | |
| // Generate test SMTP service account from ethereal.email | |
| // Only needed if you don't have a real mail account for testing | |
| let testAccount = await nodemailer.createTestAccount(); | |
| // create reusable transporter object using the default SMTP transport |
| # enable terraform autocomplete for zsh | |
| # complete -o nospace -C /usr/local/bin/terraform terraform | |
| # alias execute terraform.sh wrapper in current directory | |
| alias t="./terraform.sh" | |
| _t() { | |
| NAMESPACE_DIR=$(ls | grep namespaces) |
| export AWS_ORG_CONFIG_FILE_PREFIX=config- | |
| export AWS_ORG_CREDENTIALS_FILE_PREFIX=credentials- | |
| awsorg() { | |
| local org=$1 | |
| if [[ -z "$org" ]]; then | |
| unset AWS_ORG | |
| unset AWS_CONFIG_FILE | |
| unset AWS_SHARED_CREDENTIALS_FILE |
| # This is an example goreleaser.yaml file with some sane defaults. | |
| # Make sure to check the documentation at http://goreleaser.com | |
| project_name: {{ .ProjectName }} | |
| builds: | |
| - env: | |
| - CGO_ENABLED=0 | |
| goos: | |
| - darwin | |
| - windows |
| awssso() { | |
| # requires: | |
| # - aws cli v2 | |
| if [[ -z "$AWS_CONFIG_FILE" ]] | |
| then | |
| local AWS_CONFIG_FILE=~/.aws/config | |
| fi | |
| export AWS_PROFILE=${1} |
| FROM python:3.6 | |
| WORKDIR /app | |
| ADD . /app | |
| RUN pip install -r requirements.txt | |
| RUN python setup.py build_ext --inplace | |
| ENTRYPOINT ["python"] | |
| CMD ["app.py"] |