Skip to content

Instantly share code, notes, and snippets.

Mac setup scripts

Brew

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Setup shell

brew install zsh
brew install wget
@nicholaslck
nicholaslck / install-commands-amazon-linux2.sh
Created July 16, 2020 16:49
Amazon Linux2 Basic Install Commands
#!/bin/bash
# Install node 10
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash
. ~/.nvm/nvm.sh
nvm install 10.21
nvm use 10.21
node -e "console.log('Running Node.js ' + process.version)"
# Install Git
# To execute this docker-compose yml file use `docker-compose -f <file_name> up`
# Add the `-d` flag at the end for detached execution
version: "3"
networks:
selenium-network:
services:
selenium-hub:
image: selenium/hub:3.141.59-20200409
container_name: selenium-hub
@nicholaslck
nicholaslck / uninstall-selenium-grid-on-docker.sh
Created April 23, 2020 09:08
Shell script for uninstall selenium grid from docker. Selenium grid must be installed by script install-selenium-grid-on-docker.sh
#!/bin/bash
SNAPSHOT="3.141.59-20200409"
docker stop selenium-hub \
selenium-chrome-node \
selenium-firefox-node \
selenium-opera-node
docker rm selenium-hub \
@nicholaslck
nicholaslck / install-selenium-grid-on-docker.sh
Last active April 23, 2020 09:07
Shell script to install selenium grid on docker.
#!/bin/bash
SNAPSHOT="3.141.59-20200409"
docker network create selenium-grid
docker run -d -p 4444:4444 --net selenium-grid --name selenium-hub \
--health-cmd='/opt/bin/check-grid.sh --host 0.0.0.0 --port 4444' \
--health-interval=15s --health-timeout=30s --health-retries=5 \
selenium/hub:$SNAPSHOT