-
Coffee and another gems like jquery is installed on yarn and imported on app/javascripts/application.js
rails webpacker:install:coffee
References
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
| // show json as noob | |
| let first_json = { programmer: 'Andre', hair_color: 'Black' } | |
| let secound_json = { programmer: 'Noob guy', hair_color: 'yellow' } | |
| console.log(first_json) | |
| console.log(secound_json) | |
| // show json as a pro: | |
| console.log('%c my jsons', 'color: red; font-weight: bold;') | |
| console.log({ first_json, secound_json }) |
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
| sudo docker run -d \ | |
| --hostname my-rabbit \ | |
| --name rabbit13 \ | |
| -p 8080:15672 \ | |
| -p 5672:5672 \ | |
| -p 25676:25676 \ | |
| rabbitmq:3-management |
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
| # 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) |
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
| 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 |
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
| # 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 |
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
| 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 |
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
| #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] |
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
| " 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 |