This file contains 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
title restart-all | |
call taskkill /F /t /IM cmd.exe /fi "Windowtitle ne restart-all" | |
call taskkill /F /IM cmd.exe /fi "Windowtitle ne restart-all" | |
call taskkill /F /IM iexplore.exe | |
call taskkill /F /IM IEDriverServer.exe | |
start cmd.exe /k hub.bat | |
start cmd.exe /k node.bat | |
start cmd.exe /k phantomjs.bat |
This file contains 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
sudo find . -type f -name "*.pyc" -delete |
This file contains 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
# To run the restart-all Windows Scheduled Task from the command line (either cmd or Cygwin): | |
(windows box)$ schtasks /run /tn restart-all | |
To run that command remotely from a linux box: | |
(linux box)$ ssh windows-user@windows-machine "schtasks /run /tn restart-all" | |
# Ensure that you have setup public key authentication on the windows box, to allow this command to work without password entry | |
# Jenkins can be scheduled to execute the above command to allow Windows Selenium instances to be restarted between builds (so as not to clash with running builds). |
This file contains 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
(local machine) $ scp ~/.ssh/id_rsa.pub remoteuser@remotemachine:~ | |
(remote machine) $ cat ~/id_rsa.pub >> ~/.ssh/authorized_keys |
This file contains 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
ssh -t username@server screen "command" |
This file contains 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
gethostip -d [hostname] |
This file contains 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
lokkit -p 8090:tcp |
This file contains 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
ls /var/run/reboot-required |
This file contains 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
VIRTUAL_ENV=/opt/myenv | |
PATH=$VIRTUAL_ENV/bin:$PATH |
OlderNewer