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
/** | |
* Examples how to inject scripts on NightWatch.js test. | |
* The following test will open a page, inject & run the scripts, and get the results. | |
* The injected script will be run synchronously & asynchronously. | |
* | |
* Both examples use script as a string since I could not find any example on this. | |
* Normally, you have the input script as a JS function but there are cases where you | |
* have to load & inject external script (e.g third party library). | |
*/ | |
module.exports = { |
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
#!/bin/bash | |
# Project to backup | |
PROJECT_NAME="myproject" | |
PROJECT_FOLDER="../works/myproject" | |
# Filename will be myproject-20150424.7z | |
NOW=$(date +"%Y%m%d") | |
FILE="$PROJECT_NAME-$NOW.7z" |