Skip to content

Instantly share code, notes, and snippets.


Edilson Cichon cichondev

View GitHub Profile
cichondev /
Created Jan 30, 2017 — forked from fideloper/
Vagrant Provisioning Script for PHP applications. This installs a LAMP stack.
#!/usr/bin/env bash
echo ">>> Starting Install Script"
# Update
sudo apt-get update
# Install MySQL without prompt
sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password password root'
sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password_again password root'
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
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 / 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 / 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 /
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 / 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'
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;
You can’t perform that action at this time.