Skip to content

Instantly share code, notes, and snippets.

@gavine99
gavine99 / noclickforyou.c
Last active July 24, 2025 03:01
block mouse clicks to window by window id
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <X11/extensions/shape.h>
#include <X11/extensions/Xfixes.h>
#include <X11/Xlib.h>
#include <poll.h>
#include <sys/select.h>
@gavine99
gavine99 / proton-vpn-wireguard-downloader.py
Last active September 13, 2025 20:27
create proton wireguard vpn configurations
# Linux recipe:
# python3 -m venv proton-vpn-wireguard-downloader
# pushd proton-vpn-wireguard-downloader
# wget {{ zip url for this gist }} -O proton-vpn-wireguard-downloader.zip
# wget "https://github.com/ProtonVPN/python-proton-core/archive/refs/tags/v0.2.0.zip" -O python-proton-core-0.2.0.zip
# wget "https://github.com/ProtonVPN/python-proton-vpn-logger/archive/refs/tags/v0.2.1.zip" -O python-proton-vpn-logger.0.2.1.zip
# wget "https://github.com/ProtonVPN/python-proton-vpn-api-core/archive/refs/tags/v0.32.2.zip" -O python-proton-vpn-api-core.0.32.2.zip
# unzip -j proton-vpn-wireguard-downloader.zip
# unzip python-proton-core-0.2.0.zip
# unzip python-proton-vpn-logger.0.2.1.zip