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
| #!/usr/bin/env bash | |
| say() { | |
| echo "$@" | sed \ | |
| -e "s/\(\(@\(red\|green\|yellow\|blue\|magenta\|cyan\|white\|reset\|b\|u\)\)\+\)[[]\{2\}\(.*\)[]]\{2\}/\1\4@reset/g" \ | |
| -e "s/@red/$(tput setaf 1)/g" \ | |
| -e "s/@green/$(tput setaf 2)/g" \ | |
| -e "s/@yellow/$(tput setaf 3)/g" \ | |
| -e "s/@blue/$(tput setaf 4)/g" \ | |
| -e "s/@magenta/$(tput setaf 5)/g" \ |
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
| import sys | |
| from pprint import pformat | |
| def read_pip_freeze_file(file_path): | |
| try: | |
| with open(file_path, 'r') as f: | |
| return [l.strip() for l in f.readlines()] | |
| except Exception as e: | |
| print("Error while reading pip freeze file: {}".format(e)) |
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
| # NOTE: To make any function here work with 'watch': | |
| # export -f your-function-name | |
| # watch --exec bash -c your-function-name | |
| function say() { | |
| echo "$@" | sed \ | |
| -e "s/\(\(@\(red\|green\|yellow\|blue\|magenta\|cyan\|white\|reset\|b\|u\)\)\+\)[[]\{2\}\(.*\)[]]\{2\}/\1\4@reset/g" \ | |
| -e "s/@red/$(tput setaf 1)/g" \ | |
| -e "s/@green/$(tput setaf 2)/g" \ | |
| -e "s/@yellow/$(tput setaf 3)/g" \ |
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
| #!/usr/bin/env python3 | |
| """ | |
| quicky script that compares two conda environments | |
| can be handy for debugging differences between two environments | |
| This could be made much cleaner and more flexible -- but it does the job. | |
| Please let me know if you extend or improve it. |
The correct way of creating a private frok by duplicating the repo is documented here.
We assume the following:
- Old or original repo is:
[email protected]:<user>/<old-repo>.git - New mirror will be:
[email protected]:<your_username>/mirror.git
For this, the commands are:
- Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)
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
| name: DL | |
| channels: | |
| - pytorch | |
| - caffe2 | |
| - conda-forge | |
| - soumith | |
| - defaults | |
| dependencies: | |
| - _nb_ext_conf=0.4.0=py36_1 | |
| - anaconda-client=1.6.3=py36_0 |
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
| name: testDL | |
| channels: | |
| - pytorch | |
| - soumith | |
| - defaults | |
| dependencies: | |
| - blas=1.0=mkl | |
| - ca-certificates=2018.12.5=0 | |
| - certifi=2018.11.29=py36_0 | |
| - cffi=1.11.5=py36he75722e_1 |
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
| # Script originally posted by stackOverflow user 'sgDysregulation': | |
| # https://stackoverflow.com/questions/28972614/ipython-notebook-convert-an-html-notebook-to-ipynb | |
| # Requirements: | |
| # beautifulsoup4==4.7.1 | |
| # lxml==4.3.3 | |
| # urllib3==1.24.1 | |
| # simplejson==3.13.2 | |
| # To check if lxml is available as a parser: |