Skip to content

Instantly share code, notes, and snippets.

View oliveira-andre's full-sized avatar
🖲️
Coding

André Oliveira oliveira-andre

🖲️
Coding
View GitHub Profile
@oliveira-andre
oliveira-andre / tmux_commands_cheat_sheet.md
Last active May 30, 2020 18:18
tmux commands cheat sheet

the prefix is control+b, before all commands run it.

about session

  • , => rename current session

windows

  • c => new window
  • n => next window
  • p => prevous window
@oliveira-andre
oliveira-andre / commands_on_vim.vim
Last active October 21, 2022 04:18
commands on vim
" noobie commands
h " goto left
j " goto down
k " goto up
l " goto right
w " jump each word foward
b " jump each word back
u " undo changes
^r " redo changes
dd " cut current line
@oliveira-andre
oliveira-andre / deploy.sh
Last active July 24, 2020 15:26
deploy production rails
#enter on server
ssh [email protected]
# adding a user to deploy
adduser deploy
adduser deploy sudo
exit
# copy your ssh file to not need to put your pass
ssh-copy-id [email protected]
@oliveira-andre
oliveira-andre / install_android_studio.sh
Last active February 5, 2022 17:44
install android studio on ubuntu
sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 lib32z1 libbz2-1.0:i386
cd ~/Downloads
wget https://dl.google.com/dl/android/studio/ide-zips/3.6.1.0/android-studio-ide-192.6241897-linux.tar.gz?hl=pt-br
cd /opt/
sudo mv ~/Downloads/android-studio-ide-192.6241897-linux.tar.gz .
sudo tar -xvf android-studio-ide-192.6241897-linux.tar.gz
sudo rm -rf android-studio-ide-192.6241897-linux.tar.gz
cd ~/.icons
wget -o android-studio.png https://upload.wikimedia.org/wikipedia/commons/thumb/3/34/Android_Studio_icon.svg/1024px-Android_Studio_icon.svg.png
cd /usr/share/applications
# Instalar a biblioteca
sudo apt-get install libaio1
# Criar a pasta
sudo mkdir /opt/oracle
# Mover para /opt/oracle
instantclient-basic-linux.x64-19.3.0.0.0dbru.zip
instantclient-sdk-linux.x64-19.3.0.0.0dbru.zip
@oliveira-andre
oliveira-andre / pt.yml
Created December 8, 2019 16:26
translating active records and errors
pt:
save: Salvar
edit: Editar
back: Voltar
add_cart: Adicionar ao carrinho
not_authorized: Não autorizado
not_found: Não encontrado
brazilian_real: R$
no_description: Sem descrição
remove: Remover
@oliveira-andre
oliveira-andre / vpn linux
Created November 21, 2019 21:43
connecting and editing a vpn by linux
# nano /etc/openfortivpn/config
# config file for openfortivpn, see man openfortivpn(1)
host = link_da_vpn
port = porta_da_vpn
username = seu_login
password = sua_senha
trusted-cert = #(deixa sem o cert e depois da primeira conexao ele aparece e você pode copiar e colar)
@oliveira-andre
oliveira-andre / rails_6_notations.md
Last active December 2, 2019 13:36
rails 6 annotations

coffee and jquery

  • Coffee and another gems like jquery is installed on yarn and imported on app/javascripts/application.js

    rails webpacker:install:coffee

    References

@oliveira-andre
oliveira-andre / run docker rabbit
Created November 19, 2019 19:30
run docker rabbit
sudo docker run -d \
--hostname my-rabbit \
--name rabbit13 \
-p 8080:15672 \
-p 5672:5672 \
-p 25676:25676 \
rabbitmq:3-management