Skip to content

Instantly share code, notes, and snippets.


Edilson Cichon cichondev

View GitHub Profile
View a.php
#!/usr/bin/env 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 / 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
image: mysql:5.7
MYSQL_USER: 'admin'
cichondev /
Last active Jan 17, 2019
Useful/Helpers Commands for working with docker and docker-compose on Laravel.

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 /
Last active Nov 7, 2019
Financial Control Sheet (cash flow) / Planilha de Controle Financeiro (fluxo de caixa)

Planilha para Controle Financeiro Pessoal:

Planilha Google

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

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
<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 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>
cichondev / AWS_Single_LetsEncrypt.yaml
Last active Dec 20, 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
Type: AWS::EC2::SecurityGroupIngress
GroupId: {"Fn::GetAtt" : ["AWSEBSecurityGroup", "GroupId"]}
IpProtocol: tcp
cichondev / ModelUtils.php
Created Aug 21, 2017
Utilities for model Eloquent Laravel
View ModelUtils.php
namespace App;
* Class ModelUtils
* Methods and attributes commonly used by application of models.
* @package App
cichondev /
Created Jun 27, 2017
Solution for working with modal window and JasperReport / iReport. / Solução para se trabalhar com janela modal e JasperReport/iReport.
public void gerarReport(String filePath, List list) throws Exception {
JDialog dialogReport = new JDialog(new javax.swing.JFrame(), "TITLE REPORT", true);
dialogReport.setSize(1000, 700);
InputStream fileReport = getClass().getResourceAsStream(filePath);
Map params = new HashMap();
JRBeanCollectionDataSource dataList = new JRBeanCollectionDataSource(list);
JasperPrint print = JasperFillManager.fillReport(fileReport, params, dataList);
cichondev /
Created May 19, 2017
Class util for working with component Java JTable
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.