How to run against a standard Node JS Docker image:
docker run -it --rm -v "$PWD":/usr/src/app -w /usr/src/app node node-js-print-ca-certs.js
Example output:
| #! /usr/bin/env bash | |
| # | |
| # Run parallel commands and fail if any of them fails. | |
| # | |
| set -eu | |
| pids=() | |
| for x in 1 2 3; do |
| apiVersion: 1 | |
| providers: | |
| - name: 'Prometheus' | |
| orgId: 1 | |
| folder: '' | |
| type: file | |
| disableDeletion: false | |
| editable: true | |
| options: |
| #!/usr/bin/python | |
| import pickle | |
| from collections import defaultdict | |
| from collections import OrderedDict | |
| import sys | |
| def checkDict(inputData): | |
| return (type(inputData) == dict or type(inputData) == defaultdict\ | |
| or type(inputData) == OrderedDict) |
| object icm { | |
| // Types | |
| type Player = Int | |
| type Chips = Double | |
| type Stacks = Map[Player, Chips] | |
| type Rank = Int | |
| type Money = Double |
| #!/usr/bin/python | |
| import pickle | |
| from collections import defaultdict | |
| from collections import OrderedDict | |
| import sys | |
| def checkDict(inputData): | |
| return (type(inputData) == dict or type(inputData) == defaultdict\ | |
| or type(inputData) == OrderedDict) |
| ssh-keygen -t rsa -b 4096 -m PEM -f jwtRS256.key | |
| # Don't add passphrase | |
| openssl rsa -in jwtRS256.key -pubout -outform PEM -out jwtRS256.key.pub | |
| cat jwtRS256.key | |
| cat jwtRS256.key.pub |
| #!/bin/bash | |
| # https://cloud.google.com/compute/docs/faq#find_ip_range | |
| # nslookup -q=TXT _cloud-netblocks.googleusercontent.com 8.8.8.8 | |
| myarray=() | |
| for LINE in `dig txt _cloud-netblocks.googleusercontent.com +short | tr " " "\n" | grep include | cut -f 2 -d :` | |
| do | |
| myarray+=($LINE) | |
| for LINE2 in `dig txt $LINE +short | tr " " "\n" | grep include | cut -f 2 -d :` |