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 -e | |
| # | |
| # Copyright (C) 2015 ScyllaDB | |
| # Modified by Itay Adler to fit for ComboAMI DSE setup. | |
| print_usage() { | |
| echo "dse-raid-setup --disks /dev/hda,/dev/hdb... --raiddev /dev/md0 --update-fstab" | |
| echo " --disks specify disks for RAID" | |
| echo " --raiddev MD device name for RAID" | |
| echo " --update-fstab update /etc/fstab for RAID" |
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
| version: '2.1' | |
| services: | |
| api: | |
| build: | |
| context: ./api/ | |
| command: /usr/app/node_modules/.bin/nodemon index.js | |
| volumes: | |
| - ./api/:/usr/app | |
| - /usr/app/node_modules |
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/sh | |
| set -e | |
| result=$(cat $1 | jq --arg examplekey 'examplevalue' '.dependencies |= {"newkey": $examplekey} + .') | |
| echo $result | jq . | cat > $1 | |
| #for a given object with key 'dependencies', this will add to the object the key "newkey" with value "examplevalue" |
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
| const puppeteer = require("puppeteer-core"); | |
| let cdpPort = null; | |
| let browser = null; | |
| function browserLaunchHandler(browser = {}, options) { | |
| let remoteDebuggingPortArg = options.filter((arg) => | |
| arg.includes("--remote-debugging-port") | |
| ); | |
| //note(itay): When we run using `cypress open-ct`, we will use a chromium browser | |
| //so the args will include the cdpPort in remote-debugging-port, so I extract it from |
OlderNewer