This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.
Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).
<?php | |
// reference https://github.com/WP-API/WP-API/blob/develop/lib/infrastructure/class-wp-rest-server.php | |
// serve_request() function | |
add_filter( 'rest_pre_serve_request', 'multiformat_rest_pre_serve_request', 10, 4 ); | |
function multiformat_rest_pre_serve_request( $served, $result, $request, $server ) { | |
// assumes 'format' was passed into the intial API route | |
// example: https://baconipsum.com/wp-json/baconipsum/test-response?format=text |
version: "3" | |
services: | |
db: | |
build: db | |
read_only: true | |
restart: unless-stopped | |
volumes: | |
- ./volumes/db/var/lib/postgresql/data:/var/lib/postgresql/data | |
- /etc/localtime:/etc/localtime:ro | |
environment: |
This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.
Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).
# | |
# Name: nginx-tls.conf | |
# Auth: Gavin Lloyd <[email protected]> | |
# Desc: Nginx SSL/TLS configuration for "A+" Qualys SSL Labs rating | |
# | |
# Enables HTTP/2, PFS, HSTS and OCSP stapling. Configuration options not related | |
# to SSL/TLS are omitted here. | |
# | |
# Example: https://www.ssllabs.com/ssltest/analyze.html?d=gavinhungry.io | |
# |
#!/bin/bash | |
# This script is used by Nagios to post alerts into a Slack channel | |
# using the Incoming WebHooks integration. Create the channel, botname | |
# and integration first and then add this notification script in your | |
# Nagios configuration. | |
# | |
# All variables that start with NAGIOS_ are provided by Nagios as | |
# environment variables when an notification is generated. | |
# A list of the env variables is available here: |
$ git branch -r --merged | | |
grep origin | | |
grep -v '>' | | |
grep -v master | | |
xargs -L1 | | |
awk '{split($0,a,"/"); print a[2]}' | | |
xargs git push origin --delete |
Use tcpdump to monitor mysql | |
# Capture the packets | |
sudo tcpdump -i eth0 port 3306 -s 65535 -x -n -q -tttt > tcpdump.out | |
# analyze all the requests from a given host | |
pt-query-digest --type=tcpdump --filter '($event->{host} || $event->{ip} || "") =~ m/192.168.248.64/' tcpdump.out |
src/searchdha.cpp | 3 +++ | |
src/sphinx.cpp | 4 ++-- | |
src/sphinxstd.cpp | 2 ++ | |
3 files changed, 7 insertions(+), 2 deletions(-) | |
diff --git a/src/searchdha.cpp b/src/searchdha.cpp | |
index 27bc01e..2af933d 100644 | |
--- a/src/searchdha.cpp | |
+++ b/src/searchdha.cpp | |
@@ -21,6 +21,9 @@ |
# php7-fpm - The PHP FastCGI Process Manager | |
# Original script by Ondřej Surý. Adapted to php7-fpm by @bjornjohansen | |
description "The PHP FastCGI Process Manager" | |
author "Ondřej Surý <[email protected]>" | |
start on runlevel [2345] | |
stop on runlevel [016] | |
# Precise upstart does not support reload signal, and thus rejects the |