Skip to content

Instantly share code, notes, and snippets.

Thomas B. thomascube

Block or report user

Report or block thomascube

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
thomascube / image2grf.php
Created Jul 11, 2018
PHP function to convert a PNG image to a .GRF file for use with Zebra printers
View image2grf.php
* Converts a PNG image to a .GRF file for use with Zebra printers
* The input is preferably a 1-bit black/white image but RGB images
* are accepted as well.
* This function uses PHP's GD library image functions.
thomascube /
Last active Mar 6, 2019
Roundcube Vulnerability CVE-2017-16651

Roundcube Webmail File Disclosure Vulnerability

  • Software:
  • Versions: 1.1.0 - 1.1.9, 1.2.0 - 1.2.6, 1.3.0 - 1.3.2
  • CVE: CVE-2017-16651
  • Author: Thomas Bruederli
  • Release date: 2017-11-09


Roundcube Webmail allows unauthorized access to arbitrary files on the

thomascube / vtimezone.php
Created Jun 29, 2017
VTIMEZONE component for a Olson timezone identifier with daylight transitions. Solution to this StackOverflow question:
View vtimezone.php
use \Sabre\VObject;
// use composer autoloader
require_once 'vendor/autoload.php';
* Returns a VTIMEZONE component for a Olson timezone identifier
* with daylight transitions covering the given date range.
thomascube / 0_reuse_code.js
Created Jun 28, 2017
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
# replace the values for these placeholders to match your environment
variables = {
'skin': 'kolab',
# General information about the project.
project = u'Kolab Groupware Help'
copyright = u'2014,'
version = '3.1'
thomascube / kolab_webhelp.diff
Last active Aug 29, 2015
Kolab web client user guide
View kolab_webhelp.diff
diff --git a/_static/default.css b/_static/default.css
index b6f8f62..378107f 100755
--- a/_static/default.css
+++ b/_static/default.css
@@ -26,7 +26,7 @@ body {
div.banner {
margin: 0 0 3px 0;
padding: 10px 0;
- height: 40px;
+ height: 16px;
thomascube / RegisterCommand.php
Last active Aug 29, 2015
Patches and additions for creating a PHP Composer RPM module from source
View RegisterCommand.php
* This file is part of Composer.
* (c) Thomas Bruederli <>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
View composer-add-package.php
* Distributed Composer package registration script
* This script registers the given composer module to the local installation registry
* in order to let composer.phar build autoloader files for installed modules.
* Usage: php add-package.php <PATH-TO-MODULE-COMPOSER.JSON> <VERSION>
thomascube /
Last active Dec 17, 2015
dcomposer - Install Composer dependencies into a global location


This is simple approach to work-around the missing --global option in Composer. See

It reads the dependencies from a local composer.json file and installs them into a global location (e.g. /usr/local/lib/composer) and creates a light-weight local Composer installation providing the necessary autoload magic.

thomascube / Makefile
Last active Oct 29, 2017
Roundcube release scripts
View Makefile
all: clean complete dependent framework
complete: roundcubemail-git toolchain
cp -RH roundcubemail-git roundcubemail-$(VERSION)
(cd roundcubemail-$(VERSION); cp composer.json-dist composer.json)
You can’t perform that action at this time.