Skip to content

Instantly share code, notes, and snippets.

View s-en-o's full-sized avatar
🎹
Beatsmith

Seno s-en-o

🎹
Beatsmith
View GitHub Profile
@s-en-o
s-en-o / aws-ec2-instance-dependencies-installation.sh
Last active July 14, 2023 07:23
User script for AWS Linux EC2 instances
#!/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 \
@s-en-o
s-en-o / jenkins-script-automation-installation.sh
Last active July 13, 2023 06:50
Ubuntu bash script to install Jenkins
#!/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:
@s-en-o
s-en-o / ping.js
Created May 10, 2023 06:24
Checking server ping
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";