Skip to content

Instantly share code, notes, and snippets.

View ktsugita's full-sized avatar

ktsugita ktsugita

View GitHub Profile
@vgeshel
vgeshel / function.js
Last active February 9, 2022 09:19
AWS Lambda function for forwarding SNS notifications to Slack
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'};
@aaugustin
aaugustin / kerberos.md
Last active April 10, 2023 01:06
Kerberos

Kerberos setup

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.

@smukkejohan
smukkejohan / nagios
Created February 6, 2012 19:07
Nagios with Nginx configuration
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;
@tpett
tpett / notifo
Created April 16, 2011 00:03
Ruby script to send yourself Notifo notifications with the 'notifo' gem
#!/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