This file contains 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 | |
# Notify via Discord - Shell Script | |
#----This is written for CheckMK to send notifications via Discord | |
#There was a python version of this but in a docker container...python doesn't have some modules. SO I wrote it for bash. | |
# Discord webhook URL | |
DISCORD_WEBHOOK_URL="$NOTIFY_PARAMETER_1" | |
# Discord User | |
USERNAME="Check_MK" | |
AVATARURL="https://checkmk.com/favicon-96x96.png" |
This file contains 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
Create Salt Repo - Latest: | |
pkgrepo.managed: | |
- name: salt-latest | |
- humanname: Salt Repo Latest - $releasever/$basearch | |
- baseurl: https://repo.saltstack.com/yum/redhat/$releasever/$basearch/latest | |
- gpgcheck: 1 | |
- enabled: 1 | |
- gpgkey: https://repo.saltstack.com/yum/redhat/$releasever/$basearch/latest/SALTSTACK-GPG-KEY.pub | |
{% if salt['grains.get']('saltversion',{}).split('.')[0] >= '2016' %} | |
pkg.latest: |
This file contains 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
#include <Arduino.h> | |
#include <DNSServer.h> | |
#include <ESP8266WiFi.h> | |
////////////////////// | |
// WiFi Definitions // | |
////////////////////// | |
const char WiFiAPPSK[] = "55378008"; | |
///////////////////// |