Skip to content

HandyCodeJob/hcj-utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hcj-utils

Adding virtualenv

mkvirtualenv --python=/usr/bin/python3 missingkids
pip install -r requirements.txt

Write all envars from heroku app to .env file

heroku config | tail -n +2 | perl -pe 's/(\w*):\s*(\S*)/$1=$2/g' >> .env

Run python with env vars from file

export $(cat .env | xargs) && python manage.py

Clean out all .pyc files recursively

find . -name '*.pyc' -delete

isort (clean up imports) but skip over some dirs that we should ignore

isort --skip node_modules --skip docs --skip migrations --skip venv --skip settings
grep -rnw . -e "pattern"
grep -rnw . -e "pattern" --include=\*.{py, html, js} --exclude-dir={docs,node_modules}
grep -rnw . -e "pattern" --include=\*.{c,h} --exclude-dir={dir1,dir2,*.dst}

About

Some helpful functions/scripts that HCJ uses.

Resources

License

LGPL-3.0, GPL-3.0 licenses found

Licenses found

LGPL-3.0
COPYING.LESSER
GPL-3.0
COPYING

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages