Skip to content

Instantly share code, notes, and snippets.

View YCmove's full-sized avatar

YCmove

  • Taiwan
View GitHub Profile
@YCmove
YCmove / github_timeout.md
Last active May 31, 2024 12:34
GitHub git clone - Connection timeout

Error git clone

$ git clone git@github.com:yourusername/xxx.git
Cloning into 'xxx'...
ssh: connect to host github.com port 22: Connection timed out
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
@YCmove
YCmove / batch_heic_to_jpg.md
Created June 14, 2024 17:34
Batch convert HEIC image to jpg
sudo apt install heif-convert

Inside the folder:

for f in *.HEIC; do heif-convert -q 100 "$f" "${f%.*}.jpg"; done
@YCmove
YCmove / docker_could_not_select_device_driver.md
Last active September 16, 2024 13:21
docker: Error response from daemon: could not select device driver "" with capabilities: [[gpu]].

First, create a docker sudoer group and add your account

sudo groupadd docker
sudo usermod -aG docker $USER

Second, enable rootless mode

nvidia-ctk runtime configure --runtime=docker --config=$HOME/.config/docker/daemon.json
systemctl --user restart docker