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),
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 \ |
$ 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
'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
'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
#!/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
#!/usr/bin/env bash -e | |
instance_name="throw-away-$(date +%s)" | |
region=us-west1-b | |
ssh_key_dir="$(mktemp -d)" | |
cleanup() { | |
echo "removing temp dir: $ssh_key_dir" | |
rm -rf "$ssh_key_dir" |
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
{ | |
"name": "knksmith57/lnc-identity-call-stack-error", | |
"description": "example setup for reproducing LnC #235", | |
"authors": [ | |
{ | |
"name": "Kyle Smith", | |
"email": "[email protected]" | |
} | |
], | |
"require": { |
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
❯ curl -i -X GET -H'Accept: application/atom+xml' https://github.com/nodejs/node/releases.atom | |
HTTP/1.1 200 OK | |
Server: GitHub.com | |
Date: Wed, 30 Mar 2016 18:32:14 GMT | |
Content-Type: application/atom+xml; charset=utf-8 | |
Transfer-Encoding: chunked | |
Status: 200 OK | |
Cache-Control: no-cache | |
Vary: X-PJAX | |
X-UA-Compatible: IE=Edge,chrome=1 |
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
❯ curl -i -X GET -H'Accept: application/json' https://api.github.com/repos/nodejs/node/releases | |
HTTP/1.1 200 OK | |
Server: GitHub.com | |
Date: Wed, 30 Mar 2016 18:29:48 GMT | |
Content-Type: application/json; charset=utf-8 | |
Content-Length: 5 | |
Status: 200 OK | |
X-RateLimit-Limit: 60 | |
X-RateLimit-Remaining: 45 | |
X-RateLimit-Reset: 1459365215 |
NewerOlder