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 | |
| set -euo pipefail | |
| IFS=$'\n\t' | |
| # Ubuntu 18.04 dev Server | |
| # Run like - bash install_lamp.sh | |
| # Script should auto terminate on errors | |
| echo -e "\e[96m Adding PPA \e[39m" | |
| sudo add-apt-repository -y ppa:ondrej/apache2 |
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 myVar = setInterval(httpOnlyMaker, 3000); | |
| /** Supply filename only in the imgElement. Full path is not required. | |
| */ | |
| function httpOnlyMaker() { | |
| var imgElement = jQuery("img[src$='LXH_Zinanshan.5ba65047732b8.jpg']"); | |
| if(imgElement.length >= 1){ | |
| imgElement.attr('src', imgElement.attr('src').replace('https', 'http')); | |
| clearInterval(myVar); |