Skip to content

Instantly share code, notes, and snippets.

View isummation's full-sized avatar

iSummation INC isummation

View GitHub Profile
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"s3:GetBucketLocation",
"s3:ListAllMyBuckets"
],
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
mysql --host [destinationhostname] -u [username] -p [dbname2] < backup.sql
mysqldump --host [hostname] -u [username] -p [dbname] > backup.sql
mysql --host [destinationhostname] -u [username] -p < backup.sql
mysqldump --host [hostname] -u [username] -p --databases [dbname] > backup.sql
@isummation
isummation / run.js
Last active November 9, 2017 08:24
$ casperjs test mytest.js
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();
});
casper.test.comment('Ending Testing');
this.test.assertExists({
type: 'xpath',
path: '//button[@id="sign-up-button"
and @class="btn btn-primary input-sm"
and @type="submit"]'
}, 'Submit button exists');