Merge branch 'master' of gitee.com:klesh/dotfiles

This commit is contained in:
Klesh Wong 2020-09-07 15:28:16 +08:00
commit 1836951a23
3 changed files with 17 additions and 1 deletions

1
.gitignore vendored
View File

@ -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

View File

@ -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'

14
ubuntu/install-cuda.sh Executable file
View File

@ -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