diff --git a/.gitignore b/.gitignore index c150ca4..2e5ed6b 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ config/mpv/watch_later/ config/fish/fishd.* config/fish/conf.d/ config/fish/fish_variables +config/fish/conf.d/virtualfish-loader.fish config/ranger/bookmarks config/ranger/history config/ranger/tagged diff --git a/bin/07-nodejs.fish b/bin/07-nodejs.fish index 14d7817..50188ce 100755 --- a/bin/07-nodejs.fish +++ b/bin/07-nodejs.fish @@ -14,4 +14,5 @@ yarnpkg config set selenium_cdnurl https://npm.taobao.org/mirrors/selenium --glo yarnpkg config set sqlite3_binary_host_mirror "https://foxgis.oss-cn-shanghai.aliyuncs.com/" --global && \ yarnpkg config set profiler_binary_host_mirror "https://npm.taobao.org/mirrors/node-inspector/" --global && \ yarnpkg config set chromedriver_cdnurl "https://cdn.npm.taobao.org/dist/chromedriver" --global && \ -yarnpkg config set node_inspector_cdnurl https://npm.taobao.org/mirrors/node-inspector --global +yarnpkg config set node_inspector_cdnurl https://npm.taobao.org/mirrors/node-inspector --global && \ +yarnpkg config set sentrycli_cdnurl 'https://npm.taobao.org/mirrors/sentry-cli' diff --git a/ubuntu/install-cuda.sh b/ubuntu/install-cuda.sh new file mode 100755 index 0000000..7e98c1d --- /dev/null +++ b/ubuntu/install-cuda.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +set -e +sudo apt install linux-headers-$(uname -r) + +source /etc/lsb-release +if [ "$DISTRIB_RELEASE" = "18.04" ] && [ "$(uname -m)" = 'x86_64' ]; then + wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/cuda-ubuntu1804.pin + sudo mv cuda-ubuntu1804.pin /etc/apt/preferences.d/cuda-repository-pin-600 + sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/7fa2af80.pub + sudo add-apt-repository "deb http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/ /" + sudo apt-get update + sudo apt-get -y install cuda +fi