Skip to content

Instantly share code, notes, and snippets.

View themakunga's full-sized avatar
🍍
Hawaiian King

Nicolas Martinez themakunga

🍍
Hawaiian King
View GitHub Profile
#!/bin/bash
##
## Sistema de respaldo y mantencion de tablas transaccionales
## Autor: Nicolas Martinez V. @_makunga
## Allware LTDA.
##
## README ###############################################################################################################################################################
@themakunga
themakunga / .htaccess
Created May 16, 2017 21:36
archivo .htaccess de magento v2
###############################################
## overrides deployment configuration mode value
## use command bin/magento deploy:mode:set to switch modes
# SetEnv MAGE_MODE developer
############################################
## uncomment these lines for CGI mode
## make sure to specify the correct cgi php binary file name
## it might be /cgi-bin/php-cgi
# Action php5-cgi /cgi-bin/php5-cgi
# AddHandler php5-cgi .php
<?php
# @Author: Nicolas Martinez <nicolas>
# @Date: 2017-09-26T10:40:25-03:00
# @Email: pmartinez@allware.cl
# @Filename: OutputHandler.php
# @Last modified by: nicolas
# @Last modified time: 2017-09-26T10:57:19-03:00
/**
*
<?php
# @Author: Nicolas Martinez <nicolas>
# @Date: 2017-05-22T15:33:05-04:00
# @Email: pmartinez@allware.cl
# @Filename: cargadatos.php
# @Last modified by: nicolas
# @Last modified time: 2017-09-28T16:15:19-03:00
/*
* Install Via composer sunra/php-simple-html-dom-parser
#!/bin/bash
megadl=/usr/local/bin/megadl
list=$1
clear
if [ ! -f $megadl ];then
echo -e "error!: no se encuentra instalacion de megadl\nFavor bajar desde https://github.com/megous/megatools"
exit 2
fi
if [ ! -f $list ];then

[Nombre Completo]


Experiencia Laboral

[Puesto | Empresa]

[comuna - pais] ([mes/año inicio] - [mes/año fin])

[Titulo cargo]. [ Desripcion del cargo]

  • [hitos uno a uno]
<?php
/*
function validadora de rut en base 11 chile|
ingresar con el formato 11.111.111-1 o 11111111-1
use: validatedv(11.111.111-1);
@themakunga
themakunga / compilador_magento.sh
Created November 16, 2017 18:51
tuve que hacer este script para complilar esa mierda de magento, usarlo en la raiz del sitio una vez subido sus cambios, si quieren control de versiones tendran que esperar
#!/bin/bash
bin="php ./bin/magento"
${bin} setup:upgrade
rm -rf ./var/di
${bin} setup:di:compile
${bin} cache:clean
${bin} cache:flush
import Foundation
//////
//
// funcion para validar DV en rut chileno,
// Swift 4 Xcode 9.x
//
//
// Modo de uso: