Navigation Menu

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 / password.pl
Created April 27, 2014 18:08
A simplified "API" tp "safely" hash and verify passwords in Perl
################################################################################
# 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 August 29, 2015 14:01
unbound debian wheezy post-installation
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 June 6, 2014 15:16
php-intl 3.0.0 + libicu 4.8.1.1 for debian squeeze without breaking anything (hopefully)
# 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 June 6, 2014 15:30
[PATCH] internationalisation + WHMCS > 5.2.2 (backward compatible) (whmcs coza module)
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 / Z
Last active November 11, 2018 21:14
NZBGet Transcoders
#!/bin/bash
##############################################################################
### NZBGET POST-PROCESSING SCRIPT ###
# Move files if all daisy-chained PP prior succeeded.
# Version: 0.1.0
#
#
# NOTE: For support visit the forum thread: http://nzbget.net/forum/viewtopic.php?f=8&t=1265
@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
@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;
<?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 November 22, 2014 14:30
sample hunspell/enchant usage
<?php
namespace Weheartwebsites\Spelling;
use Exception;
class Bee
{
protected $broker;
# 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: