Skip to content

Instantly share code, notes, and snippets.

@thkprado
thkprado / installPythonSource.txt
Created February 18, 2016 18:55
Install Python - Source Compile Method
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
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)
@thkprado
thkprado / cpu_benchmark.sh
Last active June 17, 2018 13:24
rpi benchmark
#!/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
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]
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'
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: