$ tree
.
├── README.md
├── babel.config.js
├── lib
├── package.json
└── src
├── app.js
└── lib.js
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
#!/usr/bin/env bash | |
set -eo pipefail | |
## | |
## extract .netrc creds inspired by https://bugs.launchpad.net/python-jenkins/+bug/941400 | |
## | |
## usage: | |
## netrc_credentials example.com # // 'myuser mypassword' | |
## netrc_credentials example.com username # // 'myuser' | |
## netrc_credentials example.com password # // 'mypassword' |
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
'use strict' | |
const debug = require('debug') | |
;[ | |
'bar', | |
'foo', | |
'foo:error', | |
'foo:moduleA', | |
'foo:error:moduleA', |
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
'use strict' | |
const express = require('express') | |
const app = express() | |
app.get('/', (req, res) => { | |
res.send('index') | |
}) | |
app.get('/foo', (req, res) => { |
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
FROM selenium/standalone-chrome:latest | |
ARG NODE_VERSION=lts/dubnium | |
ENV NODE_VERSION=$NODE_VERSION \ | |
NVM_DIR=/opt/nvm | |
USER root | |
RUN mkdir -p $NVM_DIR \ | |
&& curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh \ | |
| PROFILE=/dev/null bash \ |
curl -sS "https://demo.backstage.io/api/catalog/entities/by-query" \
--request GET \
--get \
--data filter=kind=component \
--data limit=10 \
| jq --raw-output '
.items[]
|[
(.kind + ":" + .metadata.namespace + "/" + .metadata.name|ascii_downcase),
OlderNewer