Grafana dashboard setup:
- Query options
- Max data points: 600 if your data collection interval is 1min, adjust on your needs
- Visualization: Graph
- Display:
- Bars: off
- Lines: off
- Points: off
- Series overrides
| #!/bin/bash | |
| apt-get update -y | |
| apt-get install -y build-essential libncurses-dev tcl-dev autoconf automake | |
| patch --strip=1 --forward < lim.patch | |
| aclocal | |
| automake | |
| ./configure --prefix=/usr/local | |
| make -j | |
| make install |
| #!/bin/bash | |
| set -Eeuo pipefail | |
| DOCKER_IMAGE="${DOCKER_IMAGE:-hello-world}" | |
| DOCKER_FLAGS="${DOCKER_FLAGS:-}" | |
| function __docker() { | |
| if command -v docker >/dev/null; then | |
| docker "$@" | |
| elif command -v podman >/dev/null; then | |
| podman "$@" |
| cat > /etc/systemd/system/gitlab-runner.service.d/override.conf <<EOF | |
| [Service] | |
| User=gitlab-runner | |
| Group=gitlab-runner | |
| ExecStartPre=+ln -sf /var/run/podman/podman.sock /var/run/docker.sock | |
| ExecStart= | |
| ExecStart=strace -e getuid,getgid -e inject=getuid:retval=0 -e inject=getgid:retval=0 -- /usr/bin/gitlab-runner run --working-directory /home/gitlab-runner --config /etc/gitlab-runner/config.toml --service gitlab-runner --user gitlab-runner | |
| EOF |
| #!/bin/bash | |
| set -Eeuo pipefail | |
| # Automatic cert requesting and signing for Cisco ASA | |
| # | |
| # Requirements | |
| # - Domain hosted in Aliyun DNS (for other DNS services, adjust the acme.sh arguments) | |
| # - ASA with rest-agent enabled | |
| # - Local computer: openssl, git, ca-certificates | |
| # |
| #!/bin/bash | |
| # Converts MTR result to InfluxDB line protocol. | |
| # Intended to be run from telegraf like this: | |
| # | |
| # [[inputs.exec]] | |
| # commands = ["/path/to/your/mtr_lineprotocol.sh"] | |
| # interval = "120s" | |
| # timeout = "120s" | |
| # data_format = "influx" |
| #!/usr/bin/env pwsh | |
| $ErrorActionPreference = "Stop" | |
| # Update Microsoft 365 group membership from AzureAD-synced Active Directory group membership | |
| # Requirements: | |
| # Install-Module -Name AzureAD | |
| # No need to explain | |
| $TenantId = "<uuid>" | |
| # Filter for the source groups |
Grafana dashboard setup:
| @echo on | |
| cd /d c:\temp | |
| if not exist %windir%\system32\wbem goto TryInstall | |
| cd /d %windir%\system32\wbem | |
| net stop winmgmt | |
| winmgmt /kill | |
| if exist Rep_bak rd Rep_bak /s /q | |
| rename Repository Rep_bak | |
| for %%i in (*.dll) do RegSvr32 -s %%i | |
| for %%i in (*.exe) do call :FixSrv %%i |
| ###Network Policy Server Synchronization Script | |
| #This script copies the configuration from the NPS Master Server and imports it on the secondary server. | |
| #The Account that this script runs under must have Local Administrator rights to the NPS Master. | |
| #This was designed to be run as a scheduled task on the NPS Secondary Servers on an hourly,daily, or as-needed basis. | |
| # Modified from https://deployhappiness.com/two-network-policy-server-tricks-subnets-and-syncing/ | |
| ###Variables | |
| #NPSMaster - Your Primary Network Policy Server you want to copy the config from. | |
| $NPSMaster = "adds0.corp.contoso.com" | |
| $NPSSecondary = "adds1.corp.contoso.com" |
| #!/usr/bin/env python3 | |
| import logging | |
| import typing | |
| import os | |
| import shutil | |
| import time | |
| import requests | |
| from bs4 import BeautifulSoup | |
| # logging |