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
| # custom PyCharm VM options | |
| -Xms256m | |
| -Xmx5120m | |
| -XX:ReservedCodeCacheSize=240m | |
| -XX:+UseConcMarkSweepGC | |
| -XX:SoftRefLRUPolicyMSPerMB=50 | |
| -ea | |
| -Dsun.io.useCanonCaches=false | |
| -Djava.net.preferIPv4Stack=true |
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
| #!/bin/bash | |
| # | |
| # --------------------------------------------------------------------- | |
| # PyCharm update script. | |
| # --------------------------------------------------------------------- | |
| #Originally from here: | |
| #http://exponential.io/blog/2015/02/10/install-pycharm-on-ubuntu-linux/ | |
| VER=2019.3.3 | |
| FILE_NO_EXT=pycharm-professional-$VER |
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
| #!/bin/bash | |
| #DL cuda stuff | |
| export PATH=/usr/local/cuda/bin${PATH:+:${PATH}} | |
| export CUDA_HOME=/usr/local/cuda | |
| export LD_LIBRARY_PATH=/usr/local/cuda/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} | |
| export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/extras/CUPTI/lib64 | |
| # if virtualenvwrapper.sh is in your PATH (i.e. installed with pip) | |
| source /usr/local/bin/virtualenvwrapper_py3.sh |
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
| from distutils.version import LooseVersion | |
| import tensorflow as tf | |
| # Check TensorFlow Version | |
| assert LooseVersion(tf.__version__) >= LooseVersion('1.3'), 'Please use TensorFlow version 1.3 or newer' | |
| print('TensorFlow Version: {}'.format(tf.__version__)) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| // ==UserScript== | |
| // @name Slack RTL | |
| // @namespace http://blah | |
| // @version 0.1 | |
| // @description Support RTL/Hebrew in slack.com, from here: https://github.com/gregvish/slackrtl | |
| // @author | |
| // @match https://*.slack.com/* | |
| // @grant GPL | |
| // ==/UserScript== | |
| /* jshint -W097 */ |
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
| [[snippets]] | |
| description = "edit pet configs and snippets" | |
| command = "code ~/.config/pet/snippet.toml" | |
| tag = ["pet"] | |
| output = "" | |
| [[snippets]] | |
| description = "edit snippets_menu jupyter plugin configuration" | |
| command = "code ~/.local/share/jupyter/nbextensions/snippets_menu/my_snippets.js" | |
| tag = ["python", "jupyter"] |
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
| #!/bin/bash | |
| echo "THIS IS THE ROOT 'pip'!" | |
| echo "(The original was renamed to 'pip_ROOT')." | |
| echo "" | |
| echo "Please use a virtual environment to install packages!" | |
| echo "You can activate a vm using 'workon'." |
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
| #Trim terminal command prefix | |
| #ORIGINAL: | |
| #export PS1="\[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ " | |
| export PS1="\[\033[01;34m\]\w\[\033[00m\]\$ " #path only | |
| # --------------------------------------------------------------------- | |
| # DL cuda stuff | |
| # --------------------------------------------------------------------- | |
| source /home/shay/DL_cuda_stuff.sh |