Dev

0001-1-1 | programming | | [reference]

small little compilation of various tools i’ve found to be pretty useful.

node modules

dealing with node modules can often be a pain, but it doesn’t have to be. assuming you’re following the general best practice of not checking in your node_modules directory into version control, you may forget to add it to your .gitignore before checking it in. thankfully, there’s a quick solution for such situations:

touch .gitignore && echo "node_modules/" >> .gitignore && git rm -r --cached node_modules ; git status

h/t: https://stackoverflow.com/a/47825219

shuffling nested directories

quick little command to move the contents of a nested directory into the current directory:

mv  -v ~/subfolder/* ~/desiredfolder/

h/t: https://superuser.com/a/658084

module.exports

i’m realizing i’m so ridiculously rusty on all things related to node. some resources that helped me navigate best practices around importing/exporting

web dev

nextjs

infra