Skip to content

Latest commit

 

History

History
57 lines (47 loc) · 1.92 KB

cheatsheet.md

File metadata and controls

57 lines (47 loc) · 1.92 KB

npm install // install packages in the package.json in same folder npm update npm outdated npm install -g newpackage // installs globally npm install -save newpackage // installs locally and adds to package.json npm install -save-dev newpackage // installs locally and adds to package.json as dev requirement

PATHS c:\users\laventin.LANCS\Appdata\Roaming\npm
c:\users\yobmod\Appdata\Roaming\npm
c:/path/to/npm/webpack // does the local webpack.config.js c:/path/to/npm/gulp // does the local gulp.js

python app.py // runs the flask app python manage.py runserver // runs django app -Wd // flag to show deprections python manage.py runserver_plus // runs django app (plus extensions & wagtail) python manage.py colectstatic python manage.py makemigrations python manage.py migrate python manage.py test (or pytest) python manage.py createsuperuser

mkvirtualenv workon wipeenv pip install -U // upgrade -h // command help pip install -r requirements.txt -r // use req file order pip freeze //show install packages pip freeze > requirements.txt // create (overwrite) reqs pip freeze -r requirements.txt //compare installed apps vs reqs pip freeze | xargs pip uninstall -y //remove all pip installs

git add --all git commit -m "xxxxx" git push origin master git pull origin master git fetch git reset --hard origin/master git clone https://username:[email protected]/NAME/repo.git git remote add origin [email protected]:NAME/repo.git //after rename repo git remote set-url origin [email protected]:name/repo // use ssh ssh-add

heroku run python.... //use python comands (....) on heroku heroku config heroku config:set XXX_XXX=abcabc // no "quote marks" heroku config:unset XXX_XXX heroku restart heroku logs

heroku create --ssh-git //creates a git? heroku keys:add //add ssh git config --global url.ssh://[email protected]/.insteadOf https://git.heroku.com/