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
@themakunga
themakunga / detele_arch.sh
Created March 27, 2018 16:11
this script delete other arch than arm from scripts or frameworks in a swift app, add ir in the build fase of your xcode
APP_PATH="${TARGET_BUILD_DIR}/${WRAPPER_NAME}"
# This script loops through the frameworks embedded in the application and
# removes unused architectures.
find "$APP_PATH" -name '*.framework' -type d | while read -r FRAMEWORK
do
FRAMEWORK_EXECUTABLE_NAME=$(defaults read "$FRAMEWORK/Info.plist" CFBundleExecutable)
FRAMEWORK_EXECUTABLE_PATH="$FRAMEWORK/$FRAMEWORK_EXECUTABLE_NAME"
echo "Executable is $FRAMEWORK_EXECUTABLE_PATH"
#!/bin/bash
## Creador de ambientes de magento para que dejen de andar instalandolo mano a mano
#parametros editables
DB_HOST="localhost" #Ubicacion de la base de datos
DB_USER="" #usuario con permisos para la base de datos
<?php
class Magento_Downloader_Validator
{
/**
* Minimum required PHP version.
*
* @var string
*/
protected $_phpVersion = '5.2.13';
@themakunga
themakunga / cv.md
Last active April 26, 2018 14:55
Mi CV que se actualiza constantemente

Pedro Nicolás Martínez Villarroel


Experiencia Laboral

Desarrollador | Allware SPA

Providencia - Chile (Noviembre 2016 - a la fecha)

Soporte directo a transbank webpay y entel para los productos de suscripción. Prepago y portabilidad.

  • Desarrollo de version 2.0 de plugins de integracion de Transbank
  • Desarrollo de plugins y SDK de intregracion Onepay Webpay
import Foundation
//////
//
// funcion para validar DV en rut chileno,
// Swift 4 Xcode 9.x
//
//
// Modo de uso:
@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
<?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);

[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]
#!/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