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 / 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
@luizomf
luizomf / docker-windows.txt
Created May 27, 2021 16:23
Docker no Windows
Ativar WSL2
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):
@luizomf
luizomf / cookie-parser.js
Created May 22, 2021 04:05
A super simple cookie parser in JavaScript.
@luizomf
luizomf / atalhos-kde-plasma-konsole-vs-code.md
Created May 15, 2021 19:41
Atalhos úteis quando usando o KDE Plasma, Konsole e VS Code. Isso é só para que eu me lembre quando precisar 😅.

Atalhos úteis quando usando o KDE Plasma

Isso é só para que eu relembre quando necessário 😅.

KDE PLASMA

  • CTRL + F10 - Mostrar todas as janelas
  • CTRL + F9 - Mostrar janelas na área de trabalho atual
  • CTRL + F8 - Mostrar todos os workspaces
  • CTRL + F7 - Mostrar janelas apenas da aplicação atual
@luizomf
luizomf / samba-share.sh
Created May 14, 2021 12:32
Create a samba share on Ubuntu
# Create a samba share Ubuntu
# Install samba
sudo apt install samba samba-common-bin
# Add a user to samba
sudo smbpasswd -a username
# Add configs to /etc/samba/smb.conf
sudo nano /etc/samba/smb.conf
@luizomf
luizomf / rename_user_linux.sh
Last active May 1, 2025 07:07
Rename a user on Linux - Ubuntu - Change username, user id, group id and user home directory.
# Change username from old-username to new-username
sudo usermod -l old-username new-username
# You may also want to rename the user group name
# Change old-group-name to new-group-name
sudo groupmod --new-name old-group-name new-group-name
# If you need to change the user id for some reason
# Change user id for user new-username to 1001
sudo usermod -u 1001 new-username