This file contains hidden or 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
| #!/bin/bash | |
| # Backs up the OpenShift PostgreSQL database for this application | |
| # by Skye Book <[email protected]> | |
| NOW="$(date +"%Y-%m-%d")" | |
| FILENAME="$OPENSHIFT_DATA_DIR/$OPENSHIFT_APP_NAME.$NOW.backup.sql.gz" | |
| find $OPENSHIFT_DATA_DIR -name $OPENSHIFT_APP_NAME.*backup* -type f -mtime +30 -exec rm '{}' \; | |
| pg_dump $OPENSHIFT_APP_NAME | gzip > $FILENAME | |
This file contains hidden or 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.common.by import By | |
| from selenium.webdriver.common.keys import Keys | |
| # from selenium.webdriver.support.ui import Select | |
| from selenium.webdriver.support.ui import WebDriverWait | |
| from selenium.webdriver.support import expected_conditions as EC | |
| from selenium.webdriver.common.action_chains import ActionChains | |
| from selenium.webdriver.firefox.firefox_binary import FirefoxBinary | |
| from selenium.common.exceptions import NoSuchElementException | |
| from locale import LC_ALL, atof, setlocale |
NewerOlder