This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$clientSOAP = new SoapClient('http://urlsoap'); | |
$function = 'MetodoChamado'; | |
$arguments = [ | |
'Cpf' => '99999999999' | |
]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div> | |
<textarea :id="id">{{ content }}</textarea> | |
</div> | |
</template> | |
<script> | |
import tinymce from 'tinymce/tinymce' | |
import 'tinymce/themes/modern/theme' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2' | |
networks: | |
laravel: | |
driver: bridge | |
services: | |
postgres: | |
image: postgres:10.2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM debian:jessie | |
RUN apt-get update | |
RUN echo 'deb http://packages.dotdeb.org jessie all' >> /etc/apt/sources.list | |
RUN echo 'deb-src http://packages.dotdeb.org jessie all' >> /etc/apt/sources.list | |
RUN apt-get install -y wget | |
RUN wget https://www.dotdeb.org/dotdeb.gpg | |
RUN apt-key add dotdeb.gpg | |
RUN apt-get update | |
RUN apt-get install -y php7.0-fpm \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM debian:latest | |
RUN apt-get update | |
RUN apt-get install -y apache2 | |
RUN echo "ServerName localhost" >> /etc/apache2/apache2.conf | |
COPY ./boot /usr/local/bin/ | |
RUN chmod +x /usr/local/bin/boot |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM nginx:latest | |
MAINTAINER Diego Mengarda | |
RUN apt-get -qq update && \ | |
apt-get clean && \ | |
apt-get update | |
RUN apt-get install -y --no-install-recommends apt-utils && \ | |
apt-get install -y locales && \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//$entry['interval'] - Intervalo da recorrência (dias, meses ou anos) | |
//$entry['interval_type'] - Tipo de intervaldo (diário, mensal ou anual) | |
$end_date = \Carbon\Carbon::createFromFormat('Y-m-d', $end_date); | |
$due_date = \Carbon\Carbon::createFromFormat('Y-m-d', $entry['due_date']); | |
if ($entry['interval_type'] === 'days') { | |
$entries_number = intval($end_date->diffInDays($due_date) / $entry['interval']); | |
} | |
if ($entry['interval_type'] === 'months') { | |
$entries_number = intval($end_date->diffInMonths($due_date) / $entry['interval']); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker pull postgres:9.4 | |
apt-get -qq update | |
apt-get clean && apt-get update | |
apt-get install -y locales && apt-get install -y build-essential curl software-properties-common | |
locale-gen en_US en_US.UTF-8 pt_BR.UTF-8 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2' | |
services: | |
mysql: | |
image: ambientum/mysql:5.7 | |
container_name: teste-mysql | |
volumes: | |
- ./data:/var/lib/mysql | |
ports: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Start Server Laravel | |
*SWAP file - SOMENTE PARA SERVIDOR CLOUD | |
sudo fallocate -l 1G /swapfile // always 2x real memory | |
sudo mkswap /swapfile | |
sudo chmod 600 /swapfile | |
sudo swapon /swapfile | |
*Update repositories | |
sudo apt-get update |