This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/bin/bash | |
lsmod | grep nvidia | |
rmmod nvidia_uvm | |
rmmod nvidia_drm | |
rmmod nvidia_modeset | |
rmmod nvidia | |
# Check processes using the kernel module |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Whether file exists? | |
if [ ! -f ${file} ]; then | |
echo "${file} NOT exists" | |
fi | |
# Get script path | |
SCRIPT_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/bash | |
user=xxx | |
# Test whether virtualization is supported for CPU | |
vm_support=$(egrep '(vmx|svm)' /proc/cpuinfo) | |
if [ "$a" == "" ]; then | |
echo "Virtualization is not supported, quit..." | |
exit 1 | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3" | |
services: | |
service.rss: | |
image: wangqiru/ttrss:latest | |
container_name: ttrss | |
ports: | |
- 20001:80 | |
environment: | |
- SELF_URL_PATH=http://localhost:20001 # please change to your own domain | |
- DB_PASS=ttrss # use the same password defined in `database.postgres` |