Skip to content

Instantly share code, notes, and snippets.

View naa0yama's full-sized avatar

Naoki Aoyama naa0yama

View GitHub Profile
@naa0yama
naa0yama / file0.txt
Last active April 8, 2017 00:57
SSHログインをSlackに通知する。 ref: http://qiita.com/FoxBoxsnet/items/a496e4bf158177e263fc
$ mkdir ~/.ssh/
$ vi ~/.ssh/rc
@naa0yama
naa0yama / file0.txt
Last active December 17, 2016 01:02
nginx 1.11.7 リリース 追加された変数など ref: http://qiita.com/FoxBoxsnet/items/4f2b4f0a6c5aa2efa899
The variable is fully supported only when using OpenSSL version 1.0.2 or higher.
With older versions, the variable is available only for new sessions and lists only known ciphers.
@naa0yama
naa0yama / pfsense2-2.grok
Last active September 24, 2016 11:04 — forked from elijahpaul/pfsense2-2.grok
pfsense2-2.grok
# GROK match pattern for logstash.conf filter: %{LOG_DATA}%{IP_SPECIFIC_DATA}%{IP_DATA}%{PROTOCOL_DATA}
# GROK Custom Patterns (add to patterns directory and reference in GROK filter for pfSense events):
# GROK Patterns for pfSense 2.2 Logging Format
#
# Created 27 Jan 2015 by J. Pisano (Handles TCP, UDP, and ICMP log entries)
# Edited 19 Sep 2016 by FoxBoxsnet
#
# Usage: Use with following GROK match pattern
#
# %{LOG_DATA}%{IP_SPECIFIC_DATA}%{IP_DATA}%{PROTOCOL_DATA}
@naa0yama
naa0yama / hook-dns-01-lets-encrypt-route53.py
Created August 18, 2016 12:17
Python 3 script to use as a hook for the letsencrypt.sh client
#!/usr/bin/env python3
# How to use:
#
# LE_HOSTED_ZONE=XXXXXX LE_AWS_PROFILE=dns-access ./letsencrypt.sh --cron --domain example.org --challenge dns-01 --hook /tmp/hook-dns-01-lets-encrypt-route53.py
#
# More info about letsencrypt.sh: https://github.com/lukas2511/letsencrypt.sh/wiki/Examples-for-DNS-01-hooks
# Using AWS Profiles: http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html#cli-multiple-profiles
# Obtaining your Hosted Zone ID from Route 53: http://docs.aws.amazon.com/cli/latest/reference/route53/list-hosted-zones-by-name.html