This file contains hidden or 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
function NovoPrecoDoProduto(preco) { | |
var acrescimo = (20 / 100) * preco; | |
return console.log(preco + acrescimo); | |
} | |
NovoPrecoDoProduto(10); |
This file contains hidden or 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
function MultiplicaNumerosReais(num1, num2) { | |
return console.log(num1 * num2); | |
} | |
MultiplicaNumerosReais(2, 2); |
This file contains hidden or 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
#!/bin/bash | |
## By Hebert F. Barros 2019 | |
## Removing any apt ## crashes | |
sudo rm /var/lib/dpkg/lock-frontend ; sudo rm /var/cache/apt/archives/lock ; | |
sudo apt-get update | |
echo 'installing curl' | |
sudo apt install curl -y |
This file contains hidden or 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
Set-ExecutionPolicy AllSigned | |
Set-ExecutionPolicy Bypass -Scope Process | |
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) | |
choco -? |
This file contains hidden or 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
#deb cdrom:[Ubuntu 20.10 _Groovy Gorilla_ - Release amd64 (20201022)]/ groovy main restricted | |
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to | |
# newer versions of the distribution. | |
deb http://br.archive.ubuntu.com/ubuntu/ groovy main restricted | |
# deb-src http://br.archive.ubuntu.com/ubuntu/ groovy main restricted | |
## Major bug fix updates produced after the final release of the | |
## distribution. | |
deb http://br.archive.ubuntu.com/ubuntu/ groovy-updates main restricted |
This file contains hidden or 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
f=mp4 movflags=+faststart hwaccel_device=/dev/dri/renderD128 vf=‘format=nv12,hwupload’ c:v=h264_vaapi vcodec=h264_vaapi threads=2 preset=faster g=15 bf=2 vb=10M acodec=aac ab=256k |
This file contains hidden or 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
echo 'installing nvm' | |
curl -fsSL https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | sh | |
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - | |
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list | |
sudo apt update && sudo apt install yarn node npm | |
sudo apt update && sudo apt install --no-install-recommends yarn | |
export PATH="$PATH:/opt/yarn-[version]/bin" |
This file contains hidden or 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
wget -c https://bootstrap.pypa.io/get-pip.py | |
python get-pip.py |
This file contains hidden or 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
#!/bin/bash | |
## By Hebert F. Barros | |
echo 'Removing any apt crashes...' | |
sudo rm /var/lib/dpkg/lock-frontend | |
sudo rm /var/cache/apt/archives/lock | |
echo 'Updating the dependencies...' | |
sudo apt-get update |
This file contains hidden or 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
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb | |
sudo dpkg -i google-chrome-stable_current_amd64.deb |