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
exa: | |
description: A modern version of ‘ls’. | |
urls: | |
- https://github.com/ogham/exa | |
- https://the.exa.website/ | |
install: | |
package managers: https://the.exa.website/#installation | |
cargo: cargo install exa | |
.bashrc: | | |
alias ls='exa' |
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
Install Rust: | |
$ sudo apt-get install libc-dev | |
$ curl https://sh.rustup.rs -sSf | sh | |
$ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh | |
Update Rust: | |
$ rustup self update | |
$ rustup update | |
Rust is distributed on three different release channels: |
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
#!/bin/bash | |
vcgencmd measure_temp | |
sysbench --test=cpu --cpu-max-prime=20000 --num-threads=4 run >/dev/null 2>&1 | |
vcgencmd measure_temp | |
sysbench --test=cpu --cpu-max-prime=20000 --num-threads=4 run >/dev/null 2>&1 | |
vcgencmd measure_temp | |
sysbench --test=cpu --cpu-max-prime=20000 --num-threads=4 run >/dev/null 2>&1 | |
vcgencmd measure_temp | |
sysbench --test=cpu --cpu-max-prime=20000 --num-threads=4 run >/dev/null 2>&1 | |
vcgencmd measure_temp |
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
http://www.oracle.com/technetwork/topics/linuxsoft-082809.html | |
https://oraculo.serpro.gov.br/pergunta/109/como-instalar-o-sqlplus-em-ambiente-linux/ | |
Instalar SQLPlus: | |
1. Executar o comando: sudo apt-get install libaio1 | |
2. Baixar o instantclient-basiclite-linux e o instantclient-sqlplus-linux | |
3. Registrar as variáveis ORACLE_HOME, TNS_ADMIN e LD_LIBRARY_PATH para a pasta que possui os arquivos extraídos: | |
$ export ORACLE_HOME=[DIRETÓRIO] | |
$ export LD_LIBRARY_PATH=[DIRETÓRIO]:$LD_LIBRARY_PATH | |
$ export TNS_ADMIN=[DIRETÓRIO] |
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
Unix dependencies: | |
$ sudo apt-get install -y make build-essential zlib1g-dev wget curl | |
?libssl-dev | |
?libbz2-dev | |
?libreadline-dev | |
?libsqlite3-dev | |
?llvm | |
?libncurses5-dev | |
?libncursesw5-dev |
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
const food = { | |
init: function(type) { | |
this.type = type | |
}, | |
eat: function() { | |
console.log('you ate the ' + this.type) | |
}, | |
create: function(type) { | |
const o = Object.create(food) | |
o.init(type) |