Skip to content

Instantly share code, notes, and snippets.

View UniqMartin's full-sized avatar

Martin Afanasjew UniqMartin

  • Germany
View GitHub Profile
@UniqMartin
UniqMartin / keybase.md
Last active January 27, 2016 14:09
Keybase proof

Keybase proof

I hereby claim:

  • I am uniqmartin on github.
  • I am uniqmartin (https://keybase.io/uniqmartin) on keybase.
  • I have a public key ASAYsEk_3r7T7K5R1Q2rNPkAx17EaaFt5Z763CA_eqvRUQo

To claim this, I am signing this object:

@UniqMartin
UniqMartin / brew-benchmark-multicol.rb
Created October 6, 2015 14:22
Benchmark for Homebrew PR #44343
require "benchmark"
def puts_dump(dump)
dump.each do |_key, data|
title, items, highlight = data.values_at("title", "items", "highlight")
ohai title
if ARGV.flag?("--highlight")
puts_columns(items, highlight)
else
puts_columns(items)
@UniqMartin
UniqMartin / qtbug-47641.patch
Created September 18, 2015 14:20
Fix for QTBUG-47641
Adapted from https://codereview.qt-project.org/#/c/115138/
diff --git a/src/plugins/platforms/cocoa/qcocoacursor.mm b/src/plugins/platforms/cocoa/qcocoacursor.mm
index 06e957c..922809f 100644
--- a/qtbase/src/plugins/platforms/cocoa/qcocoacursor.mm
+++ b/qtbase/src/plugins/platforms/cocoa/qcocoacursor.mm
@@ -73,7 +73,7 @@ void QCocoaCursor::setPos(const QPoint &position)
pos.x = position.x();
pos.y = position.y();
@UniqMartin
UniqMartin / qtbug-47162.patch
Last active September 1, 2015 07:37
Fix for QTBUG-47162
diff -urN a/qtbase/qmake/generators/makefile.cpp b/qtbase/qmake/generators/makefile.cpp
--- a/qtbase/qmake/generators/makefile.cpp 2015-06-29 22:03:22.000000000 +0200
+++ b/qtbase/qmake/generators/makefile.cpp 2015-07-24 18:31:20.000000000 +0200
@@ -3253,7 +3253,8 @@
int suffix = bundle.lastIndexOf(".framework");
if (suffix != -1)
bundle = bundle.left(suffix);
- pkgConfiglibName = "-framework " + bundle + " ";
+ t << "-framework ";
+ pkgConfiglibName = bundle.toQString();