Skip to content

Instantly share code, notes, and snippets.

View luizomf's full-sized avatar
🙃
Segue programando =)

Luiz Otávio luizomf

🙃
Segue programando =)
View GitHub Profile
@luizomf
luizomf / zsh.sh
Created August 21, 2021 16:35
Ativando ZSH no Ubuntu.
# ZSH
sudo apt install zsh -y
sudo apt-get install powerline fonts-powerline -y
git clone https://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
chsh -s /bin/zsh
# REBOOT
# sudo reboot
@luizomf
luizomf / tutorial.txt
Created August 7, 2021 10:51
WSL2 e Docker no Windows 10.
### Tutorial oficial:
https://docs.microsoft.com/en-us/windows/wsl/install-win10
### Passo 1 (PowerShell Admin):
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
### Passo 2 (PowerShell Admin):
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
### Passo 3
@luizomf
luizomf / commands.sh
Last active March 10, 2022 12:42
MySQL 8 vídeo commands https://youtu.be/Mv8Xx8zZ69A - Quer aprender a instalar e configurar o MySQL 8 no Ubuntu com explicações clara sobre cada passo da instalação? Bora lá então.
# Criar chave ssh no computador local
ssh-keygen -t rsa -b 4096 -f ~/.ssh/novachave -C "luizotavio"
# Atualizando pacotes no servidor
sudo apt update
sudo apt upgrade
sudo apt install mysql-server mysql-client
sudo mysql_secure_installation
# Entrando no mysql
@luizomf
luizomf / keybindings.json
Created August 1, 2021 16:32
My Vs Code settings.json and keybindings.json.
// Place your key bindings in this file to override the defaultsauto[]
[
{
// + Zoom na fonte
"key": "ctrl+alt+cmd+=",
"command": "editor.action.fontZoomIn"
},
{
// - Zoom na fonte
"key": "ctrl+alt+cmd+-",
@luizomf
luizomf / restore-grub.md
Created July 30, 2021 17:08
Restore Ubuntu Grub EFI
sudo mount /dev/sdXY /mnt
sudo mount /dev/sdXX /mnt/boot/efi
for i in /dev /dev/pts /proc /sys /run; do sudo mount -B $i /mnt$i; done
sudo chroot /mnt
grub-install /dev/sdX
update-grub  

Note : sdX = disk | sdXX = efi partition | sdXY = system partition

@luizomf
luizomf / shortcuts.md
Created July 26, 2021 10:21
Mac OS text navigation shortcuts in VS Code.
ctrl k          ---     Delete all to the right of the cursor
ctrl -          ---     Go back
ctrl shift -    ---     Go back
ctrl g          ---     Go to line or column
ctrl j          ---     Join lines
ctrl t          ---     Transpose letters
ctrl p          ---     Arrow up
ctrl n          ---     Arrow down
ctrl b --- Arrow left 
@luizomf
luizomf / README.md
Last active January 25, 2023 16:41
Deploy de aplicações React JS com NGINX and Netlify - https://youtu.be/0iWOynMAYio
@luizomf
luizomf / Insomnia_2021-07-10.yaml
Created July 10, 2021 12:51
Insomnia Export - GraphQL Course
_type: export
__export_format: 4
__export_date: 2021-07-10T12:35:32.103Z
__export_source: insomnia.desktop.app:v2021.4.0
resources:
- _id: req_704712d857a6467398fe33cc256861e9
parentId: fld_eb580b455900487a8e4cf336beb24a97
modified: 1625087424013
created: 1625080330699
url: "{{ _.baseUrl }}"
@luizomf
luizomf / module.py
Created July 1, 2021 20:22
Getters e setters - Reforço
# SETTER = CONFIGURANDO UM VALOR (=)
# GETTER = OBTER UM VALOR (.)
class Pessoa:
def __init__(self, nome):
self._nome = nome
@property
def nome(self):
return self._nome
@luizomf
luizomf / links.txt
Created June 6, 2021 18:00
Links mencionados no vídeo