Skip to content

Instantly share code, notes, and snippets.

@bobvanluijt
bobvanluijt / install.sh
Last active January 14, 2025 15:02
Install CUDA on Ubuntu 22.04 + transformers
# Assumes Ubuntu 22.04
$ sudo apt-get update && \
sudo apt-get -y install gcc && \
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-ubuntu2204.pin && \
sudo mv cuda-ubuntu2204.pin /etc/apt/preferences.d/cuda-repository-pin-600 && \
wget https://developer.download.nvidia.com/compute/cuda/12.3.1/local_installers/cuda-repo-ubuntu2204-12-3-local_12.3.1-545.23.08-1_amd64.deb && \
sudo dpkg -i cuda-repo-ubuntu2204-12-3-local_12.3.1-545.23.08-1_amd64.deb && \
sudo cp /var/cuda-repo-ubuntu2204-12-3-local/cuda-*-keyring.gpg /usr/share/keyrings/ && \
sudo apt-get update && \
sudo apt-get -y install cuda-toolkit-12-3 nvidia-cuda-toolkit python3-pip nvtop && \
@shkarupa-alex
shkarupa-alex / install.sh
Last active January 14, 2025 15:02
Ubuntu 22.04 + Cuda
# Prioritize NVIDIA packages
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-ubuntu2204.pin
sudo mv cuda-ubuntu2204.pin /etc/apt/preferences.d/cuda-repository-pin-600
# Fetch NVIDIA keys
sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/3bf863cc.pub
# Add NVIDIA repos
sudo add-apt-repository "deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/ /"
@jatinkrmalik
jatinkrmalik / data.md
Last active January 14, 2025 15:02
RSS Feed/Blogs from @0xGlitchbyte
@raulqf
raulqf / Install_CUDA.md
Last active January 14, 2025 15:02
Installation guide for CUDA on Ubuntu distro.

How to install NVIDIA CUDA on Ubuntu distro

This is a brief receipt used for NVIDIA CUDA installation on a Ubuntu Linux Distro. All the steps can be found in the guide provided by NVIDIA but this gist contains some glue points to overcome problems during the installation.

The current installation was performed for an Ubuntu version 14.04.5 LTS, Trusty Tahr using a x86_64 architecture. You can get this information by typing in a consonle terminal:

$ uname -m && cat /etc/*release

Once you get that information we can find the NVIDIA Toolkit that supports our Linux Distro. Last version is NVIDIA CUDA Toolkit 8.0 ga2 although version 9 is already published but it does not give support for 14.04. To know what that information you must check Table 1. Native Linux Distribution Support

@qoomon
qoomon / conventional-commits-cheatsheet.md
Last active January 14, 2025 15:01
Conventional Commits Cheatsheet

Conventional Commit Messages starline

See how a minor change to your commit message style can make a difference.

Tip

Have a look at git-conventional-commits , a CLI util to ensure these conventions, determine version and generate changelogs

Commit Message Formats

Default

@liuran001
liuran001 / config.yaml
Last active January 14, 2025 14:58
mihomo (Clash Meta) 懒人配置
# mihomo (Clash Meta) 懒人配置
# 版本 V1.15-241205
# https://gist.github.com/liuran001/5ca84f7def53c70b554d3f765ff86a33
# https://obdo.cc/meta
# 作者: 笨蛋ovo (bdovo.cc)
# Telegram: https://t.me/baka_not_baka
# 关注我的 Telegram 频道谢谢喵 https://t.me/s/BDovo_Channel
# 修改自官方示例规则 https://wiki.metacubex.one/example/#meta
# 转载请保留此注释
# 尽量添加了较为详尽的注释,不理解的地方建议对照 虚空终端 (Clash Meta) Docs 进行理解
@danrovito
danrovito / countrydropdown.html
Last active January 14, 2025 14:57
HTML Country Select Dropdown List
<label for="country">Country</label><span style="color: red !important; display: inline; float: none;">*</span>
<select id="country" name="country" class="form-control">
<option value="Afghanistan">Afghanistan</option>
<option value="Åland Islands">Åland Islands</option>
<option value="Albania">Albania</option>
<option value="Algeria">Algeria</option>
<option value="American Samoa">American Samoa</option>
<option value="Andorra">Andorra</option>
<option value="Angola">Angola</option>