Skip to content

Instantly share code, notes, and snippets.

View diego-mi's full-sized avatar

Diego Mi Campos diego-mi

  • Jaboticabal-SP, Brasil
View GitHub Profile
@diego-mi
diego-mi / install-docker.sh
Created June 5, 2023 14:28 — forked from madkoding/install-docker-deepin.sh
Install Docker-CE script for Deepin Linux
#!/bin/sh
# Shell script to add docker-ce to Deepin Linux repositories
# Remove old docker
sudo apt-get remove -y docker docker-engine docker.io containerd runc
# Install dependencies
sudo apt-get install -y apt-transport-https ca-certificates curl gnupg2 software-properties-common
@diego-mi
diego-mi / gist:518f9c5ccb02a058d346bf99b98db70f
Created April 27, 2018 13:00 — forked from diegoprates/gist:5047663
Tradução do jQuery validation plugin oara pt-BR. By https://gist.github.com/FernandoVezzali.
/*
* Translated default messages for the jQuery validation plugin.
* Locale: PT_BR
*/
jQuery.extend(jQuery.validator.messages, {
required: "Este campo é requerido.",
remote: "Por favor, corrija este campo.",
email: "Por favor, forneça um endereço eletrônico válido.",
url: "Por favor, forneça uma URL válida.",
date: "Por favor, forneça uma data válida.",
@diego-mi
diego-mi / Dockerfile
Created December 8, 2017 19:40 — forked from ktquez/Dockerfile
Dockerfile for PHP7 memcache and Redis ext
FROM php:7-fpm
# Install modules
RUN apt-get update && apt-get install -y \
libfreetype6-dev \
libjpeg62-turbo-dev \
libmcrypt-dev \
libpng12-dev \
libmemcached-dev \
libmysqlclient-dev \
libicu-dev \
@diego-mi
diego-mi / index.php
Created July 2, 2017 09:26 — forked from tuupola/index.php
Use JWT Authentication middleware with ZF Expressive
<?php
use Zend\Expressive\AppFactory;
use Firebase\JWT\JWT;
use Slim\Middleware\JwtAuthentication;
chdir(dirname(__DIR__));
require "vendor/autoload.php";
$app = AppFactory::create();
@diego-mi
diego-mi / gist:64673a9c9324041ffae01bcba1272479
Created May 10, 2017 21:41
WordPress: WP_Query $args Ultimate Reference
<?php
/**
* WordPress Query Comprehensive Reference
* Compiled by luetkemj - luetkemj.com
*
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query
* Source: http://core.trac.wordpress.org/browser/tags/3.3.1/wp-includes/query.php
*/
$args = array(