Skip to content

Instantly share code, notes, and snippets.

View IngoMeyer441's full-sized avatar

Ingo Meyer IngoMeyer441

View GitHub Profile
@IngoMeyer441
IngoMeyer441 / x-resize
Last active November 7, 2024 08:08 — forked from manuuurino/x-resize
Manual Implementation of Auto Resizing For Non-Gnome Environments (like XFCE) running under Spice/Libvirt
#!/bin/bash
# SPDX-License-Identifier: MIT
# Steps:
# 1) Make sure bash is available
# 2) Create udev rule
# - path to new udev rule: /etc/udev/rules.d/50-x-resize.rules
# - udev rule content:
# ACTION=="change", KERNEL=="card[0-9]*", SUBSYSTEM=="drm", RUN+="/usr/local/bin/x-resize"
# 3) Create /var/log/autores directory
# 4) Create script /usr/local/bin/x-resize (this file) and make executable
--langdef=XMLSchema
--langmap=XMLSchema:.xsd
--regex-XMLSchema=/xs:element[[:space:]]+name="(.*)"/\1/e,element/
--regex-XMLSchema=/xs:attributeGroup[[:space:]]+name="(.*)"/\1/a,attributegroup/
--langdef=GitLabCI
--langmap=GitLabCI:.gitlab-ci.yml
--regex-GitLabCI=/^([^[:space:]]+):$/\1/s,stage/
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import base64
import os
@IngoMeyer441
IngoMeyer441 / Dockerfile
Created March 11, 2018 16:38
Dockerfile for vim-vebugger testing with LLDB
FROM debian:unstable
LABEL maintainer="Ingo Heimbach <i.heimbach@fz-juelich.de>"
RUN apt-get update && \
apt-get install --no-install-recommends -y automake \
build-essential \
ca-certificates \
cmake \
curl \
git \
@IngoMeyer441
IngoMeyer441 / .cvimrc
Last active January 10, 2018 17:05
cvimrc
set smoothscroll
map w :new<Space>
map W :new @%
map s createHintWindow
map R reloadTabUncached
map D :tabdetach<CR>
map yt :duplicate<CR>
let blacklists = ["https://iffvcc.iff.kfa-juelich.de/ui/webconsole.html*"]
@IngoMeyer441
IngoMeyer441 / lesser.py
Last active January 30, 2019 16:46
less wrapper that only calls less if the output does not fit into one terminal page
#!/usr/bin/env python3
import errno
import locale
import os
import subprocess
import sys
from math import ceil
from typing import Dict, IO, Iterator, List, Optional, Tuple # noqa: F401 # pylint: disable=unused-import