Skip to content

Instantly share code, notes, and snippets.

View justEli's full-sized avatar
🌻
no risk, no story

justEli

🌻
no risk, no story
View GitHub Profile
Java ▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░░░░░░░░░░ 44.2%
C ▓▓▓▓▓▓░░░░░░░░░░░░░░░░░░░░░░░░ 20.9%
Vue ▓▓▓▓▓░░░░░░░░░░░░░░░░░░░░░░░░░ 15.7%
SQL ▓▓░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 6.0%
JavaScript ▓░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 4.3%
@justEli
justEli / install-java.sh
Created October 8, 2023 09:16
Bash: Java JDK installation script from download
#!/bin/bash
# Prompt the user for the download URL
read -p "Enter the Java download URL: " download_url
# Extract the Java version from the URL
java_version=$(echo "$download_url" | grep -oP '(?<=jdk)\d+')
# Check if the version was extracted successfully
if [ -n "$java_version" ]; then
@justEli
justEli / Pages.java
Last active December 20, 2022 21:57
Java: Small page utility
/*
* Copyright (c) 2022, justeli.me - All Rights Reserved
* Unauthorized copying of this file, via any medium is strictly prohibited
*/
package me.justeli.utility.util;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;