Skip to content

Instantly share code, notes, and snippets.

View holmesconan's full-sized avatar

Holmes Conan holmesconan

  • Hebei, China
View GitHub Profile
@holmesconan
holmesconan / git-commit-template.md
Created January 13, 2022 01:50 — forked from lisawolderiksen/git-commit-template.md
Use a Git commit message template to write better commit messages

Using Git Commit Message Templates to Write Better Commit Messages

One of my colleagues shared an article on writing (good) Git commit messages today: How to Write a Git Commit Message. This excellent article explains why good Git commit messages are important, and explains what constitutes a good commit message. I wholeheartedly agree with what @cbeams writes in his article. (Have you read it yet? If not, go read it now. I'll wait.) It's sensible stuff. So I decided to start following the

@holmesconan
holmesconan / cuda_10.0_installation_on_Ubuntu_18.04
Created January 1, 2020 16:11 — forked from Mahedi-61/cuda_11.8_installation_on_Ubuntu_22.04
CUDA 10.0 installation for Ubuntu 18.04 LTS
#!/bin/bash
## This gist contains step by step instructions to install cuda v10.0 and cudnn 7.5 in Ubuntu 18.04
### steps ####
# verify the system has a cuda-capable gpu
# download and install the nvidia cuda toolkit and cudnn
# setup environmental variables
# verify the installation
###
@holmesconan
holmesconan / docker-cleanup-resources.md
Created June 30, 2019 02:18 — forked from bastman/docker-cleanup-resources.md
docker cleanup guide: containers, images, volumes, networks

Docker - How to cleanup (unused) resources

Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...

delete volumes

// see: https://github.com/chadoe/docker-cleanup-volumes

$ docker volume rm $(docker volume ls -qf dangling=true)

$ docker volume ls -qf dangling=true | xargs -r docker volume rm