Skip to content

Instantly share code, notes, and snippets.

View edilsoncichon's full-sized avatar
🚀

Edilson Cichon edilsoncichon

🚀
View GitHub Profile
@edilsoncichon
edilsoncichon / Laravel Setup Script for Ubuntu 22.sh
Last active December 3, 2024 10:10 — forked from rolandstarke/laravel setup.sh
Ubuntu 22.04 setup bash script for Laravel 10 (PHP and Nginx)
# Ubuntu 20 LTS Server Setup for Laravel
# Login as root user
sudo su -
# Update list of available packages
apt update
@edilsoncichon
edilsoncichon / bitbucket-pipelines.yml
Last active January 21, 2020 19:53
CI/CD of Laravel applications on AWS ElasticBeanStalk with Bitbucket Pipelines. [phpunit, test, php] (I use this configuration in a production project)
definitions:
services:
mysql:
image: mysql:5.7
environment:
MYSQL_DATABASE: 'testing'
MYSQL_USER: 'admin'
MYSQL_PASSWORD: 'admin'
MYSQL_ROOT_PASSWORD: 'admin'
@edilsoncichon
edilsoncichon / README.md
Last active January 17, 2019 21:32
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.

@edilsoncichon
edilsoncichon / financial-control-sheet.md
Last active November 7, 2019 23:24
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! ;)

@edilsoncichon
edilsoncichon / InputDate.vue
Last active April 16, 2018 12:21
Vue JS component for the user to enter the date. Day, month and year are separated into inputs, to avoid problems with browser compatibility.
<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>
@edilsoncichon
edilsoncichon / AWS_Single_LetsEncrypt.yaml
Last active March 19, 2021 17:29 — forked from tony-gutierrez/AWS_Single_LetsEncrypt.yaml
AWS Elastic Beanstalk .ebextensions config for single instance free SSL using letsencrypt certbot and Apache.
# 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
@edilsoncichon
edilsoncichon / ModelUtils.php
Created August 21, 2017 21:44
Utilities for model Eloquent Laravel
<?php
namespace App;
/**
* Class ModelUtils
* Methods and attributes commonly used by application of models.
*
* @package App
*/
@edilsoncichon
edilsoncichon / JasperReportWithWindowModal.java
Created June 27, 2017 15:47
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);
dialogReport.setLocationRelativeTo(null);
InputStream fileReport = getClass().getResourceAsStream(filePath);
Map params = new HashMap();
JRBeanCollectionDataSource dataList = new JRBeanCollectionDataSource(list);
JasperPrint print = JasperFillManager.fillReport(fileReport, params, dataList);
@edilsoncichon
edilsoncichon / JTableUtil.java
Created May 19, 2017 14:26
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