This file contains 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
youtube-dl -citk --yes-playlist URL |
This file contains 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
sudo apt-get install libsvn-java | |
sudo mkdir -p /usr/java/packages/lib/amd64 | |
sudo chmod 777 -R /usr/java/packages/lib/amd64 | |
cd /usr/java/packages/lib/amd64 | |
ln -s /usr/lib/x86_64-linux-gnu/jni/libsvnjavahl-1.so | |
ln -s /usr/lib/x86_64-linux-gnu/jni/libsvnjavahl-1.so.0 | |
ln -s /usr/lib/x86_64-linux-gnu/jni/libsvnjavahl-1.so.0.0.0 | |
This file contains 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
public class MediaAritmeticaEDesvioPadrao{ | |
public static void main(String[] args) { | |
int tamanhoVetor = 10; | |
double soma = 0; | |
double soma2 = 0d; | |
double media = 0d; | |
double desvioPadrao = 0d; | |
for (int i = 1; i <= tamanhoVetor ; i++) { | |
soma = soma + i; | |
soma2 = soma2 + elevarAoQuadrado(i); |
This file contains 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
<?php | |
class MediaAritmeticaEDesvioPadrao { | |
function main(){ | |
$tamanhoVetor = 10; | |
$soma = 0; | |
$soma2 = 0; | |
$media = 0; | |
$desvioPadrao = 0; | |
for ($i=0; $i <= $tamanhoVetor ; $i++) { | |
$soma = $soma + $i; |
This file contains 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" ?> | |
<math xmlns='http://www.w3.org/1998/Math/MathML' display='block'> | |
<mover> | |
<msub> | |
<mi>n</mi> | |
<mrow/> | |
</msub> | |
<mo>¯</mo> | |
</mover> | |
<mo>=</mo> |
This file contains 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
import java.math.BigDecimal; | |
import java.math.MathContext; | |
import java.math.RoundingMode; | |
public class Pi{ | |
public Pi(){ | |
int p = 15000; | |
Progressao progressao = new Progressao(p); | |
MathContext mx = new MathContext(p, RoundingMode.HALF_EVEN); | |
BigDecimal quadro = new BigDecimal( 4, mx); | |
BigDecimal soma = new BigDecimal( 0, mx); |
This file contains 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
df | |
sudo umount /dev/sdc1 | |
sudo mkfs.vfat -n 'Ubuntu' -I /dev/sdc1 |
This file contains 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
read LOWERPORT UPPERPORT < /proc/sys/net/ipv4/ip_local_port_range | |
while : | |
do | |
PORT="`shuf -i $LOWERPORT-$UPPERPORT -n 1`" | |
ss -lpn | grep -q ":$PORT " || break | |
done | |
echo $PORT |
This file contains 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
WINEARCH="win32" WINEPREFIX=~/.wine-PROGRAMA_HOME/ wineboot -u | |
WINEARCH="win32" WINEPREFIX=~/.wine-PROGRAMA_HOME/ wine "/home/bruno/Downloads/dotNetFx40_Full_x86_x64.exe" | |
WINEARCH="win32" WINEPREFIX=~/.wine-PROGRAMA_HOME/ wine "/home/bruno/Downloads/PROGRAMA_HOME.exe" |
This file contains 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
#Inside mvn(sh)# | |
read LOWERPORT UPPERPORT < /proc/sys/net/ipv4/ip_local_port_range | |
while : | |
do | |
PORT="`shuf -i $LOWERPORT-$UPPERPORT -n 1`" | |
ss -lpn | grep -q ":$PORT " || break | |
done |