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 environment file doesn't work on new node-expoter releases... | |
| # Default location for this file : /etc/default/prometheus-node-exporter | |
| # ------ | |
| # Set the command-line arguments to pass to the server. | |
| # Due to shell scaping, to pass backslashes for regexes, you need to double | |
| # them (\\d for \d). If running under systemd, you need to double them again | |
| # (\\\\d to mean \d), and escape newlines too. | |
| ARGS="--collector.diskstats.ignored-devices=^(ram|loop|fd|(h|s|v|xv)d[a-z]|nvme\\d+n\\d+p)\\d+$ \ | |
| --collector.filesystem.ignored-mount-points=^/(sys|proc|dev|run)($|/) \ | |
| --collector.netdev.ignored-devices=^lo$ \ |
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 | |
| export PROM_RELEASE="2.2.1" | |
| cd /tmp | |
| echo "Downloading Prometheus Release : ${PROM_RELEASE}" | |
| wget -q https://github.com/prometheus/prometheus/releases/download/v${PROM_RELEASE}/prometheus-${PROM_RELEASE}.linux-amd64.tar.gz | |
| tar xvf prometheus-${PROM_RELEASE}.linux-amd64.tar.gz |
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
| global: | |
| scrape_interval: 5s # Global scrape interval | |
| evaluation_interval: 5s # Evaluate rules every x second | |
| scrape_timeout: 15s # Scrape timeout limit | |
| scrape_configs: | |
| - job_name: | |
| #scrape_interval: 5s # Scrape interval for current job | |
| #scrape_timeout: 5s # Scrape timeout for current job | |
| static_configs: |
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=Prometheus systemd service unit | |
| Wants=network-online.target | |
| After=network-online.target | |
| [Service] | |
| Type=simple | |
| User=prometheus | |
| Group=prometheus | |
| ExecReload=/bin/kill -HUP $MAINPID |
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 | |
| # Secure OpenVPN server installer for Debian, Ubuntu, CentOS, Fedora and Arch Linux | |
| # https://github.com/angristan/openvpn-install | |
| function isRoot () { | |
| if [ "$EUID" -ne 0 ]; then | |
| return 1 | |
| 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
| #!/usr/bin/env bash | |
| set -e | |
| # http://nginx.org/download/nginx-1.16.0.tar.gz | |
| SRC_ROOT=/usr/src | |
| NSRC_ROOT=/usr/src/nginx | |
| NPS_VERSION=1.13.35.2 | |
| NGINX_VERSION=1.16.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
| #!/bin/bash | |
| ### Builds PHP from source on Ubuntu 18 | |
| set -e | |
| echo "Prepairing build tools" | |
| DEBIAN_FRONTEND=noninteractive apt update -y && apt install -y build-essential \ | |
| bison autoconf bison re2c pkg-config libsystemd-dev libxml2-dev \ | |
| libssl-dev libsqlite3-dev libcurl4-openssl-dev libcurl4 \ | |
| unzip libenchant-dev libffi-dev libpng-dev libgmp-dev libonig-dev \ | |
| libpq-dev libedit-dev librecode-dev libargon2-0-dev libzip-dev |
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 | |
| # cloudmin-kvm-debian-install.sh | |
| # Copyright 2005-2011 Virtualmin, Inc. | |
| # | |
| # Installs Cloudmin GPL for KVM and all dependencies on a Debian or Ubuntu | |
| # system. | |
| # | |
| # Debug & Optimize : @risyasin | |
| VER=1.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
| local inc = redis.call('INCR', KEYS[1]) | |
| if inc > tonumber(ARGV[1]) | |
| then | |
| return 1 | |
| end | |
| if inc == 1 | |
| then | |
| redis.call('PEXPIRE', KEYS[1], ARGV[2]) | |
| end | |
| return 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
| # SNAT (POSTROUTING) | |
| -A POSTROUTING -s 192.168.1.10/32 -j SNAT --to-source 111.111.111.111 | |
| # DNAT (PREROUTING) | |
| -A PREROUTING -d 111.111.111.111 -j DNAT --to-destination 192.168.1.10 |