Skip to content

Instantly share code, notes, and snippets.

Avatar

Edilson Cichon cichondev

View GitHub Profile
View a.php
#!/usr/bin/env php
<?php
use App\Domains\Shipment\Shipment;
use Illuminate\Database\Eloquent\Collection;
use Illuminate\Foundation\Application;
use App\Domains\Connector\Connector;
use App\Domains\Connector\Integrators\CloudHQIntegrator;
use App\Domains\ShipmentItem\ShipmentItem;
use App\Domains\Store\Store;
@cichondev
cichondev / bitbucket-pipelines.yml
Last active Jan 21, 2020
CI/CD of Laravel applications on AWS ElasticBeanStalk with Bitbucket Pipelines. [phpunit, test, php] (I use this configuration in a production project)
View bitbucket-pipelines.yml
definitions:
services:
mysql:
image: mysql:5.7
environment:
MYSQL_DATABASE: 'testing'
MYSQL_USER: 'admin'
MYSQL_PASSWORD: 'admin'
MYSQL_ROOT_PASSWORD: 'admin'
@cichondev
cichondev / README.md
Last active Jan 17, 2019
Useful/Helpers Commands for working with docker and docker-compose on Laravel.
View README.md

Simple Environment for Laravel with Docker

Simply copy these two files to the root of your project.

And in the terminal type: $ ./bin up

This should already serve a simple Laravel application in [https://localhost] (https://localhost)

See the "bin" file carefully for the commands that can be executed, and you can add yours easily.

@cichondev
cichondev / financial-control-sheet.md
Last active Nov 7, 2019
Financial Control Sheet (cash flow) / Planilha de Controle Financeiro (fluxo de caixa)
View financial-control-sheet.md

Planilha para Controle Financeiro Pessoal:

Planilha Google

Se fizer alguma melhoria, compartilhe comigo também! ;)

@cichondev
cichondev / InputDate.vue
Last active Apr 16, 2018
Vue JS component for the user to enter the date. Day, month and year are separated into inputs, to avoid problems with browser compatibility.
View InputDate.vue
<template>
<div>
<select v-model="day" :name="idDay" :id="idDay" :disabled="disabled">
<option value="">day</option>
<option v-for="n in 31" :value="n">{{ n++ }}</option>
</select>
<select v-model="month" :name="idMonth" :id="idMonth" :disabled="disabled">
<option value="">month</option>
<option v-for="(month, key) in months" :value="key+1">{{ month }}</option>
</select>
@cichondev
cichondev / AWS_Single_LetsEncrypt.yaml
Last active Sep 29, 2020 — forked from tony-gutierrez/AWS_Single_LetsEncrypt.yaml
AWS Elastic Beanstalk .ebextensions config for single instance free SSL using letsencrypt certbot and Apache.
View AWS_Single_LetsEncrypt.yaml
# Dont forget to set the env variable "CERT_DOMAIN", and either fill in your email below or use an env variable for that too.
# Also note that this config is using the LetsEncrypt staging server, remove the flag when ready!
# @source https://gist.github.com/tony-gutierrez/198988c34e020af0192bab543d35a62a#file-aws_single_letsencrypt-yaml-L2
Resources:
sslSecurityGroupIngress:
Type: AWS::EC2::SecurityGroupIngress
Properties:
GroupId: {"Fn::GetAtt" : ["AWSEBSecurityGroup", "GroupId"]}
IpProtocol: tcp
@cichondev
cichondev / ModelUtils.php
Created Aug 21, 2017
Utilities for model Eloquent Laravel
View ModelUtils.php
<?php
namespace App;
/**
* Class ModelUtils
* Methods and attributes commonly used by application of models.
*
* @package App
*/
@cichondev
cichondev / JasperReportWithWindowModal.java
Created Jun 27, 2017
Solution for working with modal window and JasperReport / iReport. / Solução para se trabalhar com janela modal e JasperReport/iReport.
View JasperReportWithWindowModal.java
public void gerarReport(String filePath, List list) throws Exception {
JDialog dialogReport = new JDialog(new javax.swing.JFrame(), "TITLE REPORT", true);
dialogReport.setSize(1000, 700);
dialogReport.setLocationRelativeTo(null);
InputStream fileReport = getClass().getResourceAsStream(filePath);
Map params = new HashMap();
JRBeanCollectionDataSource dataList = new JRBeanCollectionDataSource(list);
JasperPrint print = JasperFillManager.fillReport(fileReport, params, dataList);
@cichondev
cichondev / JTableUtil.java
Created May 19, 2017
Class util for working with component Java JTable
View JTableUtil.java
package util;
import javax.swing.JTable;
import javax.swing.table.DefaultTableModel;
public class JTableUtil {
/**
* Get model jTable in type DefaultTableModel.
* @param jTable
You can’t perform that action at this time.