Skip to content

Instantly share code, notes, and snippets.

View josemalcher's full-sized avatar
🙃
Hello World!

José Malcher Jr. josemalcher

🙃
Hello World!
View GitHub Profile
@josemalcher
josemalcher / commands-vagrant.md
Created December 10, 2015 14:59 — forked from guisjlender/commands-vagrant.md
Comandos básicos para se tranalhar com o Vagrant

Comandos básicos do Vagrant

Init

  • vagrant init [box-name] [box-url]
  • Cria o arquivo Vagrantfile com as configurações do box que você informou no [box-name], caso você não tenha o box ainda adicionado é obrigatório passar o [box-url] para que ele possa baixa-lo

Up

  • vagrant up
    • Cria e inicia a instancia após o comando vagrant init
#!/bin/bash
####################### ATENCAO #########################
#
# VI ESTA DICA EM ALGUM GIST, MAS NÃO TENHO MAIS A URL
# POREM EU ALTEREI PARA FAZER BACKUP DE TODAS AS BASES
# E ADICIONEI A QUESTÃO DE PODER ADICIONAR O USUÁRIO
# E EMAIL NA LINHA DE COMANDO DO git
#
#########################################################
#se você usar apenas usuário sem senha, use este linha abaixo
@josemalcher
josemalcher / git.md
Created July 19, 2016 19:19 — forked from leocomelli/git.md
Lista de comandos úteis do GIT

#GIT

Estados

  • Modificado (modified);
  • Preparado (staged/index)
  • Consolidado (comitted);

Ajuda

@josemalcher
josemalcher / Condig_MySQLTunning-Parte2.txt
Created October 15, 2017 23:51
MySQL Tunning - Parte 2 - Config
[client]
###
### client section - used for "mysql", "mysqladmin" and similar command line
### clients.
###
#port = 3306
#socket = /tmp/mysql.sock
### Just in case your current configuration is not using default values.
@josemalcher
josemalcher / gist:741f183ce3302b475bd38cfd6e431cc6
Created February 9, 2018 02:27 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@josemalcher
josemalcher / site_helper.php
Created March 9, 2018 19:07 — forked from wwwbruno/site_helper.php
Helper com funções úteis para o Codeigniter
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
| -------------------------------------------------------------------------
| Site Helper
| -------------------------------------------------------------------------
| Desenvolvido por Bruno Almeida
|
*/
{
"estados": [
{
"sigla": "AC",
"nome": "Acre",
"cidades": [
"Acrelândia",
"Assis Brasil",
"Brasiléia",
"Bujari",
@josemalcher
josemalcher / scopeDateVerify.js
Created July 12, 2018 14:51
Verificação de Datas JS/Jquery
/****************************************************************************
* Verificação de Datas
* https://www.w3schools.com/js/js_dates.asp
* https://www.w3schools.com/js/js_date_methods.asp
* https://pt.stackoverflow.com/questions/191886/n%C3%A3o-permitir-a-inser%C3%A7%C3%A3o-de-uma-data-posterior-a-outra-j%C3%A1-inserida
* **************************************************************************/
$('#expedicao').on('focusout', function(){
var dateObj1 = new Date($('#expedicao').val());
if(dateObj1.getFullYear() < 1930 ){
@josemalcher
josemalcher / README-Template.md
Created August 7, 2018 00:10 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@josemalcher
josemalcher / Dockerfile
Created May 30, 2019 02:15 — forked from gabrielfroes/Dockerfile
Docker + VS Code #CDFTV #MaoNoCodigo3
FROM php:7.2-apache
RUN docker-php-ext-install mysqli
RUN a2enmod rewrite