Skip to content

Instantly share code, notes, and snippets.

@kimbtech
kimbtech / proxy.php
Last active September 20, 2019 14:17
Dynamic Reverse Proxy Using NGINX and PHP
<?php
/*
# nginx conf.
# proxy
# /proxy/<hostname>/?<url>
# url has to be written using ip, no hostname, cause no dns lookup is done!
location ~* "^/proxy/([^/]*)/?.*$" {
internal;
@kimbtech
kimbtech / README.md
Last active September 3, 2022 13:13
Roundcube multiple SMTP Server plugin for setups having multiple IMAP Server.

This plugin is not needed for versions >= 1.5 of roundcube, as the functionality was added by the developers!

Roundcube allows to access multiple IMAP Server, but all mails have to be send over the same SMTP server. This plugin allows to add multiple SMTP Server (one per IMAP Server) to Roundcube.

// normal declaration of multiple IMAP Server
$config['default_host'] = array(
 'ssl://imap.example.de' =&gt; '.de',
# https://github.com/KIMB-technologies/KIMB-Forms-Project
# artillery run KIMB-Forms-Project-Test.yaml
config:
target: "https://forms.***.eu"
phases:
- duration: 30
arrivalRate: 5 # 30 seconds 5 new users per second
scenarios:
- flow:
- get:
@kimbtech
kimbtech / LCS-Palindrome.js
Created November 19, 2018 13:27
A LCS Palindrome JS Code
function LCSPalindrome( string ){
//erstelle Array von chars, eins rueckwaerts
var s = string.split('');
var t = string.split('')
t = t.reverse();
//Erstelle zwei Matrizen fuer LCS
// JS ist hier komisch
var pl = [];
var way = [];
@kimbtech
kimbtech / main.tex
Created October 27, 2017 11:02
Murmelmaschine
\documentclass{scrartcl}
\KOMAoptions{
parskip=half,
fontsize=12pt,
DIV=calc
}
% Seitengränder
\usepackage{geometry}
\geometry{
bottom=1cm,