Skip to content

Instantly share code, notes, and snippets.

View lls-ws's full-sized avatar
🏠
Working from home

Leandro Luiz lls-ws

🏠
Working from home
View GitHub Profile
@danperrout
danperrout / SELIC.gs
Created June 3, 2021 16:08
API Função SELIC Google Planilhas (Sheets)
/*
* @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()
@shafinmahmud
shafinmahmud / jdk-remove.txt
Last active January 9, 2026 00:24
Completely Remove JAVA from Linux
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:
@gdenning
gdenning / gist:1155333
Created August 18, 2011 21:48
Spring 3 web.xml with Log4jConfigListener and DispatcherServlet
<?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>