Get a compute node:
qsub -I -l select=1:ncpus=4:ngpus=1:gpu_model=k40:mem=16gb,walltime=10:00:00Installation:
| #!/bin/bash | |
| DO_TOKEN= | |
| DO_API=https://api.digitalocean.com/v2 | |
| CF_API_KEY= | |
| CF_AUTH_EMAIL= | |
| CF_ROOT_DOMAIN= | |
| CF_RECORD= | |
| CF_API=https://api.cloudflare.com/client/v4 |
For example, we will install libs/apps under ~/.local/
Prebuild configuring:
./configure --prefix=~/.local/Add the following lines into .bashrc or .bash_profile:
# Add local bin pathYou should switch to root user to execute following commands
Fedora, CentOS, or Red Hat.
| # Resize. Suppose /dev/sda2 (LVM) | |
| pvresize /dev/sda2 | |
| lvextend /dev/mapper/fedora-root -l+100%FREE | |
| # For ext2/3/4 | |
| resize2fs /dev/mapper/fedora-root | |
| # For xfs | |
| xfs_growfs / | |
| # Install Software | |
| sudo dnf -y update |
| FROM nginx:alpine | |
| EXPOSE 80 443 | |
| VOLUME ["/etc/nginx/conf.d/", "/var/www/html", "/etc/letsencrypt"] | |
| RUN apk add --no-cache certbot \ | |
| && echo "0 0,12 * * * python -c 'import random; import time; time.sleep(random.random() * 3600)' && certbot renew --post-hook \"nginx -s reload\"" > /etc/crontabs/root | |
| CMD ["/bin/sh", "-c", "crond -b && certbot renew && nginx -g 'daemon off;'"] |
| package main | |
| /* | |
| #cgo pkg-config: zlib | |
| #cgo linux LDFLAGS: -lz | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #include <zlib.h> | |
| typedef struct { |