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
| { | |
| "Version": "2012-10-17", | |
| "Statement": [ | |
| { | |
| "Effect": "Allow", | |
| "Action": [ | |
| "s3:GetBucketLocation", | |
| "s3:ListAllMyBuckets" | |
| ], |
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
| s3fs -o passwd_file=/s3mnt/s3access,use_cache=/s3mnt/cache,uid=1000,gid=1001,allow_other,umask=227, bucket1:/user1folder/ /s3mnt/directory1 | |
| s3fs -o passwd_file=/s3mnt/s3access,use_cache=/s3mnt/cache,uid=1000,gid=1001,allow_other,umask=227, bucket1:/user2folder/ /s3mnt/directory2 | |
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
| mysql --host [destinationhostname] -u [username] -p [dbname2] < backup.sql |
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
| mysqldump --host [hostname] -u [username] -p [dbname] > backup.sql |
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
| mysql --host [destinationhostname] -u [username] -p < backup.sql |
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
| mysqldump --host [hostname] -u [username] -p --databases [dbname] > backup.sql |
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
| $ casperjs test mytest.js |
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
| casper.run(function() { | |
| this.test.done(10); | |
| this.echo('So the whole suite ended.'); | |
| require('utils').dump(casper.test.getFailures()); | |
| require('utils').dump(casper.test.getPasses()); | |
| this.exit(); | |
| }); |
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
| casper.test.comment('Ending Testing'); |
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
| this.test.assertExists({ | |
| type: 'xpath', | |
| path: '//button[@id="sign-up-button" | |
| and @class="btn btn-primary input-sm" | |
| and @type="submit"]' | |
| }, 'Submit button exists'); |