Skip to content

Instantly share code, notes, and snippets.

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 / password.pl
Created Apr 27, 2014
A simplified "API" tp "safely" hash and verify passwords in Perl
View password.pl
################################################################################
# A simplified "API" to "safely" hash and verify passwords #
# #
# Author: Günter Grodotzki <guenter@perlhipster.com> #
# License: http://www.gnu.org/licenses/gpl-2.0.txt #
# Version: 20140425 #
################################################################################
use Authen::Passphrase::BlowfishCrypt;
@lifeofguenter
lifeofguenter / unbound.conf
Last active Aug 29, 2015
unbound debian wheezy post-installation
View unbound.conf
server:
## STATISTICS
# comment-out if you don't use munin
verbosity: 0
statistics-interval: 0
statistics-cumulative: no
extended-statistics: yes
@lifeofguenter
lifeofguenter / gist:45d71d622a4aeea06346
Created Jun 6, 2014
php-intl 3.0.0 + libicu 4.8.1.1 for debian squeeze without breaking anything (hopefully)
View gist:45d71d622a4aeea06346
# cd /usr/src
# wget http://download.icu-project.org/files/icu4c/4.8.1.1/icu4c-4_8_1_1-src.tgz
# tar xvfz icu4c-4_8_1_1-src.tgz
# cd icu/source
# ./configure --prefix=/opt/icu
# make && make install
# cd /usr/src
# wget http://pecl.php.net/get/intl-3.0.0.tgz
# tar xvfz intl-3.0.0.tgz
@lifeofguenter
lifeofguenter / whmcs-coza-epp.patch
Created Jun 6, 2014
[PATCH] internationalisation + WHMCS > 5.2.2 (backward compatible) (whmcs coza module)
View whmcs-coza-epp.patch
diff --git a/modules/registrars/cozaepp/cozaepp.php b/modules/registrars/cozaepp/cozaepp.php
index ddb5716..0406c91 100644
--- a/modules/registrars/cozaepp/cozaepp.php
+++ b/modules/registrars/cozaepp/cozaepp.php
@@ -799,18 +799,35 @@
return $values;
}
+ $rev = _cozaepp_getRevision();
+ if($rev === 1) {
@lifeofguenter
lifeofguenter / lighttpd-dirlisting-txt-to-html.patch
Created Aug 19, 2014
Lighttpd 1.4.35 mod_dirlisting .txt -> .html README/HEADER
View lighttpd-dirlisting-txt-to-html.patch
--- 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;
View deploy.php
<?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 / Bee.php
Created Nov 22, 2014
sample hunspell/enchant usage
View Bee.php
<?php
namespace Weheartwebsites\Spelling;
use Exception;
class Bee
{
protected $broker;
@lifeofguenter
lifeofguenter / lighttpd-1.4.37-mod_ssi-no-etag.patch
Created Sep 20, 2015
[PATCH] Lighttpd 1.4.37 mod_ssi: remove ETag and Last-Modified Headers from response/output.
View lighttpd-1.4.37-mod_ssi-no-etag.patch
--- 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 */
View checkinstall
#!/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 / katest.php
Created Jul 22, 2016
keep-alive benchmark tool in php ($ php katest.php -m 100 http://localhost/)
View katest.php
<?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);