Skip to content

Instantly share code, notes, and snippets.

View asteriskie's full-sized avatar

Tony Simons asteriskie

  • Council Bluffs, Iowa
View GitHub Profile
#!/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"
@asteriskie
asteriskie / gist:6077e01c3f9d1e890bdec2fe726097df
Created May 12, 2017 19:13
saltstack update (could probably be cleaner)
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:
@asteriskie
asteriskie / main.cpp
Last active April 28, 2017 22:11
Sample git to change brightness of led with slider over http
#include <Arduino.h>
#include <DNSServer.h>
#include <ESP8266WiFi.h>
//////////////////////
// WiFi Definitions //
//////////////////////
const char WiFiAPPSK[] = "55378008";
/////////////////////