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
| # Add net-http-persistent to your Gemfile; `bundle install` then alter your WebDriver setup as shown below. | |
| gem 'net-http-persistent' |
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 com.saucelabs; | |
| import java.util.Map; | |
| import java.net.URL; | |
| import org.openqa.selenium.WebDriver; | |
| import org.openqa.selenium.remote.CapabilityType; | |
| import org.openqa.selenium.remote.DesiredCapabilities; | |
| import org.openqa.selenium.remote.DriverCommand; | |
| import org.openqa.selenium.remote.HttpCommandExecutor; |
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
| #!/bin/bash | |
| #! /bin/bash | |
| # Wait until the simulator is running before we try to add the file | |
| simulator=$(ps aux | grep launchd_sim | grep -v grep) | |
| while [ -z "$simulator" ] | |
| do | |
| echo Sleeping for 5 | |
| sleep 5 |
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
| require "webrick" | |
| server = WEBrick::HTTPServer.new :Port => 9000 | |
| server.mount_proc '/' do |req, res| | |
| calling_time = Time.now | |
| sleep 75 | |
| response_time = Time.now | |
| res.body = "Hello, world! You asked for me at #{calling_time} but I ignored you until #{response_time}" | |
| end |
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 127.0.0.0 pagead2.googlesyndication.com >> %WINDIR%\System32\Drivers\Etc\Hosts | |
| echo 127.0.0.0 googleads.g.doubleclick.net >> %WINDIR%\System32\Drivers\Etc\Hosts |
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
| taskmgr |
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
| #! /bin/bash | |
| /usr/libexec/PlistBuddy -c "Add :AppleKeyboards:0 string zh_Hans-HWR@sw=HWR" ~/Library/Application\ Support/iPhone\ Simulator/7.1-64/Library/Preferences/.GlobalPreferences.plist |
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
| :loop | |
| arp -s 192.168.1.254 xx-xx-xx-xx-xx-xx | |
| ipconfig /flushdns | |
| ping localhost -n 11 > nul | |
| print "I'm outputting" | |
| goto loop |
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
| #!/bin/bash | |
| mkdir ~/.fonts | |
| cd ~/.fonts | |
| wget http://unifoundry.com/pub/unifont-7.0.03/font-builds/unifont-7.0.03.ttf |
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
| #!/bin/bash -e | |
| mkdir /Users/chef/Library/Logs/iOS\ Simulator | |
| chmod a+rwx /Users/chef/Library/Logs/iOS\ Simulator | |
| mkdir /Users/chef/Library/Logs/iOS\ Simulator/7.1-64 | |
| chmod a+rwx /Users/chef/Library/Logs/iOS\ Simulator/7.1-64 | |
| ls /Users/chef/Library/Logs/iOS\ Simulator/ |