Skip to content

Instantly share code, notes, and snippets.

View knnth's full-sized avatar
🎯
Focusing

Kenneth knnth

🎯
Focusing
View GitHub Profile
@tonymtz
tonymtz / gist:d75101d9bdf764c890ef
Last active May 7, 2024 13:07
Uninstall nodejs from OSX Yosemite
# first:
lsbom -f -l -s -pf /var/db/receipts/org.nodejs.pkg.bom | while read f; do sudo rm /usr/local/${f}; done
sudo rm -rf /usr/local/lib/node /usr/local/lib/node_modules /var/db/receipts/org.nodejs.*
# To recap, the best way (I've found) to completely uninstall node + npm is to do the following:
# go to /usr/local/lib and delete any node and node_modules
cd /usr/local/lib
sudo rm -rf node*
@manuholiveira
manuholiveira / CID10.SQL
Last active August 3, 2022 20:25
Carga para inserir todos os registro do CID10
This file has been truncated, but you can view the full file.
INSERT INTO CID10 VALUES ('A00.0','Cólera devida a Vibrio 01, biótipo ');
INSERT INTO CID10 VALUES ('A00.1','Cólera devida a Vibrio 01, biótipo El Tor');
INSERT INTO CID10 VALUES ('A00.9','Cólera não especificada');
INSERT INTO CID10 VALUES ('A01.0','Febre tifóide');
INSERT INTO CID10 VALUES ('A01.1','Febre paratifóide A');
INSERT INTO CID10 VALUES ('A01.2','Febre paratifóide B');
INSERT INTO CID10 VALUES ('A01.3','Febre paratifóide C');
INSERT INTO CID10 VALUES ('A01.4','Febre paratifóide não especificada');
INSERT INTO CID10 VALUES ('A02.0','Enterite por salmonela');
INSERT INTO CID10 VALUES ('A02.1','Septicemia por salmonela');
@rponte
rponte / GenerateSimplePdfReportWithJasperReports.java
Last active May 7, 2022 10:25
Example on how to generate a simple pdf report with JasperReports
package rponte.report;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.sql.Connection;
import java.sql.SQLException;
import java.util.HashMap;
import java.util.Map;
import net.sf.jasperreports.engine.JRException;