Skip to content

Instantly share code, notes, and snippets.

View zerwes's full-sized avatar
🤯
I may be slow to respond.

Klaus Zerwes zerwes

🤯
I may be slow to respond.
View GitHub Profile
@zerwes
zerwes / docker-to-proxmox.md
Created December 2, 2025 13:14 — forked from flaki/docker-to-proxmox.md
Importing a Docker container image into Proxmox Linux Containers (LXC)

Importing a Docker container into Proxmox/LXC

Importing the container

For this we are going to be using lxc-create, which comes pre-installed on Proxmox but needs further dependencies to fetch the OCI images from Docker:

apt update && apt -y install skopeo umoci jq
@zerwes
zerwes / fractional-scaling-mutter.md
Last active November 17, 2025 21:02 — forked from hallettj/fractional-scaling-mutter.md
How I set up fractional scaling in Gnome

Fractional Scaling

With a bigger display 2x scaling might be too big. I'm trying out experimental support for fractional scaling in Gnome. To opt out again it is necessary to undo this experimental features setting:

$ gsettings set org.gnome.mutter experimental-features "['scale-monitor-framebuffer']"

In addition to fractional scaling that setting allows different scaling factors per monitor!

The only issue I'm seeing so far is that apps running with XWayland look fuzzy. That includes web browsers. But! Firefox and Chrome both have opt-in support for Wayland which fixes the problem.

frontend front_https
acl network_allowed src 100.111.222.100
acl host_www hdr(host) -i zero-sys.net
http-request deny if host_www !network_allowed
@zerwes
zerwes / gist:37c07f58757c7b22387787a22a2b036f
Created January 6, 2025 07:25 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@zerwes
zerwes / tcpdump dhcp
Last active November 22, 2024 10:10 — forked from mattm7n/gist:1405067
Monitor DHCP traffic with tcpdump
# Monitoring on interface eth0
tcpdump -i eth0 -n port 67 and port 68
@zerwes
zerwes / output.log
Last active September 10, 2024 13:24
ansible community.general.xml strange behavior on empty tags
# ansible-playbook -D testxmlemptytag.yml
PLAY [localhost] ************************************************************************************************************************************************************
TASK [Gathering Facts] ******************************************************************************************************************************************************
ok: [127.0.0.1]
TASK [ansible.builtin.copy] *************************************************************************************************************************************************
changed: [127.0.0.1]
@zerwes
zerwes / demoWG+VXLAN.md
Last active May 12, 2024 04:18 — forked from pamolloy/README.md
Mesh network using VXLAN over Wireguard
@zerwes
zerwes / ocsp_check.sh
Last active December 17, 2023 19:59
test script for ocsp support for openvpn @ opnsense
#!/bin/sh
# based on https://github.com/OpenVPN/openvpn/blob/master/contrib/OCSP_check/OCSP_check.sh
# for testing ocsp support in openvpn @ opnsense
# OCSP responder URL (mandatory)
# you can extract this from the cert ...
ocsp_url=`openssl x509 -in /var/etc/openvpn/server${1}.ca -noout -ocsp_uri`
# CA CERTIFICATE
@zerwes
zerwes / RT_SiteConfig.pm
Last active December 1, 2023 11:16 — forked from trev71/RT_SiteConfig.pm
Best Practical Request Tracker (RT) LDAP User Import and Authentication RT_SiteConfig.pm
# Any configuration directives you include here will override
# RT's default configuration file, RT_Config.pm
#
# To include a directive here, just copy the equivalent statement
# from RT_Config.pm and change the value. We've included a single
# sample value below.
#
# This file is actually a perl module, so you can include valid
# perl code, as well.
#
@zerwes
zerwes / check_redis_ping.sh
Created May 12, 2023 04:39
simple checkmk local plugin to check redis server state using a redis ping: expected response = pong
#!/bin/bash
# vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 smartindent nu ft=bash
declare -i RET=0
STATUS="OK"
O=$(REDISCLI_AUTH="$(sed '/^masterauth/!d;s/.* //g' /etc/redis/redis.conf)" redis-cli ping 2>&1)
RET=$?
if [ $RET -gt 0 ]; then
RET=2
STATUS="CRITICAL"