Src Reference: http://bernaerts.dyndns.org/download/ubuntu/install-mozilla-addon Article: http://bernaerts.dyndns.org/linux/74-ubuntu/271-ubuntu-firefox-thunderbird-addon-commandline
sudo apt-get install xvfb
sudo Xvfb :99.0 -ac
export DISPLAY=:99.0
| #!/bin/bash | |
| ## | |
| # Show the user what we're looking to remove from the network configs. | |
| ## | |
| printf "\nWe've located the following entries matching the associated port argument. \n" | |
| grep "add_nat_portfwd" /Library/Preferences/VMware\ Fusion/networking | grep $1 | |
| grep $1 /Library/Preferences/VMware\ Fusion/vmnet8/nat.conf | |
| ## |
| <?php | |
| use Behat\Mink\Exception\ElementNotFoundException; | |
| /** | |
| * @Given /^I select "([^"]*)" from "([^"]*)" chosen\.js autoselect box$/ | |
| */ | |
| public function iSelectFromChosenJAutoselectBox($option, $select) { | |
| $select = $this->fixStepArgument($select); | |
| $option = $this->fixStepArgument($option); |
| use Behat\Mink\Exception\ElementNotFoundException; | |
| /** | |
| * @Given /^I select "([^"]*)" from "([^"]*)" chosen\.js select box$/ | |
| */ | |
| public function iSelectFromChosenJsSelectBox($option, $select) { | |
| $select = $this->fixStepArgument($select); | |
| $option = $this->fixStepArgument($option); | |
| $page = $this->getSession()->getPage(); |
| import requests | |
| import time | |
| import json | |
| token = '' | |
| #Delete files older than this: | |
| ts_to = int(time.time()) - 30 * 24 * 60 * 60 | |
| def list_files(): |
| public function waitForAjax() | |
| { | |
| $waitTime = 10000; | |
| try { | |
| //Wait for Angular | |
| $angularIsNotUndefined = $this->getSession()->evaluateScript("return (typeof angular != 'undefined')"); | |
| if ($angularIsNotUndefined) { | |
| //If you run the below code on a page ending in #, the page reloads. | |
| if (substr($this->getSession()->getCurrentUrl(), -1) !== '#') { | |
| $angular = 'angular.getTestability(document.body).whenStable(function() { |
| # Get a random line from the Zen of Python without a print (preferably for a colorful cow to chant!) | |
| # Replace stdout by an anonymous class that returns nothing on write() | |
| import sys | |
| stdout = sys.stdout | |
| sys.stdout = type('BlackHole', (), {'write': (lambda self, string: '')})() | |
| # This import's output has now been supressed | |
| import this |
Src Reference: http://bernaerts.dyndns.org/download/ubuntu/install-mozilla-addon Article: http://bernaerts.dyndns.org/linux/74-ubuntu/271-ubuntu-firefox-thunderbird-addon-commandline
sudo apt-get install xvfb
sudo Xvfb :99.0 -ac
export DISPLAY=:99.0
| <?php | |
| /** | |
| * @author Gildas Quéméner <gildas@akeneo.com> | |
| * @copyright 2013 Akeneo SAS (http://www.akeneo.com) | |
| * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) | |
| */ | |
| use Behat\Behat\Exception\BehaviorException; | |
| use Behat\Mink\Driver\Selenium2Driver; |
| #!/bin/bash | |
| ##################################################### | |
| # Name: Bash CheatSheet for Mac OSX | |
| # | |
| # A little overlook of the Bash basics | |
| # | |
| # Usage: | |
| # | |
| # Author: J. Le Coupanec | |
| # Date: 2014/11/04 |