This file contains 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
$ mend iac | |
Initializing: Done | |
Scanning: Done | |
[Retrieving: IaC misconfigurations] ◢ | |
Scanned to Organization: Aurora Innovation Unified Platform | Application: My IAC Application, Project: iac | |
Detected 18 Misconfigurations (CRITICAL: 0, HIGH: 0, MEDIUM: 4, LOW: 14, UNKNOWN: 0) | |
+----------+------------+---------+----------+----------------------+----------------------+------------+----------+ | |
| FILE | PROVIDER | SERVICE | SEVERITY | DETAILS | RESOLUTION | START LINE | END LINE | | |
+----------+------------+---------+----------+----------------------+----------------------+------------+----------+ |
This file contains 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
11:55 $ snyk container test nginx:stable-bullseye --severity-threshold=critical | |
Testing nginx:stable-bullseye... | |
✗ Critical severity vulnerability found in zlib/zlib1g | |
Description: Integer Overflow or Wraparound | |
Info: https://security.snyk.io/vuln/SNYK-DEBIAN11-ZLIB-6008961 | |
Introduced through: zlib/zlib1g@1:1.2.11.dfsg-2+deb11u2 | |
From: zlib/zlib1g@1:1.2.11.dfsg-2+deb11u2 |
This file contains 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
/** | |
* A simple Google Apps Script that makes a channel "read-only" by | |
* intercepting all messages and removing them if a user isn't in the allowedUsers list | |
* latest version here: https://gist.github.com/O5ten/830d6939bd6194501d36df3b2fcc7972 | |
*/ | |
const token = '<TOKEN>'; //Bot token | |
const mattermostUrl = '<Mattermost-URL>'; | |
const allowedUsers = ['<username>'] | |
const getOptions = { | |
'method': 'get', |
This file contains 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
~/git/backstage$ yarn clean && yarn install | |
yarn run v1.22.1 | |
$ backstage-cli clean && lerna run clean | |
lerna notice cli v3.22.1 | |
lerna info Executing command in 56 packages: "yarn run clean" | |
lerna WARN ECYCLE Dependency cycles detected, you should fix these! | |
lerna WARN ECYCLE @backstage/backend-common -> @backstage/cli -> @backstage/backend-common | |
lerna WARN ECYCLE @backstage/core-api -> (nested cycle: @backstage/backend-common -> @backstage/cli -> @backstage/backend-common) -> @backstage/core -> @backstage/core-api | |
lerna WARN ECYCLE @backstage/dev-utils -> @backstage/test-utils -> (nested cycle: @backstage/core-api -> (nested cycle: @backstage/backend-common -> @backstage/cli -> @backstage/backend-common) -> @backstage/core -> @backstage/core-api) -> @backstage/dev-utils | |
lerna WARN ECYCLE @backstage/integration -> (nested cycle: @backstage/dev-utils -> @backstage/test-utils -> (nested cycle: @backstage/core-api -> (nested cycle: @backstage/backend-common -> @backstage/cli -> @backstage/backend-common) -> @back |
This file contains 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
def pass = [ | |
"| Övning | Vikt |\\n| ---------- | :-------------: |\\n| Marklyft | 3 set x 6–8 reps |\\n| chins | 3 set x 8–10 reps |\\n| Militärpress | 3 set x 8–10 reps |", | |
"| Övning | Vikt |\\n| ---------- | :-------------: |\\n| Knäböj | 3 set x 8–10 reps |\\n| Bänkpress | 3 set x 8–10 reps |\\n| Chins | 3 set x 8–10 reps |" | |
] | |
def message = pass[(env.BUILD_ID as Integer) % pass.size()] | |
pipeline { |
This file contains 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
Started by user Mikael Östberg | |
Obtained Jenkinsfile from git https://github.com/O5ten/kickass-recipes.git | |
Running in Durability level: MAX_SURVIVABILITY | |
[Pipeline] Start of Pipeline | |
[Pipeline] node | |
Running on Jenkins in /var/lib/jenkins/workspace/gustav/kickass | |
[Pipeline] { | |
[Pipeline] stage | |
[Pipeline] { (Declarative: Checkout SCM) | |
[Pipeline] checkout |
This file contains 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
pipeline { | |
parameters { | |
string(name: 'stuffToCheck', defaultValue: 'Test Failure!,Some Other Failure!', desription: 'CSV of stuff to check in the build-log') | |
} | |
stages { | |
stage('The thing'){ | |
steps { | |
echo 'Test Failure!' | |
echo 'Some Other Failure!' | |
} |
This file contains 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
pipeline { | |
agent 'linux' | |
stages { | |
stage('Build ') { | |
steps { | |
sh 'mvn compile' | |
} | |
} | |
stage('Run Tests') { | |
steps { |
This file contains 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.* | |
def isFolder = { it.class.canonicalName == 'com.cloudbees.hudson.plugins.folder.Folder' } | |
def isSandbox = { "sandbox" == it.fullName } | |
def deleteChildren = { | |
it.getItems().collect { item -> | |
def deletedName = item.fullName | |
item.delete() | |
"${deletedName} deleted" |
This file contains 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
//Put in $JENKINS_HOME/userContent/FolderIconModificator.js | |
//Using the Simple Theme Plugin you then add /userContent/FolderIconModificator.js as a JavaScript URL | |
(function(){ | |
setTimeout(function(){ | |
jQuery('.job-status-').map(function(i, job){ | |
return job.id; | |
}.bind(this)).each(function(i, imageUrl){ | |
jQuery.ajax({ | |
type: "HEAD", | |
async: true, |
NewerOlder