Skip to content

Instantly share code, notes, and snippets.

View zavorka's full-sized avatar
🙈
LGTM

Roman Beránek zavorka

🙈
LGTM
  • Prusa Research, s.r.o.
  • Prague, CZ
View GitHub Profile
--- nsswitch.conf.old 2017-11-14 07:19:50.023102530 +0100
+++ nsswitch.conf 2017-11-14 07:19:40.264108889 +0100
@@ -1,13 +1,13 @@
# /etc/nsswitch.conf:
# $Header: /var/cvsroot/gentoo/src/patchsets/glibc/extra/etc/nsswitch.conf,v 1.1 2006/09/29 23:52:23 vapier Exp $
-passwd: compat
-shadow: compat
-group: compat
+#passwd: compat
diff -Nur a/src/shared/path-lookup.c b/src/shared/path-lookup.c
--- a/src/shared/path-lookup.c 2017-09-14 01:58:38.769073700 +0200
+++ b/src/shared/path-lookup.c 2017-09-14 02:00:46.638939469 +0200
@@ -130,10 +130,10 @@
};
const char * const data_unit_paths[] = {
- "/usr/local/lib/systemd/user",
+ "/usr/local/lib64/systemd/user",
"/usr/local/share/systemd/user",
@zavorka
zavorka / ubi.patch
Created July 5, 2017 14:40
Ambarella fucking things up again.
diff --git a/drivers/mtd/ubi/build.c b/drivers/mtd/ubi/build.c
index 03331c173bd0..f93f0e54b904 100644
--- a/drivers/mtd/ubi/build.c
+++ b/drivers/mtd/ubi/build.c
@@ -905,15 +905,34 @@ int ubi_attach_mtd_dev(struct mtd_info *mtd, int ubi_num,
if (ubi_num == UBI_DEV_NUM_AUTO) {
/* Search for an empty slot in the @ubi_devices array */
- for (ubi_num = 0; ubi_num < UBI_MAX_DEVICES; ubi_num++)
- if (!ubi_devices[ubi_num])

Keybase proof

I hereby claim:

  • I am zavorka on github.
  • I am curly (https://keybase.io/curly) on keybase.
  • I have a public key whose fingerprint is F795 DCFD 22CF E34D 486E F386 BBE5 8CAF 675B 8570

To claim this, I am signing this object:

--- a/chrome/browser/ui/libgtkui/gtk_util.cc 2016-12-09 00:02:19.000000000 +0100
+++ b/chrome/browser/ui/libgtkui/gtk_util.cc 2016-12-13 19:26:26.683726150 +0100
@@ -85,7 +85,7 @@
int modifier = 0;
if (event_flag & ui::EF_SHIFT_DOWN)
modifier |= GDK_SHIFT_MASK;
- if (event_flag & ui::EF_CONTROL_DOWN)
+ if (event_flag & ui::EF_COMMAND_DOWN)
modifier |= GDK_CONTROL_MASK;
if (event_flag & ui::EF_ALT_DOWN)
@zavorka
zavorka / .clang-format
Last active October 31, 2017 10:24
ang-format
# ang-format, ver. 1.0, compatible with clang-format-3.8 and up
#
#
# "Cause we never go out of style. We never go out of style."
#
# -- Taylor Swift, 2014
#
# All these settings have been taken from the clang-format manual,
# Take a look at http://clang.llvm.org/docs/ClangFormatStyleOptions.html
@zavorka
zavorka / qt5-5.8.0-beta-webkit-cups.patch
Last active October 3, 2016 07:52
qt5-5.8.0-beta-webkit-cups.patch
--- a/qtwebengine/src/3rdparty/chromium/printing/backend/print_backend_cups.cc
+++ b/qtwebengine/src/3rdparty/chromium/printing/backend/print_backend_cups.cc
@@ -4,6 +4,7 @@
#include "printing/backend/print_backend_cups.h"
+#include <cups/ppd.h>
#include <dlfcn.h>
#include <errno.h>
#include <pthread.h>
--- a/qtconnectivity/src/bluetooth/osx/corebluetoothwrapper_p.h 2016-10-02 16:48:38.000000000 +0200
+++ b/qtconnectivity/src/bluetooth/osx/corebluetoothwrapper_p.h 2016-10-02 16:54:06.000000000 +0200
@@ -51,12 +51,8 @@
// We mean it.
//
-#ifndef QT_OSX_BLUETOOTH
-
#import <CoreBluetooth/CoreBluetooth.h>
// Copyright (c) 2016 Roman Beránek. All rights reserved.
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
template <
bool Inv,
std::ptrdiff_t N_out
>
inline void
butterfly_radix4(gsl::span<cpx_t, N_out> output)
const noexcept {
auto const m = N_out/4;
auto const stride = (N_out > 0) ? N / N_out : 0;