View Rotate-Tabs.ps1
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
<# | |
.SYNOPSIS | |
Rotate-Tabs rotates tabs in Internet Explorer with a delay. | |
.DESCRIPTION | |
Rotate-Tabs will rotate tabs in Internet Explorer with a delay. It first waits for 20 | |
seconds, counting down to give you time to switch Internet Explorer to the front and | |
then sends Control+Tab to the browser at regular intervals to switch to the next tab. | |
.PARAMETER delay |
View template_script.sh
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
#!/usr/bin/env bash | |
set -o errexit -o errtrace -o nounset -o pipefail # Robust scripting. | |
# Find real script name and location... | |
cd .;origDir="$PWD";origScript="${BASH_SOURCE[0]}";[[ $origScript != */* ]]&&origScript="./$origScript" | |
realScript="$origScript";scriptName="${origScript##*/}";scriptDir="${origScript%/*}" | |
while [[ -L $realScript ]];do cd "${realScript%/*}";realScript="$(readlink "${realScript##*/}")";[[ $realScript != */* ]]&&realScript="./$realScript";done | |
cd -P "${realScript%/*}";realScript="$PWD/${realScript##*/}";realDir="$PWD";realName="${realScript##*/}";cd "$origDir" | |
# |