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
| package main | |
| import ( | |
| "context" | |
| "encoding/json" | |
| "errors" | |
| "strconv" | |
| "github.com/aws/aws-sdk-go/aws/awserr" |
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 | |
| # This enables scanOnPush for all AWS ECR repositories | |
| repositories=`aws ecr describe-repositories --query "repositories[*].repositoryName" --output text` | |
| for r in ${repositories}; do | |
| echo repository: ${r} | |
| aws ecr put-image-scanning-configuration --repository-name ${r} --image-scanning-configuration scanOnPush=true | |
| done |
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
| complete -W "$(echo `cat ~/.ssh/known_hosts | cut -f 1 -d ' ' | sed -e s/,.*//g | uniq | grep -v "\["`;)" ssh |
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 hudson.model.* | |
| import hudson.maven.* | |
| import hudson.tasks.* | |
| for (item in Hudson.instance.items) { | |
| if (item instanceof hudson.maven.MavenModuleSet) { | |
| println("JOB : "+item.name); | |
| if (item.getUserConfiguredGoals() != null && item.getUserConfiguredGoals().contains("install")) { | |
| println("Deploy : "+item.name); | |
| goals = item.getUserConfiguredGoals() |