- load averages:
w or uptime
- kernel errors:
dmesg -xTL | tail
- overall stats by time:
vmstat 1
- CPU balance:
mpstat -P ALL 1
- process usage:
pidstat 1
- disk I/O:
iostat -xz 1
This file contains hidden or 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 | |
msg() { | |
printf -- '%s\n' "$@" | |
} | |
err() { | |
printf -- 'error: %s\n' "$@" >&2 | |
exit 1 | |
} |
This file contains hidden or 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
FROM python:alpine | |
RUN apk add --no-cache lapack libstdc++ freetype \ | |
&& apk add --no-cache --virtual .build build-base gfortran freetype-dev lapack-dev | |
WORKDIR /usr/src/app | |
COPY find3/server/ai . | |
RUN pip3 install --no-cache-dir scipy \ | |
&& pip3 install --no-cache-dir -r requirements.txt \ | |
&& apk del .build | |
WORKDIR /usr/src/app/src | |
ENV LC_ALL=C.UTF-8 LANG=C.UTF-8 FLASK_APP=server.py FLASK_DEBUG=0 |
This file contains hidden or 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: | |
proxy: | |
image: traefik | |
command: | |
- --docker | |
- --api | |
ports: |
This file contains hidden or 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
rate 25000 | |
cl_updaterate 100 | |
cl_cmdrate 100 | |
ex_interp .1 | |
_cl_autowepswitch 0 | |
_snd_mixahead .1 | |
brightness 2 | |
cl_allowdownload 1 | |
cl_crosshair_color "255 228 181" |
This file contains hidden or 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
INPUT | |
SETTINGS | |
These fonts have been customized with the settings below. You can further customize | |
your fonts with the inputCustomize.py command-line tool found in this package, or | |
by re-downloading the fonts at <http://input.fontbureau.com/download>. | |
Four Style Family | |
Regular: InputMono-Regular.ttf |
This file contains hidden or 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
w | |
dmesg -exL | |
vmstat 1 | |
mpstat -P ALL 1 | |
pidstat 1 | |
iostat -xz 1 | |
free -h | |
sar -n DEV 1 | |
sar -n TCP,ETCP 1 | |
top |
DEBIAN_FRONTEND=noninteractive apt-get update -qq
DEBIAN_FRONTEND=noninteractive apt-get upgrade -y -qq
DEBIAN_FRONTEND=noninteractive apt-get install -y -qq wireguard
curl -fsSL https://get.docker.com | sh
gpasswd -a ubuntu docker
sed -i 's|//Unattended-Upgrade::Remove-Unused-Dependencies.*$|Unattended-Upgrade::Remove-Unused-Dependencies "true";|' /etc/apt/apt.conf.d/50unattended-upgrades
sed -i 's|\("^linux-image.*\)|//\1|' /etc/apt/apt.conf.d/01autoremove
cat > /etc/systemd/system/wg-gen-web.path <<-EOF
This file contains hidden or 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
docker run --rm -t -p 127.0.0.1:8080:80 traefik/whoami | |
docker run --rm -t -p 127.0.0.1:8080:9376 registry.k8s.io/serve_hostname |