Skip to content

Personal docs, brain extensions and useful things

Notifications You must be signed in to change notification settings

BorisTB/storage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

storage

Personal docs, brain extensions and useful things


Contents


Terminal

sudo with TouchID

sudo nano /etc/pam.d/sudo

Add to top:

auth       sufficient     pam_tid.so

NVM

install latest stable node

nvm install stable

install latest LTS version of node (Long Term Support)

nvm install --lts

set default version of node

nvm alias default 22.2.0

list remote available versions of node

nvm ls-remote

create .nvmrc file

node -v > .nvmrc

Yarn

set project yarn version

yarn set version stable --yarn-path

NX

nx.dev

Create new nx workspace

npx create-nx-workspace@latest --pm yarn

Remove app/library

yarn nx g rm *name*

Git

Prune local branches

prune-local-branches.sh


Docker

Cleanup / Prune

sudo docker system prune -f

Javascript


Velocity

camelCase/PascalCase file name to snake-case

#set( $regex = "([a-z])([A-Z]+)")
#set( $replacement = "$1-$2")
#set( $snakeCaseName = $NAME.replaceAll($regex, $replacement).toLowerCase())

Configs

Prettier

.prettierrc

{
  "arrowParens": "always",
  "bracketSpacing": true,
  "bracketSameLine": true,
  "jsxSingleQuote": false,
  "printWidth": 120,
  "quoteProps": "as-needed",
  "semi": false,
  "singleQuote": true,
  "tabWidth": 2,
  "trailingComma": "none",
  "useTabs": false
}

About

Personal docs, brain extensions and useful things

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published