Skip to content

Instantly share code, notes, and snippets.

@pshynin
pshynin / compose.yaml
Created January 24, 2019 21:40
Example of the compose file to create selenium grid
# docker-compose yml file use `docker-compose -f <file_name> up`
# Add the `-d` flag at the end for detached execution
# Jenkins should use `docker-compose -f jenkins/Compose.yaml up -d && docker-compose -f jenkins/Compose.yaml scale chrome=4 firefox=4`
version: '2'
services:
firefox:
image: selenium/node-firefox-debug:3.14.0-europium
volumes:
- /dev/shm:/dev/shm
- /Users/pshynin/Downloads:/home/seluser/Downloads
@pshynin
pshynin / .add_header.sh
Created March 7, 2018 18:28
Add header to the file
#!/bin/bash
for d in $(find -name *.java)
do
if ! grep -q 'YOUR HEADER TEXT HERE' $d
then
cat HEADER_HERE.txt $d >$d.new && mv $d.new $d
fi
done
@pshynin
pshynin / README.md
Created March 7, 2018 18:24 — forked from hofmannsven/README.md
My simply Git Cheatsheet