From 0a7efecce6175036524268df816b3adeedad4e4d Mon Sep 17 00:00:00 2001 From: "dth@taiga.ai" Date: Tue, 17 May 2022 12:27:41 +0200 Subject: [PATCH] dth @ dth-MacBookAir --- tools.md | 44 +++----------------------------------------- 1 file changed, 3 insertions(+), 41 deletions(-) diff --git a/tools.md b/tools.md index ba47cda..bf665b5 100644 --- a/tools.md +++ b/tools.md @@ -29,6 +29,7 @@ * JSON API is the easiet API - [follow the rules](https://jsonapi.org/format/#) * Requesting - use Python-[requests](https://docs.python-requests.org/en/latest/) * **Database / DataWarehouse** + * [Pandas CheatSheet](https://pandas.pydata.org/Pandas_Cheat_Sheet.pdf) * [sqlAlchemy usage](https://www.pythonsheets.com/notes/python-sqlalchemy.html) * [Pandas cheatsheet](https://pandas.pydata.org/Pandas_Cheat_Sheet.pdf) * PostgreSQL ([datetime functs](https://www.postgresql.org/docs/9.1/functions-datetime.html)) @@ -47,7 +48,7 @@ * [git bash solarized :sun_with_face:](https://github.com/speedpacer/gitbash_solarized/issues) * [Music for programming](https://www.musicforprogramming.net) * [OpenStack](https://docs.openstack.org/hacking/latest/user/hacking.html#styleguide): Linting and Pre-commit Hooks -* 🧠 **Algorithms / AI / ML / Modelling** +* :brain: **Algorithms / AI / ML / Modelling** * [open source cousin to GPL3](https://github.com/kingoflolz/mesh-transformer-jax) * [Machine Learning Master](https://machinelearningmastery.com/) is a great resource! * [Probabilistic Machine Learning: Advanced Topics](https://probml.github.io/pml-book/book2.html#toc) @@ -76,11 +77,6 @@ * Follow [naming conventions](https://visualgit.readthedocs.io/en/latest/pages/naming_convention.html) * Follow [software engineering laws](https://www.netmeister.org/blog/software-engineering-laws.html) -# HotKeys -* [Pandas CheatSheet](https://pandas.pydata.org/Pandas_Cheat_Sheet.pdf) -* [GitMoji](https://gitmoji.carloscuesta.me/) -* [My Own cheatsheet](https://gist.github.com/DannyDannyDanny/980b39048ca7c96c4aa7e8c56e917f2e) - # Writing * [HemingwayApp](http://www.hemingwayapp.com) * [Anansi Short Stories](https://en.wikipedia.org/wiki/Anansi) @@ -154,10 +150,6 @@ s -> step n -> next breakpoint ``` -### Resources -* [Custom Token](https://stackoverflow.com/questions/47492150/how-do-i-set-a-custom-token-for-a-jupyter-notebook/51105004) -* [Remote Notebook](https://amber-md.github.io/pytraj/latest/tutorials/remote_jupyter_notebook) -* [Raymon Hettinger Methodologies](https://www.youtube.com/watch?v=Uwuv05aZ6ug) ### Docker one-liner ``` @@ -176,37 +168,6 @@ c.NotebookApp.password = '' python -m jupyter lab --no-browser --port=8889 --LabApp.token=password ``` -### on unix / linux server -``` -sudo apt-get update -#sudo apt-get install libhdf5-serial-dev hdf5-tools libhdf5-dev zlib1g-dev zip libjpeg8-dev -sudo apt-get install python3-pip python3-dev -pip3 install virtualenv -git clone -virtualenv / -cd -source bin/activate -pip install jupyterlab -python -m ipykernel install --user --name=verbose-adventure-env -jupyter notebook --no-browser --port=8889 --NotebookApp.token=password -``` - -### on local machine -``` -ssh -N -f -L localhost:8888:localhost:8889 @ -``` - -### in atom setup hydrogen: -```json -[{ - "name": "Remote server", - "options": { - "baseUrl": "http://http://localhost:8889", - "token": "password" - } -}] -``` - ### Console + Logging [[src](https://askubuntu.com/a/731237/882709)] Overwrite or Append program stdout to logfile while displaying stdout **and `stderr`**. @@ -312,4 +273,5 @@ $ tskill 4984 [coverage-badge]: https://img.shields.io/badge/Coverage-100%25-brightgreen.svg + [^1]: Read about the [difference between docker repos and registries](https://stackoverflow.com/a/34004418/5684214)