Skip to content

Instantly share code, notes, and snippets.

View IngoMeyer441's full-sized avatar

Ingo Meyer IngoMeyer441

View GitHub Profile
IngoMeyer441 / x-resize
Last active June 22, 2024 11:55 — forked from manuuurino/x-resize
Manual Implementation of Auto Resizing For Non-Gnome Environments (like XFCE) running under Spice/Libvirt
# 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
# 5) Reload udev rules with `sudo udevadm control --reload-rules`
#!/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 / Dockerfile
Created March 11, 2018 16:38
Dockerfile for vim-vebugger testing with LLDB
FROM debian:unstable
LABEL maintainer="Ingo Heimbach <>"
RUN apt-get update && \
apt-get install --no-install-recommends -y automake \
build-essential \
ca-certificates \
cmake \
curl \
git \
IngoMeyer441 / .cvimrc
Last active January 10, 2018 17:05
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 = ["*"]
IngoMeyer441 /
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