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
#!/bin/bash | |
# install dependencies | |
yum groups mark install "Development Tools" | |
yum -y install \ | |
bzip2-devel.x86_64 \ | |
java-11-amazon-corretto-headless \ | |
libffi-devel \ | |
ncurses-devel \ | |
openssl-devel \ |
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
#!/bin/bash | |
# Change user as root | |
sudo su - | |
# Add Jenkins aptitude key | |
curl -fsSL https://pkg.jenkins.io/debian/jenkins.io-2023.key | sudo tee \ | |
/usr/share/keyrings/jenkins-keyring.asc > /dev/null | |
# Add the Jenkins debian repo to the aptitude sources list: |
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
const startTime = new Date(); | |
const img = new Image(); | |
img.onload = () => { const endtime = new Date(); const ping = endtime.getTime() - startTime.getTime(); alert(img.src + " loaded in " + ping + " ms"); }; | |
img.src = "https://somewebsite.com/some-image.png"; |