- Principios DevOps
- Bases en algún lenguaje de programación (Python / Typescript / Go / Java)
- Manejo de herramientas de CI / CD (Github Actions / Repository Pipelines / Cloud Pipelines / Circle CI)
- Infraestructura como código (Terraform / Pulumi / Cloud SDK)
- Unix (Bash scripting, Linux, comandos más usados)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
import { useEffect } from 'react'; | |
/** | |
* Custom hook to manage the document's title, meta tags, and link tags. | |
* @param {string} title - The new title for the document. | |
* @param {Array} metas - An array of meta tag objects with { key, props, value }. | |
* @param {Array} links - An array of link tag objects with { rel, href }. | |
*/ | |
const useDocumentMeta = (title, metas = [], links = []) => { | |
useEffect(() => { |
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
- name: 'gcr.io/cloud-builders/gcloud' | |
entrypoint: 'bash' | |
args: | |
- '-c' | |
- | | |
# File that contains failures. | |
failure_file=failure.log | |
touch ${failure_file} | |
for d in portal/*/; do |
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
/** | |
* Convert Spreadsheet to array using XLSX library and es6 promises | |
* | |
* @param {File} file - File to parse | |
* @param {string} [type=array] - Type to parse | |
* @returns {Promise<Object, String>} | |
* | |
* @see https://www.npmjs.com/package/xlsx | |
*/ | |
function spreadParser(file, type = 'array') { |
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
var mysql = require('mysql2'); | |
var Client = require('ssh2').Client; | |
var ssh = new Client(); | |
var db = new Promise(function(resolve, reject){ | |
ssh.on('ready', function() { | |
ssh.forwardOut( | |
// source address, this can usually be any valid address | |
'127.0.0.1', | |
// source port, this can be any valid port number |
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
# Dockerfile | |
ARG NODE_VERSION='12.18-alpine' | |
# --------------- Build | |
FROM node:${NODE_VERSION} As development | |
WORKDIR /usr/src/app | |
COPY package*.json ./ |
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
import React from 'react' | |
import PropTypes from 'prop-types' | |
/** | |
* NumberMaskedInput component | |
* Created by habib on 5/06/2020 | |
* | |
* @public | |
* @class |
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
:: @Path C:\Windows\System32\git.bat | |
:: | |
:: @Use in CMD or Powershell "git <command>" | |
:: | |
@echo off | |
C:\Windows\System32\bash.exe -c "git %*" |
NewerOlder