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
| { | |
| "babel-preset-expo": "^5.0.0", | |
| "babel-preset-react-native": "^5.0.0", | |
| "jest": "^24.8.0", | |
| "jest-expo": "^26.0.0", | |
| "react-test-renderer": "^16.2.0", | |
| "react": "^16.3.0", | |
| "react-native": "0.61.5", | |
| "@babel/core": "7.13.10" | |
| } |
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
| SELECT *, pg_size_pretty(total_bytes) AS total | |
| , pg_size_pretty(index_bytes) AS INDEX | |
| , pg_size_pretty(toast_bytes) AS toast | |
| , pg_size_pretty(table_bytes) AS TABLE | |
| FROM ( | |
| SELECT *, total_bytes-index_bytes-COALESCE(toast_bytes,0) AS table_bytes FROM ( | |
| SELECT c.oid,nspname AS table_schema, relname AS TABLE_NAME | |
| , c.reltuples AS row_estimate | |
| , pg_total_relation_size(c.oid) AS total_bytes | |
| , pg_indexes_size(c.oid) AS index_bytes |
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
| -- show tables | |
| SELECT * FROM pg_catalog.pg_tables; | |
| -- describe table | |
| select column_name, data_type, character_maximum_length from INFORMATION_SCHEMA.COLUMNS where table_name = 'tablename'; |
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
| jupyter nbconvert --to script config_template.ipynb |
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
| sudo cp jupyter.service /usr/lib/systemd/system/ | |
| sudo systemctl enable jupyter.service | |
| sudo systemctl daemon-reload | |
| sudo systemctl restart jupyter.service | |
| journalctl -u jupyter > /tmp/test.txt && cat /tmp/test.txt |
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
| [Unit] | |
| Description=Jupyter Notebook | |
| [Service] | |
| Type=simple | |
| PIDFile=/run/jupyter.pid | |
| # Step 1 and Step 2 details are here.. | |
| # ------------------------------------ | |
| ExecStart=/usr/local/bin/jupyter notebook --ip=0.0.0.0 --no-browser | |
| User=ubuntu |
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
| sudo jupyter notebook --allow-root --ip=0.0.0.0 --port=80 --no-browser |
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
| *~ | |
| .settings | |
| .project | |
| .factorypath | |
| .cache | |
| .classpath | |
| .tmpBin | |
| *.pyc | |
| .cache-main | |
| .pydevproject |
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
| dd if=/dev/urandom of=/dev/sdX bs=1M |
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
| JOBID=`cat /dev/urandom | tr -dc 'a-zA-Z' | fold -w 10 | head -n 1` | |
| gcloud ml-engine jobs submit training $JOBID \ | |
| --module-name=$MODULE \ | |
| --region=us-central1 \ | |
| --package-path=$PACKAGE \ | |
| --job-dir=$BUCKET \ | |
| --project=$PROJECT \ | |
| --scale-tier=basic_gpu | |