-
Open a browser
# start an instance of firefox with selenium-webdriver driver = Selenium::WebDriver.for :firefox # :chrome -> chrome # :ie -> iexplore
- Go to a specified URL
| /** | |
| * EXAMPLE FEATURE UPDATE | |
| * Enable and revert the my_new_feature_name feature. | |
| */ | |
| function example_update_7001() { | |
| // An array of new or changed features; the array keys are feature names, | |
| // values are an array of exportable types as seen in a feature's .info file: | |
| // features[field][] = node-page-body | |
| $features = array( | |
| 'my_new_feature_name' => array('field', 'variable'), |
| #!/bin/bash | |
| # | |
| # Git pre-commit hook for Drupal projects. | |
| # Created by Dave Hall - http://davehall.com.au | |
| # Distributed under the terms of the WTFPL - http://www.wtfpl.net/ | |
| # | |
| set -e |
| #!/bin/bash | |
| # be in the right directory | |
| # edit this line as appropriate | |
| cd /Applications/MAMP/htdocs | |
| # assign the path to drush. | |
| # if drush is not in your path, or if you use multiple versions. | |
| drush='/Applications/MAMP/drush/drush' |
The easiest way to "convert" MKV to MP4, is to copy the existing video and audio streams and place them into a new container. This avoids any encoding task and hence no quality will be lost, it is also a fairly quick process and requires very little CPU power. The main factor is disk read/write speed.
With ffmpeg this can be achieved with -c copy. Older examples may use -vcodec copy -acodec copy which does the same thing.
These examples assume ffmpeg is in your PATH. If not just substitute with the full path to your ffmpeg binary.
| #!/bin/bash | |
| # Configure inputs | |
| INPUT_FOLDER='/media' | |
| DELETE_ORIGINALS=false #set to true to delete original files | |
| # Set $IFS variable to handle files whitespace in name | |
| SAVEIFS=$IFS | |
| IFS=$(echo -en "\n\b") |