This file contains hidden or 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
| # download docker rpm package connectivity machine : curl https://download.docker.com/linux/centos/7/x86_64/stable/Packages/docker-ce-17.09.0.ce-1.el7.centos.x86_64.rpm -o docker.rpm | |
| # copy it to server via scp/ssh | |
| yum install -y docker-ce-17.09.0.ce-1.el7.centos.x86_64.rpm -o docker.rpm | |
| systemctl start docker | |
| systemctl enable docker |
This file contains hidden or 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
| # https://github.com/docker/compose/releases/ download docker-compose | |
| # copy it to server via scp/ssh | |
| mv docker-compose-Linux-x86_64 docker-compose | |
| sudo mv docker-compose /usr/local/bin/ | |
| sudo chmod +x /usr/local/bin/docker-compose |
This file contains hidden or 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
| import com.fasterxml.jackson.databind.JavaType; | |
| import com.fasterxml.jackson.databind.ObjectMapper; | |
| import com.fasterxml.jackson.databind.type.CollectionType; | |
| import org.slf4j.Logger; | |
| import org.slf4j.LoggerFactory; | |
| import org.springframework.beans.factory.annotation.Autowired; | |
| import org.springframework.boot.web.client.RestTemplateBuilder; | |
| import org.springframework.http.HttpEntity; | |
| import org.springframework.http.HttpMethod; | |
| import org.springframework.http.HttpStatus; |
This file contains hidden or 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
| var problemCount = [[${tawDto.problemCount}]]; | |
| var warningCount = [[${tawDto.warningCount}]]; | |
| var notReviewCount = [[${tawDto.notReviewCount}]]; | |
| $(document).ready(function() { | |
| var browsersChart = Morris.Donut({ | |
| element: 'donut-example', | |
| data: [ | |
| {label: "Problem", value: problemCount}, |
This file contains hidden or 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
| /* https://datatables.net/extensions/buttons/examples/html5/excelAutoFilter.html */ | |
| ... | |
| $(document).ready( function() { | |
| $('#example').DataTable( { | |
| dom: 'Bfrtip', | |
| buttons: [ { | |
| extend: 'excelHtml5', | |
| autoFilter: true, | |
| sheetName: 'Exported data' | |
| } ] |
This file contains hidden or 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
| ... | |
| /*https://stackoverflow.com/questions/15131582/jsf-file-download-doesnt-work*/ | |
| <h:commandButton value="download" action="#{myBean.download()}" /> | |
| <f:ajax disabled="true"/> | |
| </h:commandButton> | |
| ... |
This file contains hidden or 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
| ... | |
| <!-- https://bugs.eclipse.org/bugs/show_bug.cgi?id=547340 --> | |
| <properties> | |
| <maven-jar-plugin.version>3.1.1</maven-jar-plugin.version> | |
| </properties> | |
| ... |
This file contains hidden or 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
| ... | |
| ExternalContext ectx = FacesContext.getCurrentInstance().getExternalContext(); | |
| HttpServletResponse response = (HttpServletResponse) ectx.getResponse(); | |
| OutputStream out = response.getOutputStream(); | |
| response.setContentType("application/vnd.ms-excel"); | |
| String filename = "Failed_Users_"+ dateFormat.format(date).toString() + ".xls"; | |
| String attachmentName = "attachment; filename=\"" + filename + "\""; | |
| response.setHeader("Content-disposition", attachmentName); |
This file contains hidden or 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
| ... | |
| <div id="idModal" class="modal hide" data-backdrop="static" data-keyboard="false"> | |
| ... |
This file contains hidden or 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
| $('.table').dataTable({ | |
| bAutoWidth: false, | |
| aoColumns : [ | |
| { sWidth: '15%' }, | |
| { sWidth: '15%' }, | |
| { sWidth: '15%' }, | |
| { sWidth: '15%' }, | |
| { sWidth: '15%' }, | |
| { sWidth: '15%' }, | |
| { sWidth: '10%' } |