Skip to content

reintroducing/useful-things

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 

Repository files navigation

Useful Things

A collection of snippets that I find useful and wanted to document somewhere so I don't forget them (and not have them astray all over my file system somewhere so I forget I have them).

Chrome

Inspect and style an element in DevTools that normally disappears when inactive

Original Post

setTimeout(() => {
  debugger;
}, 3000);

Git

Move repo remote from one provider to another while retaining history

GitLab to GitHub, for example.

git remotes remove origin
git remotes add origin [url-to-repo].git

npm

Check which files will be published to npm registry

npm pack && tar -xvzf *.tgz && rm -rf package *.tgz

Install a branch of a repo

npm i username/repo#branchName --save-dev

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published