This file contains 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
from selenium import webdriver | |
from selenium.webdriver.chrome.options import Options | |
chrome_options = Options() | |
chrome_options.add_argument("--noerrdialogs") | |
chrome_options.add_argument("--disable-infobars") | |
chrome_options.add_argument("--kiosk") | |
chrome_options.add_argument("--start-maximized") | |
chrome_options.accept_untrusted_certs = True | |
chrome_options.assume_untrusted_cert_issuer = True |
This file contains 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
# A basic setup for the edge | |
# Strips cookies and un-needed params | |
# Does a few redirects | |
# Sets forwarded proxy headers | |
# Custom error page | |
vcl 4.0; | |
import std; | |
# Backend setup | |
backend default { |
This file contains 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
sudo yum -y update | |
sudo yum -y localinstall https://download.postgresql.org/pub/repos/yum/9.6/redhat/rhel-6-x86_64/pgdg-ami201503-96-9.6-2.noarch.rpm | |
sudo yum -y install postgresql96 postgresql96-server | |
sudo su - postgres -c "/usr/pgsql-9.6/bin/initdb" | |
sudo service postgresql-9.6 start | |
curl https://install.citusdata.com/community/rpm.sh | sudo bash | |
sudo yum install -y pg_cron_96 | |
sudo -u postgres echo "shared_preload_libraries = 'pg_cron'" >> /var/lib/pgsql/9.6/data/postgresql.conf |
This file contains 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
#!/usr/bin/env bash | |
## | |
# This script installs wordpress for phpunit tests and rspec integration tests | |
## | |
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) | |
DIR=$(dirname ${DIR}) | |
if [ $# -lt 3 ]; then | |
echo "usage: $0 <db-name> <db-user> <db-pass> [db-host] [wp-version]" | |
exit 1 |
This file contains 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
# A heavily customized VCL to support WordPress | |
# Some items of note: | |
# Supports https | |
# Supports admin cookies for wp-admin | |
# Caches everything | |
# Support for custom error html page | |
vcl 4.0; | |
import directors; | |
import std; |
OlderNewer