Skip to content

Instantly share code, notes, and snippets.

View cvega93's full-sized avatar
🎯
Growth hacker

Cristian Vega cvega93

🎯
Growth hacker
  • Talently
  • Lima
View GitHub Profile
@cvega93
cvega93 / deploy_git.sh
Last active May 28, 2020 16:22 — forked from raco/deploy_git.sh
Easy automatic deploy bash for dummies
#!/bin/sh
projectname=$1;
#Para usar ejecutar sh deploy_git.sh [Nombre proyecto] [Scripts a ejecutar luego de deploy]
cd /var/www;
mkdir $projectname;
cd /var;
mkdir repo;
cd repo;
@hawkapparel
hawkapparel / Integración de Culqi.js con VueJs y Nuxt.js
Last active October 7, 2020 20:06
Integración de Culqi.js con VueJs y Nuxt.js
/* RECIBE LA RESPUESTA DE CULQI Y LA GUARDA EN UNA VARIABLE GLOBAL */
if(process.browser) {
window.culqi = function (token) {
window.__culqi_token = token
};
}
export default class Culqi {
constructor (codigoComercio) {
if(process.browser) {
@cvega93
cvega93 / ubigeos_peru.sql
Created March 16, 2018 15:31
Perú, base de datos de Ciudades, Provincias y Distritos
-- --------------------------------------------------------
-- Host: 127.0.0.1
-- Versión del servidor: 5.7.17-0ubuntu0.16.04.2 - (Ubuntu)
-- SO del servidor: Linux
-- HeidiSQL Versión: 9.4.0.5125
-- --------------------------------------------------------
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET NAMES utf8 */;
/*!50503 SET NAMES utf8mb4 */;
@raco
raco / deploy_git.sh
Last active April 4, 2020 00:23
Script to install a git bare repository to deploy easily
#!/bin/sh
#
export DEBIAN_FRONTEND=noninteractive;
# Define a project name
projectname='your_project_name';
cd /var/www;
mkdir $projectname;
cd /var;
@cvega93
cvega93 / Culqi class para Vue.js
Created February 13, 2018 21:02
Clase para obtener un evento asíncrono de Culqi
<template>
<div class="card">
<form action="#" class="form-monkey form-buy-membreship" id="culqi-card-form">
<div class="row">
<div class="block-form">
<div class="col-sm-6">
<div class="form-group">
<label for="card[email]">Email</label>
<input type="text" class="form-control" placeholder="Correo electrónico"
v-model="user.email"