- uno
- dos
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
# 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)' \ |
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 | |
cd /etc/letsencrypt/archive/ | |
echo "Recreando el directorio temporal" | |
rm -rf temporal | |
cp -r ci.ultrasist.net temporal | |
cd temporal | |
CLAVE=password |
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
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 |
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
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 |
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
package mx.com.ultrasist.ci.generator; | |
// Curly brace Enemy ... | |
// https://javarevisited.blogspot.com/2017/03/how-to-reverse-linked-list-in-java-using-iteration-and-recursion.html | |
public class SinglyLinkedList<T> { | |
private Node<T> head; | |
/** | |
* Imprime esta lista ligada con un formato | |
* específico delimitado por símbolos '--->' |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Prueba de un cliente de un websocket</title> | |
<script type="text/javascript"> | |
var webSocket = new WebSocket('wss://fstream.binance.com/ws/btcusdt@trade'); | |
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
version: '3.7' | |
services: | |
db: | |
image: mysql:8.0.19 | |
command: '--default-authentication-plugin=mysql_native_password' | |
volumes: | |
- /this/is/the/path/wordpress/data:/var/lib/mysql | |
restart: always | |
environment: | |
- MYSQL_ROOT_PASSWORD=somewordpress |
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
upstream balanceador { | |
server srv02:9001; | |
server srv02:9002; | |
server srv02:9003; | |
} | |
server { | |
server_name balanceador.qbits.mx; | |
location / { |
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
#----------------------------- | |
# alvinalexander.com (desktop) | |
#----------------------------- | |
server { | |
server_name alvinalexander.com; | |
listen 80; | |
#----- redirect to mobile check (starts) -----# | |
set $mobile_rewrite do_not_perform; |
OlderNewer