Skip to content

Instantly share code, notes, and snippets.

💭
:octocat:

Selivanov Pavel selivan

💭
:octocat:
View GitHub Profile
@selivan
selivan / auditd.conf
Created Apr 21, 2019 — forked from sakalajuraj/auditd.conf
Logstash configuration for auditd messages received via syslog
View auditd.conf
# Content of the file /etc/logstash/conf.d/auditd.conf
# Tested on the CentOS 7 auditspd logs forwarded to logstash via rsyslog
input {
syslog {
type => AUDITD
port => xxxx
host => "xxx.xxx.xxx.xxx"
}
}
@selivan
selivan / OCSP-generate.sh
Last active Feb 17, 2018 — forked from denji/OCSP-generate.sh
Priming the OCSP cache in Nginx
View OCSP-generate.sh
#!/bin/sh
ISSUER_CER=$1
SERVER_CER=$2
URL=$(openssl x509 -noout -ocsp_uri -in "$SERVER_CER")
openssl ocsp -noverify -no_nonce -respout ocsp.resp -issuer "$ISSUER_CER" -cert "$SERVER_CER" -url "$URL"
# Where “ocsp.resp” is whatever file you have configured in Nginx for the “ssl_stapling_file“.
@selivan
selivan / install_phpexcel_php7.sh
Created Sep 3, 2016 — forked from belgattitude/install_phpexcel_php7.sh
Install libxl, php_excel extension on PHP7 (ondrej/ppa)
View install_phpexcel_php7.sh
#!/bin/bash
#
# ilia/php_excel extension example install script for PHP7+
#
# usage:
# > ./install_phpexcel_php7.sh
# > (optionally) sudo service php7.0-fpm restart)
#
# requirements:
# - Ubuntu 64bits (trusty/xenial)
You can’t perform that action at this time.