Antes de comenzar es necesario tener instalado Xcode y Homebrew.
Xcode se puede instalar desde la App Store
Homebrew es un gestor de paquetes para OS X.
| <?php | |
| if( !function_exists('apache_request_headers') ) { | |
| function apache_request_headers() { | |
| $arh = array(); | |
| $rx_http = '/\AHTTP_/'; | |
| foreach($_SERVER as $key => $val) { | |
| if( preg_match($rx_http, $key) ) { | |
| $arh_key = preg_replace($rx_http, '', $key); |
| set enc=utf-8 | |
| set fenc=utf-8 | |
| set termencoding=utf-8 | |
| set nocompatible | |
| set autoindent | |
| set smartindent | |
| set expandtab | |
| set tabstop=2 | |
| set shiftwidth=2 | |
| set textwidth=120 |
| set nocompatible " be iMproved, required | |
| filetype off " required | |
| " set the runtime path to include Vundle and initialize | |
| set rtp+=~/.vim/bundle/Vundle.vim | |
| call vundle#begin() | |
| Plugin 'Vundle.vim' | |
| Plugin 'git@github.com:tomasr/molokai.git' | |
| Plugin 'git@github.com:scrooloose/nerdtree.git' |
| $("#btn-upload").on('click',function () { | |
| e.preventDefault(); | |
| var self = this; | |
| $('#btn-upload').prop('disabled', true); | |
| var data = new FormData(document.forms.namedItem('frm_upload')); | |
| $.ajax({ | |
| url: '/documentos', | |
| dataType: 'json', | |
| method: 'POST', |
| #!/bin/bash | |
| # Autor: Andrés Duarte M. | |
| # Crear usuario en linux | |
| echo "Ingresa nombre de usuario:" | |
| read user | |
| useradd $user | |
| passwd $user |