Skip to content

Instantly share code, notes, and snippets.

View mbeijen's full-sized avatar

Michiel W. Beijen mbeijen

View GitHub Profile
@mbeijen
mbeijen / # batik - 2018-06-02_11-34-20.txt
Created June 2, 2018 09:40
batik on macOS 10.13.4 - Homebrew build logs
Homebrew build logs for batik on macOS 10.13.4
Build date: 2018-06-02 11:34:20
From 3c4342d182f8e7b1ea9a8d907de65ec6338b4d53 Mon Sep 17 00:00:00 2001
From: Pali <pali@cpan.org>
Date: Sat, 24 Sep 2016 14:47:59 +0200
Subject: [PATCH] Do not use unsafe sprintf w/variable length input
This can cause a buffer overflow to occur when reporting
error message about validation of (untrusted) user input parameters.
---
dbdimp.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
@mbeijen
mbeijen / jsonb.pl
Created January 18, 2015 21:21
use jsonb with '?' operator - for blog post https://huntingbears.nl/?p=86
#!/usr/bin/perl
use strict;
use warnings;
use Data::Dumper;
use DBD::Pg 3.5.0;
my $dbh = DBI->connect("dbi:Pg:", '', '',
{
AutoCommit => 1,
@mbeijen
mbeijen / odbc-unicode-test.pl
Last active December 28, 2015 20:49
I tried this with DBD::ODBC 1.43 and 1.46_1 on Windows, against SQL Server 2012. Result is here: https://gist.github.com/mbeijen/5a497e05e0739ef93ce9
#!/usr/bin/perl
use strict;
use warnings;
use utf8;
use DBI qw(:utils);
my $dbh =
DBI->connect( 'DBI:ODBC:driver={SQL Server};Server=localhost;Database=test','user','pass')
#!/usr/bin/perl
# --
# bin/otrs.CheckCustomerDataSource.pl - Check customer data sources
# Copyright (C) 2001-2013 OTRS AG, http://otrs.com/
# --
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU AFFERO General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# any later version.
#
@mbeijen
mbeijen / otrs.AddCustomer2Group.pl
Created September 9, 2013 05:48
Script to add customers to customer groups.
#!/usr/bin/perl
# --
# bin/otrs.AddCustomer2Group.pl - Add Customer to a Group
# Copyright (C) 2001-2013 OTRS AG, http://otrs.com/
# --
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU AFFERO General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# any later version.
#
#!/usr/bin/perl
# --
# bin/otrs.SetCustomerPassword.pl - Changes or Sets password for a customer
# Copyright (C) 2001-2013 OTRS AG, http://otrs.com/
# --
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU AFFERO General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# any later version.
#
Microsoft (R) Program Maintenance Utility Version 9.00.21022.08
Copyright (C) Microsoft Corporation. All rights reserved.
C:\perl\bin\perl.exe myld link -out:blib\arch\auto\DBD\mysql\mysql.dll -dll -nologo -nodefaultlib -debug -opt:ref,icf -libpath:"c:\perl\lib\CORE" -machine:x86 "/manifestdependency:type='Win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'" dbdimp.obj mysql.obj C:\perl\lib\CORE\perl516.lib c:\Progra~1\MICROS~1.0\VC\LIB\oldnames.lib "C:\Program Files\Microsoft SDKs\Windows\v6.0A\lib\kernel32.lib" "C:\Program Files\Microsoft SDKs\Windows\v6.0A\lib\user32.lib" "C:\Program Files\Microsoft SDKs\Windows\v6.0A\lib\gdi32.lib" "C:\Program Files\Microsoft SDKs\Windows\v6.0A\lib\winspool.lib" "C:\Program Files\Microsoft SDKs\Windows\v6.0A\lib\comdlg32.lib" "C:\Program Files\Microsoft SDKs\Windows\v6.0A\lib\advapi32.lib" "C:\Program Files\Microsoft SDKs\Windows\v6.0A\lib\shell32.lib" "C:\Program Files\Micros
@mbeijen
mbeijen / disabled.yml
Created November 14, 2012 09:59
disabled CPAN smoker files
---
comment: "no Acme stuff"
match:
distribution: "/Acme-"
disabled: 1
---
comment: "no plugin bundles"
match:
distribution: "PluginBundle"
disabled: 1
@mbeijen
mbeijen / otrs.AddService.pl
Created September 14, 2012 06:40
Proper encoding of input and output for otrs.AddService.pl
#!/usr/bin/perl -w
# --
# bin/otrs.AddService.pl - add new Services
# Copyright (C) 2001-2012 OTRS AG, http://otrs.org/
# --
# $Id: otrs.AddService.pl,v 1.1.2.2 2012/06/27 21:56:51 mb Exp $
# --
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU AFFERO General Public License as published by
# the Free Software Foundation; either version 3 of the License, or