This guide explains how to set up Kerberos authentication for:
- SSH access to a server,
- HTTP access to a service.
It assumes you're running Active Directory and Debian servers.
console.log('Loading function'); | |
const https = require('https'); | |
const url = require('url'); | |
// to get the slack hook url, go into slack admin and create a new "Incoming Webhook" integration | |
const slack_url = 'https://hooks.slack.com/services/...'; | |
const slack_req_opts = url.parse(slack_url); | |
slack_req_opts.method = 'POST'; | |
slack_req_opts.headers = {'Content-Type': 'application/json'}; |
server { | |
listen 80; | |
server_name nagios.example.tld; | |
access_log /var/log/nginx/nagios.access.log; | |
error_log /var/log/nginx/nagios.error.log info; | |
expires 31d; | |
root /usr/share/nagios3/htdocs; |
#!/usr/bin/env ruby | |
## | |
# notifo -- A simple Ruby script to send yourself a push notification via Notifo | |
# | |
# Usage: | |
# | |
# 1. Create a Notifo account (if you don't already have one) at notifo.com | |
# 2. Create a ~/.notifo file in the format NOTIFO_USERNAME:API_PASSWORD | |
# 3. $ gem install notifo |