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
| /* | |
| * @return Retorna a taxa anual da SELIC de acordo com a data passada (se não for passada nenhuma data retorna a taxa anual do dia de hoje). | |
| * Fonte: https://www.bcb.gov.br/estabilidadefinanceira/selicdadosdiarios | |
| **/ | |
| function SELIC(dataConsulta = new Date()) { | |
| var today = Utilities.formatDate(new Date(), "GMT+3", "dd/MM/yyyy"); | |
| if (dataConsulta.length == 0) | |
| dataConsulta = new Date() |
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
| Clean previous JVMs | |
| ------------------- | |
| 1. Remove all the Java related packages (Sun, Oracle, OpenJDK, IcedTea plugins, GIJ): | |
| dpkg-query -W -f='${binary:Package}\n' | grep -E -e '^(ia32-)?(sun|oracle)-java' -e '^openjdk-' -e '^icedtea' -e '^(default|gcj)-j(re|dk)' -e '^gcj-(.*)-j(re|dk)' -e '^java-common' | xargs sudo apt-get -y remove | |
| sudo apt-get -y autoremove | |
| 2. Purge config files: | |
| dpkg -l | grep ^rc | awk '{print($2)}' | xargs sudo apt-get -y purge | |
| 3. Remove Java config and cache directory: |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <web-app version="2.4" | |
| xmlns="http://java.sun.com/xml/ns/j2ee" | |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"> | |
| <display-name>My App</display-name> | |
| <context-param> | |
| <param-name>log4jConfigLocation</param-name> |