Skip to content

Instantly share code, notes, and snippets.

View O5ten's full-sized avatar

Mikael Östberg O5ten

View GitHub Profile
~/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
@O5ten
O5ten / readonlybot.js
Last active April 14, 2023 08:05
Mattermost-readonly-apps-script
/**
* 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',
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
$ 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 |
+----------+------------+---------+----------+----------------------+----------------------+------------+----------+