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
auth_enabled: false | |
analytics: | |
reporting_enabled: false | |
server: | |
http_listen_port: 3100 | |
common: | |
path_prefix: /var/loki |
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 | |
CURRENT=$(df / | grep / | awk '{ print $5}' | sed 's/%//g') | |
THRESHOLD=90 | |
if [ "$CURRENT" -gt "$THRESHOLD" ] ; then | |
mail -s 'Disk Space Alert' [email protected] << EOF | |
Your root partition remaining free space is critically low. Used: $CURRENT% | |
EOF | |
fi |
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/sh | |
# From https://www.tecmint.com/install-docker-in-rocky-linux-and-almalinux/ | |
dnf config-manager --add-repo=https://download.docker.com/linux/centos/docker-ce.repo | |
dnf update -y | |
dnf install -y docker-ce docker-ce-cli containerd.io docker-compose-plugin | |
systemctl enable --now docker | |
echo 'alias docker-compose="docker compose"' >> /etc/profile.d/docker-compose.sh |
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
# This file includes CNS11643 and Unicode compatible characters based on | |
# opendesktop.org.tw's simplex.cin. | |
# This work has been done by yylin and b6s. | |
# | |
# codepoints not supported by OS X 10.6's built-in fonts are filtered | |
# | |
%gen_inp | |
%ename SimplexHalfwidthPunctuations | |
%cname 簡易 (半型符號) | |
%tcname 簡易 (半型符號) |
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
# For more information on configuration, see: | |
# * Official English Documentation: http://nginx.org/en/docs/ | |
# * Official Russian Documentation: http://nginx.org/ru/docs/ | |
user nginx; | |
worker_processes auto; | |
error_log /var/log/nginx/error.log; | |
pid /run/nginx.pid; | |
# Load dynamic modules. See /usr/share/doc/nginx/README.dynamic. |
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
[Unit] | |
Description=OpenVPN tunnel for %I | |
After=syslog.target network-online.target | |
[email protected] | |
Wants=network-online.target | |
[email protected] | |
[Service] | |
Type=notify | |
PrivateTmp=true |
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
[Unit] | |
Description=OpenVPN dhclient for tunnels with External DHCPD (%I) | |
After=syslog.target network-online.target [email protected] | |
[email protected] | |
Wants=network-online.target | |
[Service] | |
Type=forking | |
PrivateTmp=true | |
WorkingDirectory=/etc/openvpn/client |
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
[Unit] | |
Description=%i service with docker compose | |
Requires=docker.service | |
After=docker.service | |
[Service] | |
Restart=always | |
WorkingDirectory=/etc/docker/compose/%i | |
# Compose up |
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 | |
# Config | |
COUNTRY="HK" | |
STATE="Hong Kong" | |
ORGANIZATION="Brian Choi" | |
# Create cert folder | |
mkdir -p cert | |
# Get domains |