Skip to content

Instantly share code, notes, and snippets.

Edilson Cichon cichondev

Block or report user

Report or block cichondev

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@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 Oct 2, 2018
Financial Control Sheet (cash flow) / Planilha de Controle Financeiro (fluxo de caixa)
View financial-control-sheet.md

Planilha para Controle Financeiro Pessoal:

Planilha do 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 Nov 5, 2018 — 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
@cichondev
cichondev / install.sh
Created Jan 30, 2017 — forked from fideloper/install.sh
Vagrant Provisioning Script for PHP applications. This installs a LAMP stack.
View install.sh
#!/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'
You can’t perform that action at this time.