Skip to content

Instantly share code, notes, and snippets.

View rafex's full-sized avatar
🏠
Working from home

Raúl Eduardo González Argote rafex

🏠
Working from home
View GitHub Profile
@rafex
rafex / valid_podman.sh
Created March 27, 2024 06:21
"This is a small script that validates the existence of the 'docker' or 'podman' command to be used."
#!/bin/sh
# This script is used to check if the podman or docker command is available
# Author: @rafex (Raúl González)
pods_manager_command_name="docker"
function valid_podman() {
if ! pods_manager_loc="$(type -p "$pods_manager_command_name")" || [[ -z $pods_manager_loc ]]; then
echo "$pods_manager_command_name not found, trying with podman"
@rafex
rafex / install_java_debian.json
Last active June 29, 2023 01:34
Instalador de java en versiones GraalVM, Adoptium, Corretto y Semeru para Distros basado en Debian. Java installer in GraalVM, Adoptium, Corretto and Semeru versions for Debian-based Distros.
{
"installationPath" : "/opt/java",
"sudo" : 1,
"install" : "graalvm",
"vendors":[
{
"vendor" : "ibm",
"version" : "8",
"arch" : "x64",
#!/bin/bash
# run script with root
PATH_NODE_MODEULES="/opt/nodejs/19.6.0/lib/node_modules"
npm install --global yarn
update-alternatives --install /usr/bin/yarn yarn ${PATH_NODE_MODEULES}/yarn/bin/yarn 10
@rafex
rafex / install_nodejs_debian.sh
Last active February 15, 2023 23:54
Installation manually nodejs in Debian
#!/bin/bash
# run script with root
VERSION_NODEJS="19.6.0"
BASE_PATH="/opt/nodejs"
curl --create-dirs -O --output-dir ${BASE_PATH} https://nodejs.org/dist/v${VERSION_NODEJS}/node-v${VERSION_NODEJS}-linux-x64.tar.xz
mkdir -p ${BASE_PATH}/${VERSION_NODEJS}
@rafex
rafex / wildfly-install.sh
Created May 8, 2017 17:09 — forked from sukharevd/wildfly-install.sh
Script to install JBoss Wildfly 10.x as service in Linux
#!/bin/bash
#title :wildfly-install.sh
#description :The script to install Wildfly 10.x
#more :http://sukharevd.net/wildfly-8-installation.html
#author :Dmitriy Sukharev
#date :2016-06-18T02:45-0700
#usage :/bin/bash wildfly-install.sh
#tested-version1 :10.0.0.CR3
#tested-distros1 :Ubuntu 15.10; Debian 7,8; CentOS 7; Fedora 22
#tested-version2 :10.0.0.Final
@rafex
rafex / install-wildfly.sh
Created May 8, 2017 17:08 — forked from lichti/install-wildfly.sh
Install Wildfly 10 - Debian, Centos, RHEL
#!/bin/bash
#title :wildfly-install.sh
#description :The script to install Wildfly 10.x
#usage :/bin/bash wildfly-install.sh
#tested-version1 :10.0.0.Final
#tested-distros1 :Ubuntu 15.10; Debian 7,8; CentOS 7; Fedora 22
#tested-version2 :10.1.0.Final
#tested-distros2 :Debian 8, Centos 6
WILDFLY_VERSION=10.1.0.Final