Skip to content

Instantly share code, notes, and snippets.

View arellano-gustavo's full-sized avatar
💭
I am just happy

Gustavo Adolfo Arellano Sandoval arellano-gustavo

💭
I am just happy
View GitHub Profile
@arellano-gustavo
arellano-gustavo / EjemploMarkdown.md
Last active May 23, 2021 16:58
Just a simple MD file example

Ejemplo

sub titulo

  • uno
  • dos
@arellano-gustavo
arellano-gustavo / MiniServicioRest.txt
Created May 23, 2021 16:53
Mini servicio rest con nodeJs
FROM ubuntu
RUN apt-get update
RUN apt-get install -y curl
RUN curl -sL https://deb.nodesource.com/setup_12.x | bash -
RUN apt-get install -y nodejs
RUN mkdir app
RUN cd app
RUN npm install express --save
@arellano-gustavo
arellano-gustavo / Dockerfile
Created May 23, 2021 16:40
Dockerfile for a VueJS clean environment
FROM ubuntu
RUN apt-get update
RUN apt-get -y install sudo
RUN apt-get -y install curl
RUN curl -sL https://deb.nodesource.com/setup_12.x | bash -
RUN apt-get install -y nodejs
RUN npm install -g @vue/cli
RUN useradd -m ejemplo && echo "ejemplo:ejemplo" | chpasswd && adduser ejemplo sudo
@arellano-gustavo
arellano-gustavo / generate-nexus-ssl.sh
Last active May 19, 2020 19:09
Generate nexus ssl certificate from lets encript output
#!/bin/bash
cd /etc/letsencrypt/archive/
echo "Recreando el directorio temporal"
rm -rf temporal
cp -r ci.ultrasist.net temporal
cd temporal
CLAVE=password
@arellano-gustavo
arellano-gustavo / gist:735060e6787153d0fac0c70bd04ce1c5
Created May 16, 2020 18:30
How to get a Jenkins Job as a local XML file. Then, create a new job.
# Please consider the $1 variable in here: (it is the job name)
curl -k -s \
https://jenkins.url.site/job/$1/config.xml \
-u jenkins-user:111f65b8xxxxxc395df \
-o $1-config.xml
# Now, we will use 2 variables: $1 & $2: (new job name & file with its definition)
CRUMB=$(\
curl -k \
'https://jenkins.url.site/crumbIssuer/api/xml?xpath=concat(//crumbRequestField,":",//crumb)' \