Skip to content

Instantly share code, notes, and snippets.

View josivantarcio's full-sized avatar

Josevan Oliveira josivantarcio

View GitHub Profile
@josivantarcio
josivantarcio / anydeskuninstall.sh
Created November 22, 2023 23:04 — forked from LinuxDevOpsGirl/anydeskuninstall.sh
Uninstall AnyDesk & Install New AnyDesk Ubuntu 16 64 bit Machine
sudo apt-get purge anydesk
sudo apt-get autoclean
sudo apt-get autoremove
sudo apt update
sudo apt list --upgradable
sudo apt upgrade -y
https://download.anydesk.com/linux/anydesk_4.0.0-1_amd64.deb
sudo dpkg -i anydesk_4.0.0-1_amd64.deb
sudo apt install -f
sudo apt update
@josivantarcio
josivantarcio / gist:5b1e4cb84b287d7fec80c8885366e998
Created January 10, 2023 00:10 — forked from leandrogilvalle/gist:7f30c0a276e28d8d9dc9dd06155b324d
Java - Mostrar a quantidade de linhas no arquivo
public void imprimirQuantidadeLinhasArquivo() throws IOException {
File arquivoLeitura = new File("arquivo.txt");
LineNumberReader linhaLeitura = new LineNumberReader(new FileReader(arquivoLeitura));
linhaLeitura.skip(arquivoLeitura.length());
int qtdLinha = linhaLeitura.getLineNumber();
System.out.println("Quantidade de Linhas no arquivo: " + qtdLinha);
}
<?xml version="1.0" encoding="UTF-8"?>
<module type="PYTHON_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>