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
var url = 'http://www.google.com'; | |
var prefix = 'CA'; | |
var totalScreenshots = 10; | |
var screenshotDelay = 10; // seconds | |
var i = 0; | |
function makeScreenshot(url, filename, callback) { | |
var page = new WebPage(); | |
page.settings.userAgent = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:16.0) Gecko/20100101 Firefox/16.0'; | |
page.open(url, function(status) { |
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
ansible-playbook init.yml --connection="ssh" --inventory-file="/path/to/inventory-file" --user=="root" --ask-pass | |
GATHERING FACTS ********************* | |
fatal: [ansible] => failed to transfer file to command-line line 0: Missing argument./setup: | |
command-line line 0: Missing argument. | |
Connection closed |
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
package SW::Web::Controller::Manufacturer; | |
use Moose; | |
use namespace::autoclean; | |
BEGIN { extends 'Catalyst::Controller'; } | |
__PACKAGE__->config(namespace => 'm'); | |
sub create : Chained('/superuser') PathPart('m/create') Args(0) { |
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
Inconsistent hierarchy during C3 merge of class 'SW::Schema::Result::RoleTemporary': | |
current merge results [ | |
SW::Schema::Result::RoleTemporary, | |
] | |
merging failed on 'DBIx::Class::Core' at /Users/roman/perl5/perlbrew/perls/perl-5.16.1/lib/5.16.1/darwin-2level/mro.pm line 27. |
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
package WWW::MenuGrinder::Plugin::BoolMethod; | |
# ABSTRACT: WWW::MenuGrinder plugin that does boolean checks on items. | |
use Moose; | |
use Carp; | |
with 'WWW::MenuGrinder::Role::ItemMogrifier'; | |
sub item_mogrify { |
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
var select2Options = { allowClear: true, width: 'resolve' }; | |
$('select#country, select#region').select2(select2Options); |
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
package SW::Web::Model::DB; | |
use Moose; | |
extends 'Catalyst::Model::DBIC::Schema'; | |
use SW::Schema::RestrictingObject; | |
## CatalystX::Component::Traits | |
# has '+_trait_merge' => (default => 1); |
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
use DBIx::Class::Candy | |
-base => 'SW::Schema::Result', | |
-autotable => v1, | |
-components => [ | |
qw/ | |
EncodedColumn | |
/ | |
]; | |
use DBIx::Class::Candy |
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
#!/usr/bin/env perl | |
use warnings; | |
use strict; | |
use Archive::Tar; | |
my $filename = $ARGV[0]; | |
die "Specify filename as first argument.\n" unless $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
file { "$install_dir/create": | |
path => $install_dir, | |
ensure => 'directory', | |
owner => vagrant, | |
group => vagrant, | |
} | |
## .... | |
file { "$install_dir/chown": |