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 system = require('system'); | |
| // Exit in case of wrong parameter count. | |
| if (system.args.length !== 3) { | |
| console.log('Usage: scriptname targetUrl referrer'); | |
| console.log('example: $> phantomjs fake-referrer.phantom.js http://example.com http://referrer.example.com'); | |
| phantom.exit(); | |
| } | |
| // Set the important pieces |
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
| // googletesting.js | |
| casper.test.begin('Google search retrieves 10 or more results', 5, function suite(test) { | |
| casper.start("http://www.google.fr/", function() { | |
| test.assertTitle("Google", "google homepage title is the one expected"); | |
| test.assertExists('form[action="/search"]', "main form is found"); | |
| this.fill('form[action="/search"]', { | |
| q: "casperjs" | |
| }, true); | |
| }); |
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
| # Install repository in centos 7 | |
| sudo yum install http://mirrors.kernel.org/fedora-epel/7/x86_64/e/epel-release-7-5.noarch.rpm | |
| # Update install catalog | |
| sudo yum update | |
| # Install the required development tools | |
| sudo yum groupinstall Development Tools | |
| # Install the required python tools |
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
| //setup casper | |
| var casper = require('casper').create({ | |
| verbose: true, | |
| //Fake the user agent | |
| pageSettings: { | |
| userAgent: 'Mozilla/5.0 (Windows NT 5.1; chromeframe/25.0.1364.152) AppleWebKit/537.22 (KHTML, like Gecko) Chrome/25.0.1364.152 Safari/537.22' | |
| }, | |
| logLevel: "debug" | |
| //logLevel: "error" |
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
| @echo off | |
| cd /d %~dp0 | |
| set /p Input=Enter Folder name to delete: | |
| :ConfPromt | |
| set /p Confirm=Are you sure you want to delete "%CD%\%Input%"?(y/n): | |
| IF /I "%Confirm%" == "n" ( | |
| Echo Canceling. | |
| pause | |
| EXIT /b | |
| ) |
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
| /*! | |
| * Hipster filler text generator. | |
| * Inspired by (and words taken from): | |
| * http://hipsum.co/ | |
| * | |
| * Usage: | |
| * | |
| * // sentences only | |
| * APP.utils.hipster.sentence(); // generates 1 sentence with 9, 12, or 18 words | |
| * APP.utils.hipster.sentences(3); // generates 3 sentences |
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
| // Account, Campaign, and Ad Group Level Quality Score | |
| // ------------------------------------------------- | |
| // Script created by Frederick Vallaeys | |
| // Optmyzr - http://www.optmyzr.com http://www.optmyzr.com/enhanced-scripts-for-adwords | |
| // Copyright 2012-2016 - Optmyzr Inc. | |
| // | |
| function main() { |
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
| /* | |
| // AdWords Script: Check and set keyword bids for stacked (tiered) bid strategy | |
| // ----------------------------------------------------------------------------- | |
| // Copyright 2017 Optmyzr Inc., All Rights Reserved | |
| // | |
| // This script helps you compare bids for the same keyword in multiple match types | |
| // It can output just keywords for which a less restrictive match type has equal or higher bids (mode 1) | |
| // or it can output all keywords so you can see the bids by match type (mode 2) | |
| // | |
| // New bids can be generated and uploaded with the spreadsheet through Bulk Uploads. The file is NOT compatible with AdWords Editor. |
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
| // Copyright 2015, Google Inc. All Rights Reserved. | |
| // | |
| // Licensed under the Apache License, Version 2.0 (the "License"); | |
| // you may not use this file except in compliance with the License. | |
| // You may obtain a copy of the License at | |
| // | |
| // http://www.apache.org/licenses/LICENSE-2.0 | |
| // | |
| // Unless required by applicable law or agreed to in writing, software | |
| // distributed under the License is distributed on an "AS IS" BASIS, |
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
| /** | |
| * | |
| * Search Query Mining Tool | |
| * | |
| * This script calculates the contribution of each word or phrase found in the | |
| * search query report and outputs a report into a Google Doc spreadsheet. | |
| * | |
| * Version: 2.2 | |
| * Updated 2015-09-17: replacing 'KeywordText' with 'Criteria' | |
| * Updated 2016-10-11: replacing 'ConvertedClicks' with 'Conversions' |
NewerOlder