Skip to content

Instantly share code, notes, and snippets.

diff -Nur ghost-upstream/config.example.js ghost-webhook/config.example.js
--- ghost-upstream/config.example.js 2017-06-27 11:49:15.000000000 -0700
+++ ghost-webhook/config.example.js 2017-06-27 11:47:42.000000000 -0700
@@ -54,6 +54,13 @@
// },
// ```
+ // Example webhook
+ //
+ // webhook: {
@el-toxico
el-toxico / passenger-5.1.2-maxtime.patch
Last active February 27, 2017 07:44
This is a patch against Phusion Passenger 5.1.2. It provides the max_request_time functionality, which is usually reserved for passenger-enterprise.
diff -ru passenger-5.1.2/src/agent/Core/ApplicationPool/AbstractSession.h passenger-5.1.2-maxtimepatched/src/agent/Core/ApplicationPool/AbstractSession.h
--- passenger-5.1.2/src/agent/Core/ApplicationPool/AbstractSession.h 2013-10-26 22:00:00.000000000 +0000
+++ passenger-5.1.2-maxtimepatched/src/agent/Core/ApplicationPool/AbstractSession.h 2017-02-27 05:56:37.033309568 +0000
@@ -59,6 +59,10 @@
virtual void requestOOBW() { /* Do nothing */ }
+ virtual void killProcess(int signo) {
+ syscalls::kill(getPid(), signo);
+ }

Keybase proof

I hereby claim:

  • I am el-toxico on github.
  • I am toxic (https://keybase.io/toxic) on keybase.
  • I have a public key whose fingerprint is 0946 5330 EE37 0919 C80A DD75 F1DB 632B B7AC 9359

To claim this, I am signing this object: