Skip to content

Instantly share code, notes, and snippets.

View mauriciopazpp's full-sized avatar

Mauricio Paz mauriciopazpp

  • Guarapuava-PR / Brazil
  • 07:08 (UTC -12:00)
View GitHub Profile
@mauriciopazpp
mauriciopazpp / AlertError.js
Created July 10, 2018 23:57
AlertError react
import { Alert as AlertReact } from 'react-native'
export const AlertError = (title,
message = `Erro inesperado! Por favor tente novamente mais tarde`,
problem = null) => {
AlertReact.alert(
title,
problem ? `${message} \n ${problem}` : message,
[
{text: 'Ask me later', onPress: () => console.log('Ask me later pressed')},
sudo apt-get update
/**
* phpmyadmin
*/
sudo apt-get install phpmyadmin php-mbstring php-gettext
/**
* Habilite as extensões
*/
@mauriciopazpp
mauriciopazpp / php-nginx-install.txt
Created June 7, 2018 20:21
Prepare environment - Nginx - PHP
sudo apt-get update
/**
* Nginx
*/
sudo apt-get install nginx
/**
* mysql
*/
@mauriciopazpp
mauriciopazpp / php-7.2-fix-count-error.txt
Created May 21, 2018 19:39
PHP 7.2 - count(): Parameter must be an array or an object that implements Countable
if (version_compare(PHP_VERSION, '7.2.0', '>=')) {
// Ignores notices and reports all other kinds... and warnings
error_reporting(E_ALL ^ E_NOTICE ^ E_WARNING);
// error_reporting(E_ALL ^ E_WARNING); // Maybe this is enough
}
@mauriciopazpp
mauriciopazpp / .zshrc
Created April 28, 2018 04:11
zsh config
###################################################################################
# Welcome Info
###################################################################################
echo -ne "${red}Hoje é:\t\t${cyan}" `date`; echo ""
echo -e "${red}Kernel: \t${cyan}" `uname -smr`
PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting
###################################################################################