Skip to content

Instantly share code, notes, and snippets.

View guilhermeabell's full-sized avatar
⚠️

Guilherme Abel guilhermeabell

⚠️
View GitHub Profile
@guilhermeabell
guilhermeabell / node_modules.sh
Last active January 20, 2024 18:49
find and remove global node_modules
## command
find . -name "node_modules" -type d -prune -print | xargs du -chs
@guilhermeabell
guilhermeabell / .gitconfig
Last active January 18, 2024 14:48
BranchStash
[alias]
branchstash = "!f() { git stash save \"Stash $(git rev-parse --abbrev-ref HEAD): $1\"; }; f"
# run git branchstash "my changes in the branch"
export const cpfMask = (value) => {
return value
.toString()
.replace(/\D/g, '')
.replace(/(\d{3})(\d)/, '$1.$2')
.replace(/(\d{3})(\d)/, '$1.$2')
.replace(/(\d{3})(\d{1,2})/, '$1-$2')
.replace(/(-\d{2})\d+?$/, '$1')
}
{
"terminal.integrated.fontSize": 14,
"workbench.iconTheme": "material-icon-theme",
"workbench.startupEditor": "newUntitledFile",
"editor.tabSize": 2,
"editor.fontSize": 18,
"editor.lineHeight": 26,
"editor.fontFamily": "Fira Code",
{
"emmet.syntaxProfiles": {
"javascript": "jsx",
"typescript": "tsx",
},
"workbench.startupEditor": "newUntitledFile",
"editor.fontSize": 16,
"javascript.suggest.autoImports": true,
"javascript.updateImportsOnFileMove.enabled": "always",
"editor.rulers": [