Se fizer alguma melhoria, compartilhe comigo também! ;)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Ubuntu 20 LTS Server Setup for Laravel | |
# Login as root user | |
sudo su - | |
# Update list of available packages | |
apt update |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
definitions: | |
services: | |
mysql: | |
image: mysql:5.7 | |
environment: | |
MYSQL_DATABASE: 'testing' | |
MYSQL_USER: 'admin' | |
MYSQL_PASSWORD: 'admin' | |
MYSQL_ROOT_PASSWORD: 'admin' |
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.
- https://www.youtube.com/channel/UCQGEOqPP0IJ8Or502xwEaqg
- https://www.youtube.com/channel/UCASYXKcPr9tYaz7Jf3ghuUg
- https://www.youtube.com/user/ENGLISHCLASS101
- https://www.youtube.com/channel/UCrBhVZa7t7D5tZ979eBqO9g
- https://www.youtube.com/user/EnglishByJade
- https://www.youtube.com/user/EnglishLessons4U
- https://www.youtube.com/user/EnglishTeacherAdam
- https://www.youtube.com/user/EnglishTeacherEmma
- https://www.youtube.com/user/AlexESLvid
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App; | |
/** | |
* Class ModelUtils | |
* Methods and attributes commonly used by application of models. | |
* | |
* @package App | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package util; | |
import javax.swing.JTable; | |
import javax.swing.table.DefaultTableModel; | |
public class JTableUtil { | |
/** | |
* Get model jTable in type DefaultTableModel. | |
* @param jTable |
NewerOlder