This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #{"rootDirectory":"","phpVersion":"8.2"} | |
| server { | |
| listen 80; | |
| listen [::]:80; | |
| listen 443 ssl http2; | |
| listen [::]:443 ssl http2; | |
| {{ssl_certificate_key}} | |
| {{ssl_certificate}} | |
| {{server_name}} | |
| {{root}} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Run a test from the container (with the right module settings) | |
| DJANGO_SETTINGS_MODULE=lms.envs.test python -m pytest lms/djangoapps/instructor/tests/test_api.py -xvs | |
| # Create admin user // change dev to local if required | |
| tutor dev do createuser --staff --superuser javier javier.ontiveros@wgu.edu |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # get the files | sort by size | don't list by specific text | limit of the list | |
| git ls-tree -r -t -l --full-name HEAD | sort -n -k 4 | grep -v '.js' | tail -n 30 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const downLoadImages = (links, title = 'img') => { | |
| links.forEach((element, i) => { | |
| const a = document.createElement('a'); | |
| a.setAttribute('href', element); | |
| a.setAttribute('download', `${title}_${i}.png`); | |
| document.body.appendChild(a); | |
| a.click(); | |
| a.remove(); | |
| }); |