Skip to content

Instantly share code, notes, and snippets.

@juizmill
juizmill / remove-x-powered-by.sh
Created June 1, 2019 01:48
Remove o nome x-powered-by do easyengine v4
#! /bin/bash
while :
do
read -p "Qual é o nome do site: " _SITENAME
if [[ $_SITENAME == "" ]]; then
echo "O nome do site não pode esta em branco!"
continue
else
break
@juizmill
juizmill / settings.js
Created March 11, 2019 17:09
Minha configuração padrão do VS code
{
"editor.fontSize": 16,
"explorer.openEditors.visible": 0,
"workbench.editor.enablePreview": false,
"files.trimTrailingWhitespace": true,
"files.trimFinalNewlines": true,
"editor.wordWrap": "off",
"editor.formatOnPaste": true,
"editor.multiCursorModifier": "ctrlCmd",
"editor.snippetSuggestions": "top",
@juizmill
juizmill / limpaze.md
Last active March 6, 2019 14:26
Comandos docker para fazer limpeza..

Limpa containers:

docker rm -f $(docker ps -a -q)

limpa images:

docker rmi -f $(docker images -a -q)

limpa volumes:

@juizmill
juizmill / descricao.md
Created February 11, 2019 18:43
Aula 8 - descrição

Para facilitar os nossos estudos estou deixando o link do manual do Zend Framework onde mostra o passo a passo da instalação do Skeleton-Application

Aqui está a lista com todos os componentes que iremos utilizar

  • zendframework/zend-mvc
  • zfcampus/zf-development-mode
  • zendframework/zend-cache
  • zendframework/zend-db
  • zendframework/zend-mvc-form
  • zendframework/zend-json
@juizmill
juizmill / deploy.php
Created February 5, 2019 12:00
Arquivo de deploy Laravel na hospedagem KingHost servidor Linux
<?php
namespace Deployer;
require 'recipe/laravel.php';
set('application', 'Nome do APP');
//set('default_stage', 'production');
set('branch', 'master');
// Project repository
@juizmill
juizmill / teste.php
Last active November 19, 2018 14:16
Exemplo de retornos
<?php
$data = [
'fornecedor' => [
'id' => $fornecedor->ID_FORNECEDOR,
'text' => function () use ($fornecedor){
$nome = $fornecedor->RAZAOSOCIAL ;
if ($fornecedor->RAZAOSOCIAL == null) {
$nome = $fornecedor->FANTASIA;
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDeB+a18DvcgSAYPRxgZXJ4YMcvBe8ipbIOOyDEHT7yHypjx1KlPqJq8cziUHIqF4OqQE8YaQkA97IMBkc+yg7IRASyXSoS9HvrEas3ljE6MyruGnbfKj/rjrR3walTwG33wC1sAT0PTVS4Y4enpw2f4x64OpHAxiON9uC9F3iSh2v1PkdWLdVyJCppzz1o7KRXtyYFdvAv3KKsBPEaYpmvP01aAKquFKzCHZihQ9onC62Iqu2JgblayCXMQivsfOi8QnSDTbTsP93VwKtVqY/4xB4UqsqRuWZEXuV7RqSxHnKI8H7O/xk7YWtH/Avmj1XNYZ0AX7FOw8OtB6MAF4Lh Projeto2@SUPORTE
@juizmill
juizmill / list.md
Last active May 9, 2017 20:02
List components PHP
@juizmill
juizmill / .gitconfig
Last active May 5, 2017 14:25
config git from golang by repository private
Em repositório privado só ADD esta configuração no arquivo .gitconfig
[url "[email protected]:"]
insteadOf = https://github.com/
[url "[email protected]:"]
insteadOf = https://gitlab.com/
[url "[email protected]:"]
insteadOf = https://bitbucket.com/
@juizmill
juizmill / module.php
Created March 31, 2016 12:23
Exemple Module.php ZF2
<?php
namespace Base;
use Zend\Mvc\I18n\Translator;
use Zend\Mvc\ModuleRouteListener;
use Zend\Mvc\MvcEvent;
class Module
{