Inspired By: grafana/loki#333
- docker-compose.yml
version: "3"
networks:
loki:
Title: | |
Incident date: | |
Owner: | |
Peer-review committee: | |
Tags: | |
Summary: | |
Supporting data: | |
Customer Impact: | |
Incident Response Analysis: | |
Post-Incident Analysis: |
#!/usr/bin/env bash | |
# Define colors | |
RED='\033[91m' | |
RED_solid='\033[101m' | |
GREEN='\033[92m' | |
GREEN_solid='\033[42m' | |
CYAN='\033[96m' | |
NC='\033[0m' | |
BLUE_solid='\e[44m' |
Inspired By: grafana/loki#333
version: "3"
networks:
loki:
https://rancher.com/docs/k3s/latest/en/installation/kube-dashboard/
Deploying the Kubernetes Dashboard
GITHUB_URL=https://github.com/kubernetes/dashboard/releases
VERSION_KUBE_DASHBOARD=$(curl -w '%{url_effective}' -I -L -s -S ${GITHUB_URL}/latest -o /dev/null | sed -e 's|.*/||')
kubectl create -f https://raw.githubusercontent.com/kubernetes/dashboard/${VERSION_KUBE_DASHBOARD}/aio/deploy/recommended.yaml
:global ipCurrent "$ipCurrent"; | |
{ | |
# Change to your settings | |
# ----------------------- | |
:local wanInterface "eth1"; | |
:local slackHookUrl "https://hooks.slack.com/services/YOUR/APP/SECRET"; | |
# ----------------------- | |
:local ipNew [/ip address get [find interface=$wanInterface] address]; |
Source: Technet Script Center
Example:
.\getInstalledAppsFromRegistry.ps1
$apps = Get-InstalledAppsFromRegistry
$apps | where {$_.DisplayName -like "*Firefox*"}
#!/usr/bin/env bash | |
set -eu | |
# set -o pipefile | |
docker_version=${REPO_TAG} | |
docker_image=${REPO_IMAGE} | |
# docker_creds=$(aws ecr get-authorization-token --output json |jq -r '.authorizationData[].authorizationToken' |base64 -d) | |
docker_creds="AWS:$(aws ecr get-login-password)" |
#!/bin/sh | |
SOCKDIR=`mktemp.exe -d /tmp/ssh-XXXXXXXXX` | |
SSH_AUTH_SOCK=$SOCKDIR/agent.$$;export SSH_AUTH_SOCK; | |
[ -z ${1+x} ] && echo "SSH_AUTH_SOCK=$SSH_AUTH_SOCK;export SSH_AUTH_SOCK;" | |
socat UNIX-LISTEN:$SSH_AUTH_SOCK,umask=066,fork EXEC:"PLINK.EXE -serial //./pipe/openssh-ssh-agent",pipes & | |
SSH_AGENT_PID=$!; export SSH_AGENT_PID; |
#!/usr/bin/bash | |
## | |
## Creates Service file based on JSON data | |
## | |
# Sample JSON file: | |
# { | |
# "service_name": "test_service", | |
# "description": "Netcore dev server", |