Skip to content

Instantly share code, notes, and snippets.

View elgalu's full-sized avatar

Leo Gallucci elgalu

View GitHub Profile
docker run --rm -ti --name zalenium -p 4444:4444 -p 5555:5555 -v $(which docker):/usr/bin/docker -v /var/run/docker.sock:/var/run/docker.sock -v /tmp/videos:/home/seluser/videos --privileged dosel/zalenium start --sauceLabsEnabled false
Docker binary already present, will use that one.
Docker version 1.12.3, build 6b644ec
Starting Nginx reverse proxy...
Starting Selenium Hub...
.14:01:53.275 INFO - Launching Selenium Grid hub
..14:01:53.753 INFO - binding de.zalando.tip.zalenium.servlet.live to /grid/admin/live/*
log4j:WARN No appenders could be found for logger (org.seleniumhq.jetty9.util.log).
log4j:WARN Please initialize the log4j system properly.

Intro

The plan is to create a pair of executables (ngrok and ngrokd) that are connected with a self-signed SSL cert. Since the client and server executables are paired, you won't be able to use any other ngrok to connect to this ngrokd, and vice versa.

DNS

Add two DNS records: one for the base domain and one for the wildcard domain. For example, if your base domain is domain.com, you'll need a record for that and for *.domain.com.

Different Operating Systems

@elgalu
elgalu / DOSEL_CLA.txt
Last active October 5, 2016 15:47
DOSEL_CLA
###Docker-selenium Individual Contributor License Agreement
Thank you for your interest in contributing to open source software projects (“Projects”) made available by elgalu/docker-selenium, elgalu/dosel, Dosel or its affiliates (“Dosel”). This Individual Contributor License Agreement (“Agreement”) sets out the terms governing any source code, object code, bug fixes, configuration changes, tools, specifications, documentation, data, materials, feedback, information or other works of authorship that you submit or have submitted, in any form and in any manner, to Dosel or docker-selenium in respect of any of the Projects (collectively “Contributions”). If you have any questions respecting this Agreement, please contact elgalu3@gmail.com.
You agree that the following terms apply to all of your past, present and future Contributions.
**Copyright License.** You hereby grant, and agree to grant, to Dosel or docker-selenium a non-exclusive, perpetual, irrevocable, worldwide, fully-paid, royalty-free, transfera
# For https://github.com/elgalu/docker-selenium/issues/113
FROM elgalu/selenium
USER root
ENV DEBIAN_FRONTEND=noninteractive \
DEBCONF_NONINTERACTIVE_SEEN=true
###############
# Install git #
# https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#exampleObject
responses:
"200":
description: |-
200 300 response
examples:
application/json: |-
{
"versions": [
{
@elgalu
elgalu / smaato.sh
Last active March 9, 2016 14:20
smaato jenkins setup ideas
# DDBB
docker run --name spx_db_$BUILD_ID -d \
-e MYSQL_ROOT_PASSWORD="password" \
-e MYSQL_DATABASE="our_mysql_ddbb" \
-e MYSQL_USER="user" \
-e MYSQL_PASSWORD="password" \
mysql
# SPX
docker run --name=spx_ui_$BUILD_ID -d --net=container:spx_db_$BUILD_ID \
@elgalu
elgalu / steps.md
Last active January 4, 2016 12:19 — forked from carlosmcevilly/gist:2221249
Fix commit author of last commit
  1. Fix your email address in git config
git config user.name "Your Name"
git config user.email "your@address.com"
git submodule foreach --recursive 'git config user.name "Your Name" && git config user.email "your@address.com"'
  1. Rebase
@elgalu
elgalu / set_xvfb.sh
Last active January 3, 2016 13:59
ChromeDriver headless testing on debian-based unix systemsBased on: https://www.exratione.com/2013/12/angularjs-headless-end-to-end-testing-with-protractor-and-selenium/
sudo apt-get install xvfb
sudo vim /etc/init.d/xvfb
sudo chown root:root /etc/init.d/xvfb
sudo chmod a+x /etc/init.d/xvfb
sudo update-rc.d xvfb defaults
# The Ubuntu server can now run software with a GUI in a headless mode
@elgalu
elgalu / README.md
Last active December 31, 2015 22:48
AngularJS apps testing through Karma and Protractor
@elgalu
elgalu / create_new_empty_file.ahk
Last active December 21, 2015 16:48
Hotkey to create a new empty file in Windows Explorer {Ctrl+Alt+N} using AutoHotKey. When in Windows Explorer this allows you to press {Ctrl+Alt+N} then type a file name that will be created in the current directory. In a similar way you use {Ctrl+Shift+N} to create a new folder. Tested on Windows 8 x64 (2012); AutoHotKey 1.1.11 (2013)
;------------------------------------------------------------------------------
;begin Create a new file with Ctrl+Alt+N keyboard shortcut in Windows Explorer
;------------------------------------------------------------------------------
SetTitleMatchMode RegEx
; Ctrl+Alt+N to create new empty file
#IfWinActive ahk_class CabinetWClass ;Windows Explorer
^!n::
ExplorerFocusFilePane()
Sleep 50
Send {End}