Skip to content

Instantly share code, notes, and snippets.

View lifeofguenter's full-sized avatar
💭
I'm just a thin layer on top of AWS

Günter Grodotzki lifeofguenter

💭
I'm just a thin layer on top of AWS
View GitHub Profile
@lifeofguenter
lifeofguenter / 01-nginx.conf
Last active November 7, 2017 13:52
Laravel on Nginx + PHP-FPM (replace APP_DOMAIN)
user www-data www-data;
error_log /var/log/nginx/error.log;
pid /run/nginx.pid;
worker_processes auto;
worker_rlimit_nofile 100000;
pcre_jit on;
events {
use epoll;
@lifeofguenter
lifeofguenter / browsertest.php
Created October 25, 2017 05:30
simply test two selenium servers
<?php
error_reporting(E_ALL);
ini_set('display_errors', true);
chdir(__DIR__);
if (!file_exists('vendor/autoload.php')) {
echo 'Please run:' . PHP_EOL;
echo 'composer require facebook/webdriver' . PHP_EOL;
@lifeofguenter
lifeofguenter / katest.php
Created July 22, 2016 14:54
keep-alive benchmark tool in php ($ php katest.php -m 100 http://localhost/)
<?php
// debug
error_reporting(E_ALL);
ini_set('display_errors', true);
ini_set('html_errors', false);
function clrf($num = 1)
{
return str_repeat("\r\n", $num);
#!/bin/bash
##############################################################################
# $Id: checkinstall,v 1.6.3.1 2010/02/10 14:42:32 izto Exp $
# ########################
#
#
# CheckInstall v1.6.3
#
# Installs a compiled program from the program's source directory using
# "make install" or any other command supplied on checkinstall's command
@lifeofguenter
lifeofguenter / lighttpd-1.4.37-mod_ssi-no-etag.patch
Created September 20, 2015 12:20
[PATCH] Lighttpd 1.4.37 mod_ssi: remove ETag and Last-Modified Headers from response/output.
--- a/src/mod_ssi.c 2015-05-14 11:34:41.000000000 +0200
+++ b/src/mod_ssi.c 2015-09-20 14:15:16.927322005 +0200
@@ -36,7 +36,6 @@
# include <sys/filio.h>
#endif
-#include "etag.h"
#include "version.h"
/* The newest modified time of included files for include statement */
# supervisor
#
# Author: Günter Grodotzki <gunter@grodotzki.co.za>
# Version: 2015-04-25
#
# - set param "SUPERVISE=enable" to activate
# - chmod +x supervise.sh
#
packages:
yum:
@lifeofguenter
lifeofguenter / Bee.php
Created November 22, 2014 14:30
sample hunspell/enchant usage
<?php
namespace Weheartwebsites\Spelling;
use Exception;
class Bee
{
protected $broker;
<?php
error_reporting(E_ALL);
ini_set('display_errors', true);
define('SSH_HOST', '');
define('SSH_PORT', 666);
define('SSH_USER', '');
define('SSH_PASS', '');
define('REMOTE_PATH', '/var/www/');
@lifeofguenter
lifeofguenter / lighttpd-dirlisting-txt-to-html.patch
Created August 19, 2014 08:15
Lighttpd 1.4.35 mod_dirlisting .txt -> .html README/HEADER
--- a/src/mod_dirlisting.c 2014-08-19 10:13:09.000000000 +0200
+++ b/src/mod_dirlisting.c 2014-08-19 10:13:50.000000000 +0200
@@ -534,14 +534,14 @@
buffer_append_string_len(out, CONST_STR_LEN("</head>\n<body>\n"));
}
- /* HEADER.txt */
+ /* HEADER.html */
if (p->conf.show_header) {
stream s;
@lifeofguenter
lifeofguenter / lighttpd-libressl.patch
Last active December 8, 2018 11:24
Lighttpd 1.4.35 + LibreSSL 2.0.5 Patch
--- a/configure 2014-08-11 12:45:44.000000000 +0200
+++ b/configure 2014-08-11 12:52:00.000000000 +0200
@@ -14330,9 +14330,9 @@
if test "x$use_openssl" = "xyes"; then
- if test "x$use_kerberos" != "xyes"; then
- CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
- fi
+# if test "x$use_kerberos" != "xyes"; then