Skip to content

Instantly share code, notes, and snippets.

from os import system
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.common.exceptions import NoSuchElementException
@joonvena
joonvena / docker-compose.yml
Created July 13, 2019 13:39
gerrit compose
version: '3.1'
services:
gerrit:
image: gerritcodereview/gerrit
environment:
- CANONICAL_WEB_URL=http://localhost:8100/
volumes:
- ./gerrit/:/var/gerrit/etc/
ports:
@joonvena
joonvena / gerrit.config
Created July 13, 2019 13:26
gerrit config
[gerrit]
basePath = git
canonicalWebUrl = http://localhost:8100/
serverId = 82a37111-69df-47e5-ac72-1f791a4cc093
[database]
type = h2
database = db/ReviewDB
[index]
type = LUCENE
[auth]
@joonvena
joonvena / httpd.conf
Created July 13, 2019 13:17
proxy conf
<VirtualHost *>
ServerName gerrit
ProxyRequests Off
ProxyVia Off
ProxyPreserveHost On
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
@joonvena
joonvena / httpd.conf
Created July 13, 2019 12:37
httpd conf
#
# This is the main Apache HTTP server configuration file. It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/2.4/> for detailed information.
# In particular, see
# <URL:http://httpd.apache.org/docs/2.4/mod/directives.html>
# for a discussion of each configuration directive.
#
# Do NOT simply read the instructions in here without understanding
# what they do. They're here only as hints or reminders. If you are unsure
@joonvena
joonvena / gerrit.config
Created July 13, 2019 12:35
gerrit config
[gerrit]
basePath = git
canonicalWebUrl = http://1e7b8b873b58
serverId = 82a37111-69df-47e5-ac72-1f791a4cc093
[database]
type = h2
database = db/ReviewDB
[index]
type = LUCENE
[auth]
import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.StringTokenizer;
import java.util.stream.Stream;
import java.util.Scanner;
import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.StringTokenizer;
import java.util.stream.Stream;
import java.util.Scanner;