Skip to content

Instantly share code, notes, and snippets.

Avatar

Jakub Klinkovský lahwaacz

View GitHub Profile
@lahwaacz
lahwaacz / 0001-add-intel-trace-analyzer-and-collector-package.patch
Created Jun 28, 2020
[PATCH] add intel-trace-analyzer-and-collector package
View 0001-add-intel-trace-analyzer-and-collector-package.patch
From ff7528a6c679eef87d4587b1050ea7b38fcfea46 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jakub=20Klinkovsk=C3=BD?= <j.l.k@gmx.com>
Date: Sun, 28 Jun 2020 13:04:23 +0200
Subject: [PATCH] add intel-trace-analyzer-and-collector package
---
PKGBUILD | 56 ++++++++++++++++++++++++-
intel_trace-analyzer-and-collector.conf | 1 +
intel_trace-analyzer-and-collector.sh | 2 +
3 files changed, 58 insertions(+), 1 deletion(-)
@lahwaacz
lahwaacz / PKGBUILD
Created Feb 10, 2019
updated PKGBUILD for AUR/cairo-infinality-ultimate
View PKGBUILD
# Maintainer: Jan de Groot <jgc@archlinux.org>
# Contributor: Brice Carpentier <brice@daknet.org>
pkgname=cairo-infinality-ultimate
_name=cairo
pkgver=1.16.0
pkgrel=1
pkgdesc="2D graphics library with support for multiple output devices"
url="https://cairographics.org/"
arch=(x86_64)
View mwph_benchmark.py
#! /usr/bin/env python3
import re
from itertools import chain
import mwparserfromhell
FLAGS = re.IGNORECASE | re.DOTALL | re.UNICODE
def indexed_ifilter(wikicode, recursive=True, matches=None, flags=FLAGS,
@lahwaacz
lahwaacz / fix.diff
Created Oct 18, 2017
Fix to build Chromium 62 with GTK2
View fix.diff
diff --git a/chrome/browser/ui/libgtkui/gtk_ui.h.orig b/chrome/browser/ui/libgtkui/gtk_ui.h
index 3048cf8..767f07e 100644
--- a/chrome/browser/ui/libgtkui/gtk_ui.h.orig
+++ b/chrome/browser/ui/libgtkui/gtk_ui.h
@@ -17,6 +17,7 @@
#include "ui/gfx/color_utils.h"
#include "ui/views/linux_ui/linux_ui.h"
#include "ui/views/window/frame_buttons.h"
+#include "nav_button_layout_manager.h"
@lahwaacz
lahwaacz / PKGBUILD
Created Aug 29, 2017
Modified PKGBUILD for mandoc to install side-by-side with man-db and groff
View PKGBUILD
# Maintainer: Erin Kinsley <ybden@ybden.com>
# Contributor: Matheus de Alcantara <matheus.de.alcantara@gmail.com>
pkgname=mandoc
pkgver=1.14.3
pkgrel=1
pkgdesc='A suite of tools compiling mdoc from the OpenBSD project'
arch=('i686' 'x86_64')
url='http://mdocml.bsd.lv/'
license=('custom: ISC')
@lahwaacz
lahwaacz / gist:5bef7a353cd8cbe49164d2bf4efd47fa
Created Dec 29, 2016
log dump after lockup due to USB3 controller, followed by lots of hung kworker tasks
View gist:5bef7a353cd8cbe49164d2bf4efd47fa
Dec 25 16:28:05 jlknb kernel: NMI watchdog: BUG: soft lockup - CPU#0 stuck for 22s! [cc1plus:12059]
Dec 25 16:28:05 jlknb kernel: Modules linked in: tun ctr ccm nvidia_uvm(PO) fuse ums_realtek uas usb_storage ath3k bluetooth snd_hda_codec_hdmi toshiba_acpi sparse_keymap iTCO_wdt iTCO_vendor_support industrialio intel_rapl x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel kvm irqbypass crct10dif_pclmul crc32_pclmul crc32c_intel ghash_clmulni_intel aesni_intel aes_x86_64 lrw gf128mul glue_helper ablk_helper cryptd intel_cstate intel_rapl_perf nvidia_drm(PO) nvidia_modeset(PO) psmouse nvidia(PO) arc4 ath9k ath9k_common ath9k_hw i2c_i801 i2c_smbus ath mac80211 cfg80211 snd_hda_codec_conexant lpc_ich snd_hda_codec_generic atl1c xt_physdev br_netfilter bridge stp llc snd_hda_intel ipt_REJECT nf_reject_ipv4 snd_hda_codec drm_kms_helper mousedev xt_tcpudp evdev snd_hda_core xt_conntrack joydev input_leds drm led_class
Dec 25 16:28:08 jlknb kernel: snd_hwdep mac_hid iptable_filter snd_pcm iptable_nat nf_conntr
View gist:09efffc148c89b0affda2ee10d404255
$ tox -e py35 -- tests/unit/ -vx
py35 installed: beautifulsoup4==4.5.1,CherryPy==7.1.0,click==6.6,colorama==0.3.7,coverage==4.2,cssutils==1.0.1,decorator==4.0.10,Flask==0.11.1,glob2==0.4.1,httpbin==0.5.0,hypothesis==3.4.2,itsdangerous==0.24,Jinja2==2.8,Mako==1.0.4,MarkupSafe==0.23,parse==1.6.6,parse-type==0.3.4,py==1.4.31,Pygments==2.1.3,pyPEG2==2.15.2,pytest==3.0.1,pytest-bdd==2.17.1,pytest-catchlog==1.2.2,pytest-cov==2.3.1,pytest-faulthandler==1.3.0,pytest-instafail==0.3.0,pytest-mock==1.2,pytest-qt==2.0.0,pytest-repeat==0.4.1,pytest-rerunfailures==2.0.1,pytest-travis-fold==1.2.0,pytest-warnings==0.1.0,pytest-xvfb==0.2.1,PyYAML==3.11,qutebrowser==0.8.1,six==1.10.0,vulture==0.10,Werkzeug==0.11.10
py35 runtests: PYTHONHASHSEED='2415704538'
py35 runtests: commands[0] | /home/lahwaacz/Bbox/pg/python3/qutebrowser/.tox/py35/bin/python scripts/link_pyqt.py --tox /home/lahwaacz/Bbox/pg/python3/qutebrowser/.tox/py35
py35 runtests: commands[1] | /home/lahwaacz/Bbox/pg/python3/qutebrowser/.tox/py35/bin/python scripts/
View JWM parse tree
[[
Category:Stacking WMs
]]
\n
[[
it:JWM
]]
\n
[[
ja:JWM
View gist:f3189b5aefc9b3a0d242a1b84142d815
In file included from /home/lahwaacz/build/builddir/vtk-visit/src/build/ThirdParty/netcdf/vtknetcdf/config.h:7:0,
from /home/lahwaacz/build/builddir/vtk-visit/src/VTK-6.1.0/ThirdParty/netcdf/vtknetcdf/libsrc4/nc4internal.c:18:
/home/lahwaacz/build/builddir/vtk-visit/src/VTK-6.1.0/ThirdParty/netcdf/vtknetcdf/include/vtk_netcdf_mangle.h:229:30: error: conflicting types for ‘vtk_netcdf_nc4_rec_find_nc_type’
#define nc4_rec_find_nc_type vtk_netcdf_nc4_rec_find_nc_type
^
/home/lahwaacz/build/builddir/vtk-visit/src/VTK-6.1.0/ThirdParty/netcdf/vtknetcdf/libsrc4/nc4internal.c:383:1: note: in expansion of macro ‘nc4_rec_find_nc_type’
nc4_rec_find_nc_type(NC_GRP_INFO_T *start_grp, nc_type target_nc_typeid)
^~~~~~~~~~~~~~~~~~~~
/home/lahwaacz/build/builddir/vtk-visit/src/VTK-6.1.0/ThirdParty/netcdf/vtknetcdf/include/vtk_netcdf_mangle.h:229:30: note: previous declaration of ‘vtk_netcdf_nc4_rec_find_nc_type’ was here
#define nc4_rec_find_nc_type vtk_netcdf_nc4_rec_find_nc
View sqlitebrowser.conf
[%General]
language=en_US
recentFileList=/home/lahwaacz/.local/share/qpdfview/qpdfview/database
[MainWindow]
geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x2\0\0\0\0\x5V\0\0\0\0\0\0\f\xd5\0\0\x4\x37\0\0\x5\x1\0\0\0\x13\0\0\a~\0\0\x4\x36\0\0\0\0\0\x4\0\0\a\x80)
windowState=@ByteArray(\0\0\0\xff\0\0\0\0\xfd\0\0\0\x1\0\0\0\x1\0\0\x1r\0\0\x3\xe2\xfc\x2\0\0\0\x1\xfc\0\0\0?\0\0\x3\xe2\0\0\0\xf0\x1\0\0\x1d\xfa\0\0\0\x2\x2\0\0\0\x3\xfb\0\0\0\xe\0\x64\0o\0\x63\0k\0L\0o\0g\x1\0\0\0\0\xff\xff\xff\xff\0\0\0\x8d\0\xff\xff\xff\xfb\0\0\0\x10\0\x64\0o\0\x63\0k\0P\0l\0o\0t\x1\0\0\0\0\xff\xff\xff\xff\0\0\0\xd2\0\xff\xff\xff\xfb\0\0\0\x14\0\x64\0o\0\x63\0k\0S\0\x63\0h\0\x65\0m\0\x61\x1\0\0\0\0\xff\xff\xff\xff\0\0\0m\0\xff\xff\xff\0\0\x6\b\0\0\x3\xe2\0\0\0\x4\0\0\0\x4\0\0\0\b\0\0\0\b\xfc\0\0\0\x1\0\0\0\x2\0\0\0\x1\0\0\0\x12\0t\0o\0o\0l\0\x62\0\x61\0r\0\x44\0\x42\x1\0\0\0\0\xff\xff\xff\xff\0\0\0\0\0\0\0\0)
[PlotDock]
splitterSize=@ByteArray(\0\0\0\xff\0\0\0\x1\0\0\0\x2\0\0\x1\x80\0\0\x1\x90\x1\xff\xff\xff\xff\x1\0\0\0\x2\0)
You can’t perform that action at this time.