- Make sure you have a modern-ish version of Node.js installed.
- Type
npx https://gist.github.com/kfox/1280c2f0ee8324067dba15300e0f2fd3 - Connect to it from a client, e.g.
netcator similar:nc localhost 9000
This file contains hidden or 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
| #!/bin/bash | |
| # | |
| # This script supports the following environment vars: | |
| # - WEB_MEMORY: the amount of memory each | |
| # process is expected to consume, in MB. | |
| # - NODEJS_V8_ARGS: any additional args to | |
| # pass to the v8 runtime. | |
| # Replace this with the path to your main startup file. | |
| # The `--color` flag ensures that any log output is |
This file contains hidden or 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 node:6-alpine | |
| RUN apk update | |
| RUN apk add --no-cache --virtual .gyp \ | |
| python \ | |
| make \ | |
| g++ | |
| COPY package.json /tmp/package.json | |
| RUN cd /tmp && yarn | |
| RUN apk del .gyp |
This file contains hidden or 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
| // We'll use Puppeteer is our browser automation framework. | |
| const puppeteer = require('puppeteer'); | |
| // This is where we'll put the code to get around the tests. | |
| const preparePageForTests = async (page) => { | |
| // Pass the User-Agent Test. | |
| const userAgent = 'Mozilla/5.0 (X11; Linux x86_64)' + | |
| 'AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.39 Safari/537.36'; | |
| await page.setUserAgent(userAgent); |
This file contains hidden or 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
| https://filedn.com/lvm6y2PtpjGHDoBBMATwwLQ/rhel-atomic-installer-7.6.1.1-1.x86_64.iso |
OlderNewer