Skip to content

Instantly share code, notes, and snippets.

@lahwaacz
lahwaacz / nvidia.yaml
Created April 25, 2024 09:14
NVIDIA CDI specification file
---
cdiVersion: 0.5.0
containerEdits:
deviceNodes:
- path: /dev/nvidia-modeset
- path: /dev/nvidia-uvm
- path: /dev/nvidia-uvm-tools
- path: /dev/nvidiactl
env:
- NVIDIA_VISIBLE_DEVICES=void
@lahwaacz
lahwaacz / log
Created August 5, 2023 11:42
MediaWiki 1.40 error with empty $wgFooterIcons
MediaWiki internal error.
Original exception: [1e344e2f822dc5767a47614c] /title/Main_Page Error: Call to a member function getTemplateData() on array
Backtrace:
from /srv/http/archwiki/public/includes/skins/components/SkinComponentFooter.php(318)
#0 /srv/http/archwiki/public/includes/skins/components/SkinComponentFooter.php(76): MediaWiki\Skin\SkinComponentFooter->getFooterIcons()
#1 /srv/http/archwiki/public/includes/skins/Skin.php(195): MediaWiki\Skin\SkinComponentFooter->getTemplateData()
#2 /srv/http/archwiki/public/includes/skins/SkinTemplate.php(188): Skin->getTemplateData()
#3 /srv/http/archwiki/public/includes/skins/SkinMustache.php(92): SkinTemplate->getTemplateData()
#4 /srv/http/archwiki/public/skins/Vector/includes/SkinVector22.php(319): SkinMustache->getTemplateData()
@lahwaacz
lahwaacz / ordered by bytes_raw
Last active June 15, 2021 13:41
Largest manual pages in Arch Linux
manpages=# select name, section, lang, length(raw) as bytes_raw, length(txt) as bytes_txt from archmanweb_manpage join archmanweb_content on content_id = archmanweb_content.id order by bytes_raw desc limit 50;
name | section | lang | bytes_raw | bytes_txt
-----------------------------+---------+------+-----------+-----------
salt | 7 | en | 14814797 | 15403125
Image::ExifTool::TagNames | 3pm | en | 1944720 | 1973904
ffmpeg-all | 1 | en | 1698774 | 1496318
lapacke.h | 3 | en | 1560412 | 1411064
arm-none-eabi-gcc | 1 | en | 1401061 | 1310444
arm-none-eabi-g++ | 1 | en | 1401061 | 1310444
gcc | 1 | en | 1401061 | 1310444
@lahwaacz
lahwaacz / pycman_test.py
Created June 4, 2021 05:58
crash with pyalpm-0.10.2-1
#! /usr/bin/env python3
import os
from pathlib import Path
import pycman
import pyalpm
PACCONF = """
[options]
@lahwaacz
lahwaacz / 0001-add-intel-trace-analyzer-and-collector-package.patch
Created June 28, 2020 11:07
[PATCH] add intel-trace-analyzer-and-collector package
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 February 10, 2019 17:16
updated PKGBUILD for AUR/cairo-infinality-ultimate
# 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)
#! /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 October 18, 2017 14:20
Fix to build Chromium 62 with GTK2
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 August 29, 2017 10:34
Modified PKGBUILD for mandoc to install side-by-side with man-db and groff
# 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 December 29, 2016 16:26
log dump after lockup due to USB3 controller, followed by lots of hung kworker tasks
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