Skip to content

Instantly share code, notes, and snippets.

View guibarbosadev's full-sized avatar

Guilherme Barbosa guibarbosadev

View GitHub Profile
@guibarbosadev
guibarbosadev / ubuntu_shortcuts.txt
Last active July 14, 2022 18:44
Ubuntu - Shortcuts
-- General --
Switch between windows: ctrl + '
Quit app: ctrl + q
Close all app's windows: ctrl + shift + w
Change focus between option on opened alert: tab
Select focused option on opened alert: space
See current applications: super
Switch to workspace below: ctrl + shift + page down
Switch to workspace above: ctrl + shift + page up
Change display setup: super + t
@guibarbosadev
guibarbosadev / gerador_de_cpf.js
Last active July 6, 2020 04:19
Gerador de CPF
function validatorDigit(CPF) {
const CPFCopy = [...CPF];
const initialSumValue = 0;
const sum = CPFCopy.reverse().reduce((previousValue, currentValue, index) => {
const multiplicator = index + 2;
const currentSum = previousValue + currentValue * multiplicator;
return currentSum;
}, initialSumValue);
const digit = (sum * 10) % 11;
@guibarbosadev
guibarbosadev / macos_shortcuts.txt
Last active August 18, 2023 18:48
Mac OS - Shortcuts
-- General --
Close app: cmd + Q
Toggle fullscreen: ctrl + cmd + f
Switch between apps: cmd + tab
Switch between windows: cmd + `
App preferences: cmd + ,
Toggle auto/fixed Dock: cmd + option + d
Change focus between option on opened alert: tab
Select focused option on opened alert: space
Previous tab: cmd + shift + {