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
| echo "Install Golang" | |
| curl -o go1.11.linux-amd64.tar.gz https://dl.google.com/go/go1.11.linux-amd64.tar.gz | |
| sudo tar -xvf go1.11.linux-amd64.tar.gz | |
| sudo mv go /usr/local | |
| rm go1.11.linux-amd64.tar.gz | |
| echo "export GOROOT=/usr/local/go" >> /home/ubuntu/.bashrc |
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
| #!/usr/bin/env bash | |
| set -e | |
| echo "This script will provision AWS SSM that will be used for deployments.." | |
| configure() { | |
| echo | |
| read -rp "Set value: $1 (y/n): " yn |
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 ( | |
| "errors" | |
| "fmt" | |
| "io/ioutil" | |
| "os" | |
| "strings" | |
| "github.com/aws/aws-lambda-go/events" | |
| "github.com/aws/aws-lambda-go/lambda" | |
| "github.com/aws/aws-sdk-go/aws/session" |
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
| // https://docs.aws.amazon.com/sdk-for-go/v1/developer-guide/handling-errors.html | |
| svc := s3.New(sess) | |
| resp, err := svc.GetObject(&s3.GetObjectInput{ | |
| Bucket: aws.String(os.Args[1]), | |
| Key: aws.String(os.Args[2]), | |
| }) | |
| if err != nil { | |
| // Casting to the awserr.Error type will allow you to inspect the error |
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
| #!/usr/bin/env bash | |
| # Courtesy of: https://www.cyberciti.biz/tips/linux-audit-files-to-see-who-made-changes-to-a-file.html | |
| auditctl -w /etc/passwd -p war -k password-file | |
| ausearch -f /etc/passwd -i |
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
| #!/usr/bin/env bash | |
| /var/ossec/bin/ossec-control start | |
| /var/ossec/bin/ossec-control stop | |
| /opt/isec/ens/threatprevention/bin/isectpdControl.sh stop | |
| /opt/isec/ens/esp/bin/isecespdControl.sh stop |
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
| #!/usr/bin/env bash | |
| openssl req -x509 -newkey rsa:4096 -keyout server.key -out server.crt -days 365 -nodes |
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
| #!/usr/bin/env bash | |
| get-all() { | |
| if [[ -z $GITHUB_ACCESS_TOKEN ]]; then | |
| echo "ERROR: no GITHUB_ACCESS_TOKEN defined" | |
| exit 1 | |
| fi | |
| pages=(1 2 3 4 5 6 7 8) |
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
| #!/usr/bin/env bash | |
| docker ps -aq | xargs docker stop -f | |
| docker system prune -f | |
| docker network prune -f | |
| docker volume prune -f | |
| docker image prune -f | |
| docker images -aq | xargs docker image rm -f |
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
| #!/usr/bin/env bash | |
| GREP_STR="Copyright Veritone Corporation 2018. All rights reserved." | |
| LICENSE_HASH="# Copyright Veritone Corporation 2018. All rights reserved. | |
| # See LICENSE for more information. | |
| " | |
| LICENSE_SLASH="// Copyright Veritone Corporation 2018. All rights reserved. | |
| // See LICENSE for more information. | |
| " |