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 July 26, 2024 20:17
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 March 28, 2025 12:20
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;